DONE Tangle extension names
- State "DONE" from "PROPOSED"
- State "PROPOSED" from ""
I found this patch hanging around in my repo and seem to remember thinking this was a good change but can't remember now the details.
diff --git a/contrib/babel/lisp/org-babel-tangle.el b/contrib/babel/lisp/org-babel-tangle.el index c805373..1d7fe3b 100644 --- a/contrib/babel/lisp/org-babel-tangle.el +++ b/contrib/babel/lisp/org-babel-tangle.el @@ -102,9 +102,10 @@ exported source code blocks by language." ((> (length tangle) 0) tangle)) target-file)) (file-name (when base-name - (if (string= base-name - (file-name-sans-extension base-name)) - (concat base-name "." ext) base-name)))) + (if (and ext + (string= base-name + (file-name-sans-extension base-name))) + (concat base-name "." ext) base-name)))) ;; ;; debugging ;; (message "tangle=%S base-name=%S file-name=%S" ;; tangle base-name file-name)
This has been applied – it was a good idea – as it's now possible
to export a Makefile
without an extension.