Browse Source

org-src.el (org-edit-src-code): Fix another bug about editing special blocks "example" and "verbatim"

* org-src.el (org-edit-src-code): Fix another bug about
editing special blocks "example" and "verbatim".
Bastien Guerry 12 years ago
parent
commit
a118ae4e1c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/org-src.el

+ 1 - 1
lisp/org-src.el

@@ -210,7 +210,7 @@ edited version.  An optional argument CONTEXT is used by \\[org-edit-src-save]
 when calling this function.  See `org-src-window-setup' to configure
 the display of windows containing the Org buffer and the code buffer."
   (interactive)
-  (if (not (org-in-src-block-p))
+  (if (not (org-in-block-p '("src" "example" "verbatim")))
       (user-error "Not in a source code block")
     (unless (eq context 'save)
       (setq org-edit-src-saved-temp-window-config (current-window-configuration)))