瀏覽代碼

Widen before exiting edit buffers

Dan Davison 15 年之前
父節點
當前提交
7c686465b5
共有 2 個文件被更改,包括 5 次插入0 次删除
  1. 4 0
      lisp/ChangeLog
  2. 1 0
      lisp/org-src.el

+ 4 - 0
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

+ 1 - 0
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)