diff options
author | Dan Davison <davison@stats.ox.ac.uk> | 2010-02-09 16:10:06 -0500 |
---|---|---|
committer | Dan Davison <davison@stats.ox.ac.uk> | 2010-02-09 16:10:06 -0500 |
commit | 7c686465b527fa88e79609a00fcad409686c46ef (patch) | |
tree | 5b158d9f32f8f47161bb9d36fc3182c9dafbba63 | |
parent | facd02f812dbbab5909654f8f5528ab7ddcd5b6e (diff) | |
download | org-mode-7c686465b527fa88e79609a00fcad409686c46ef.tar.gz |
Widen before exiting edit buffers
-rwxr-xr-x | lisp/ChangeLog | 4 | ||||
-rw-r--r-- | lisp/org-src.el | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 51b2f6b..61e5a4e 100755 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -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 diff --git a/lisp/org-src.el b/lisp/org-src.el index 1d155cc..a11fac2 100644 --- a/lisp/org-src.el +++ b/lisp/org-src.el @@ -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) |