Widen before exiting edit buffers

This commit is contained in:
Dan Davison 2010-02-09 16:10:06 -05:00
parent facd02f812
commit 7c686465b5
2 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2010-02-09 Dan Davison <davison@stats.ox.ac.uk>
* org-src.el (org-edit-src-exit): Widen before exiting edit buffers
2010-02-08 Carsten Dominik <carsten.dominik@gmail.com>
* org.el (org-fontify-meta-lines-and-blocks): Honor

View File

@ -515,6 +515,7 @@ the language, a switch telling if the content should be in a single line."
(interactive)
(unless org-edit-src-from-org-mode
(error "This is not a sub-editing buffer, something is wrong..."))
(widen)
(let* ((beg org-edit-src-beg-marker)
(end org-edit-src-end-marker)
(ovl org-edit-src-overlay)