diff options
author | Eric Schulte <schulte.eric@gmail.com> | 2010-07-05 10:25:31 -0700 |
---|---|---|
committer | Eric Schulte <schulte.eric@gmail.com> | 2010-07-05 11:14:51 -0700 |
commit | 0deb72c068ae36e9c3056637de1b6e70e0a6bad5 (patch) | |
tree | e5d9a8a4e43e558f6a6b2f5a1f6401d3d7826ac5 | |
parent | 0a109680eefffe696093bbf2725c2af6ac437284 (diff) | |
download | org-mode-0deb72c068ae36e9c3056637de1b6e70e0a6bad5.tar.gz |
babel: removed `org-babel-tangle-w-comments', now just use the :comments header arg
* lisp/ob-tangle.el (org-babel-spec-to-string): removed
`org-babel-tangle-w-comments', now just use the :comments header arg
to control the insertion of comments on tangling
-rw-r--r-- | lisp/ob-tangle.el | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/lisp/ob-tangle.el b/lisp/ob-tangle.el index 00e1faa..484309b 100644 --- a/lisp/ob-tangle.el +++ b/lisp/ob-tangle.el @@ -34,13 +34,6 @@ (declare-function org-link-escape "org" (text &optional table)) -(defcustom org-babel-tangle-w-comments nil - "Control the insertion of comments into tangled code. Non-nil -value will result in the insertion of comments for those -languages with comment support." - :group 'org-babel-tangle - :type 'boolean) - (defcustom org-babel-tangle-lang-exts '(("emacs-lisp" . "el")) "Alist mapping languages to their file extensions. @@ -247,8 +240,7 @@ form (body (nth 3 spec)) (commentable (string= (cdr (assoc :comments (nth 2 spec))) "yes"))) (flet ((insert-comment (text) - (when (and commentable - org-babel-tangle-w-comments) + (when commentable (insert "\n") (comment-region (point) (progn (insert text) (point))) |