babel: Don't use language major-mode when expanding noweb references
There is no longer any need for the language major mode.
This commit is contained in:
parent
e32c066874
commit
3637efe647
|
@ -991,10 +991,6 @@ block but are passed literally to the \"example-block\"."
|
||||||
(setq new-body (concat new-body text))))
|
(setq new-body (concat new-body text))))
|
||||||
(with-temp-buffer
|
(with-temp-buffer
|
||||||
(insert body) (goto-char (point-min))
|
(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))
|
(setq index (point))
|
||||||
(while (and (re-search-forward "<<\\(.+?\\)>>" nil t))
|
(while (and (re-search-forward "<<\\(.+?\\)>>" nil t))
|
||||||
(save-match-data (setf source-name (match-string 1)))
|
(save-match-data (setf source-name (match-string 1)))
|
||||||
|
|
Loading…
Reference in New Issue