mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-08-25 05:32:51 +00:00
org-src-mode bug fix.
Go straight to edit buffer if org-src-ask-before-returning-to-edit-buffer is nil
This commit is contained in:
parent
2bb27d05ae
commit
2e20a2eea9
|
@ -197,8 +197,8 @@ the edited version."
|
||||||
(error "No such language mode: %s" lang-f))
|
(error "No such language mode: %s" lang-f))
|
||||||
(org-goto-line line)
|
(org-goto-line line)
|
||||||
(if (and (setq buffer (org-edit-src-find-buffer beg end))
|
(if (and (setq buffer (org-edit-src-find-buffer beg end))
|
||||||
org-src-ask-before-returning-to-edit-buffer
|
(if org-src-ask-before-returning-to-edit-buffer
|
||||||
(y-or-n-p "Return to existing edit buffer? [n] will revert changes: "))
|
(y-or-n-p "Return to existing edit buffer? [n] will revert changes: ") t))
|
||||||
(switch-to-buffer buffer)
|
(switch-to-buffer buffer)
|
||||||
(when buffer
|
(when buffer
|
||||||
(with-current-buffer buffer
|
(with-current-buffer buffer
|
||||||
|
|
Loading…
Reference in a new issue