Browse Source

org-src.el: allow source editing from modes derived from Org.

* org-src.el (org-edit-src-code): allow to edit source code
from modes derived from Org.
Bastien Guerry 10 years ago
parent
commit
a923f528cd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/org-src.el

+ 1 - 1
lisp/org-src.el

@@ -214,7 +214,7 @@ buffer."
   (let ((mark (and (org-region-active-p) (mark)))
 	(case-fold-search t)
 	(info (org-edit-src-find-region-and-lang))
-	(org-mode-p (org-mode-p))
+	(org-mode-p (or (org-mode-p) (derived-mode-p 'org-mode)))
 	(beg (make-marker))
 	(end (make-marker))
 	(allow-write-back-p (null code))