Browse Source

Keep artist-mode editing from eating empty lines.

Carsten Dominik 16 years ago
parent
commit
76bc40a6e3
2 changed files with 6 additions and 1 deletions
  1. 5 0
      lisp/ChangeLog
  2. 1 1
      lisp/org.el

+ 5 - 0
lisp/ChangeLog

@@ -1,3 +1,8 @@
+2008-10-10  Carsten Dominik  <dominik@science.uva.nl>
+
+	* org.el (org-edit-fixed-width-region): Exclude final newline from
+	picture area.
+
 2008-10-09  Carsten Dominik  <dominik@science.uva.nl>
 
 	* org-attach.el (org-attach-delete-all): Renamed from

+ 1 - 1
lisp/org.el

@@ -5491,7 +5491,7 @@ exit by killing the buffer with \\[org-edit-src-exit]."
 	    (setq beg (point))))
 	(save-excursion
 	  (if (re-search-forward "^[ \t]*[^:]" nil 'move)
-	      (setq end (match-beginning 0))
+	      (setq end (1- (match-beginning 0)))
 	    (setq end (point))))
 	(goto-line line)
 	(if (get-buffer "*Org Edit Picture*")