changeset 68269:4747977f1afa

(hide-leaves): Don't call outline-end-of-heading. Fixes bug reported in Nov 2005.
author Richard M. Stallman <rms@gnu.org>
date Thu, 19 Jan 2006 17:51:38 +0000
parents 627ba9ac2b0f
children 556ef00fdd9f
files lisp/outline.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/outline.el	Thu Jan 19 17:50:42 2006 +0000
+++ b/lisp/outline.el	Thu Jan 19 17:51:38 2006 +0000
@@ -803,11 +803,11 @@
   (outline-flag-subtree t))
 
 (defun hide-leaves ()
-  "Hide all body after this heading at deeper levels."
+  "Hide the body after this heading and at deeper levels."
   (interactive)
   (save-excursion
     (outline-back-to-heading)
-    (outline-end-of-heading)
+;;    (outline-end-of-heading)
     (hide-region-body (point) (progn (outline-end-of-subtree) (point)))))
 
 (defun show-subtree ()