forked from mirrors/org-mode
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:
parent
9f4ecf79b1
commit
a118ae4e1c
|
@ -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
|
when calling this function. See `org-src-window-setup' to configure
|
||||||
the display of windows containing the Org buffer and the code buffer."
|
the display of windows containing the Org buffer and the code buffer."
|
||||||
(interactive)
|
(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")
|
(user-error "Not in a source code block")
|
||||||
(unless (eq context 'save)
|
(unless (eq context 'save)
|
||||||
(setq org-edit-src-saved-temp-window-config (current-window-configuration)))
|
(setq org-edit-src-saved-temp-window-config (current-window-configuration)))
|
||||||
|
|
Loading…
Reference in New Issue