فهرست منبع

babel: Don't use language major-mode when expanding noweb references

There is no longer any need for the language major mode.
Dan Davison 15 سال پیش
والد
کامیت
3637efe647
1فایلهای تغییر یافته به همراه0 افزوده شده و 4 حذف شده
  1. 0 4
      contrib/babel/lisp/org-babel.el

+ 0 - 4
contrib/babel/lisp/org-babel.el

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