mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-11-23 07:18:53 +00:00
Merge branch 'master' of git+ssh://repo.or.cz/srv/git/org-mode
This commit is contained in:
commit
c1ee3cc3d9
@ -91,7 +91,7 @@ exported source code blocks by language."
|
||||
(lang-specs (cdr (assoc lang org-babel-tangle-langs)))
|
||||
(ext (first lang-specs))
|
||||
(she-bang (second lang-specs))
|
||||
(commentable (not (third lang-specs)))
|
||||
(commentable (and (fboundp lang-f) (not (third lang-specs))))
|
||||
she-banged)
|
||||
(mapc
|
||||
(lambda (spec)
|
||||
@ -122,7 +122,7 @@ exported source code blocks by language."
|
||||
(delete-file file-name))
|
||||
;; drop source-block to file
|
||||
(with-temp-buffer
|
||||
(funcall lang-f)
|
||||
(if (fboundp lang-f) (funcall lang-f))
|
||||
(when (and she-bang (not (member file-name she-banged)))
|
||||
(insert (concat she-bang "\n"))
|
||||
(setq she-banged (cons file-name she-banged)))
|
||||
|
@ -991,10 +991,6 @@ block but are passed literally to the \"example-block\"."
|
||||
(setq new-body (concat new-body text))))
|
||||
(with-temp-buffer
|
||||
(insert body) (goto-char (point-min))
|
||||
(funcall (intern (concat (or (and (cdr (assoc lang org-src-lang-modes))
|
||||
(symbol-name
|
||||
(cdr (assoc lang org-src-lang-modes))))
|
||||
lang) "-mode")))
|
||||
(setq index (point))
|
||||
(while (and (re-search-forward "<<\\(.+?\\)>>" nil t))
|
||||
(save-match-data (setf source-name (match-string 1)))
|
||||
|
Loading…
Reference in New Issue
Block a user