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:
Dan Davison 2010-03-27 18:39:31 -04:00
parent e32c066874
commit 3637efe647
1 changed files with 0 additions and 4 deletions

View File

@ -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)))