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".
This commit is contained in:
Bastien Guerry 2012-12-23 17:20:27 +01:00
parent 9f4ecf79b1
commit a118ae4e1c
1 changed files with 1 additions and 1 deletions

View File

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