Browse Source

Fixed bug with inserting headlines into a narrowed buffer region.

Carsten Dominik 16 years ago
parent
commit
323b54472e
2 changed files with 4 additions and 1 deletions
  1. 3 0
      lisp/ChangeLog
  2. 1 1
      lisp/org.el

+ 3 - 0
lisp/ChangeLog

@@ -1,5 +1,8 @@
 2008-07-17  Carsten Dominik  <dominik@science.uva.nl>
 
+	* org.el (org-narrow-to-subtree): Do not include the final newline
+	into the narrowed region.
+
 	* org-agenda.el (org-agenda-custom-commands-local-options): Fixed
 	bug with user-define skipping condition.
 

+ 1 - 1
lisp/org.el

@@ -5121,7 +5121,7 @@ If yes, remember the marker and the distance to BEG."
     (save-match-data
       (narrow-to-region
        (progn (org-back-to-heading) (point))
-       (progn (org-end-of-subtree t t) (point))))))
+       (progn (org-end-of-subtree t) (point))))))
 
 
 ;;; Outline Sorting