babel: can now tangle files without extensions

This commit is contained in:
Dan Davison 2010-01-28 09:58:52 -07:00 committed by Eric Schulte
parent 04057e2195
commit 21849af58b
1 changed files with 4 additions and 3 deletions

View File

@ -102,9 +102,10 @@ exported source code blocks by language."
((> (length tangle) 0) tangle)) ((> (length tangle) 0) tangle))
target-file)) target-file))
(file-name (when base-name (file-name (when base-name
(if (string= base-name (if (and ext
(file-name-sans-extension base-name)) (string= base-name
(concat base-name "." ext) base-name)))) (file-name-sans-extension base-name)))
(concat base-name "." ext) base-name))))
;; ;; debugging ;; ;; debugging
;; (message "tangle=%S base-name=%S file-name=%S" ;; (message "tangle=%S base-name=%S file-name=%S"
;; tangle base-name file-name) ;; tangle base-name file-name)