aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2009-04-15 23:32:23 +0000
committerChong Yidong2009-04-15 23:32:23 +0000
commit3d0dd8ff4a6681225b4e64728c820833c61773f7 (patch)
tree6fae25f488d102957cf48a3514f3d0fa3e3cd18a
parentdee8ac108452e32efb8c4542f4509c69c0e27d45 (diff)
downloademacs-3d0dd8ff4a6681225b4e64728c820833c61773f7.tar.gz
emacs-3d0dd8ff4a6681225b4e64728c820833c61773f7.zip
* outline.el (hide-sublevels): Ensure that arguments are passed to
outline-flag-region in the correct order (Bug#3000).
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/outline.el2
2 files changed, 7 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 9b5e6cd6176..7e333b37db7 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12009-04-15 William Xu <william.xwl@gmail.com>
2
3 * outline.el (hide-sublevels): Ensure that arguments are passed to
4 outline-flag-region in the correct order (Bug#3000).
5
12009-04-15 Katsumi Yamaoka <yamaoka@jpl.org> 62009-04-15 Katsumi Yamaoka <yamaoka@jpl.org>
2 7
3 * net/browse-url.el (browse-url-filename-alist): Correct file 8 * net/browse-url.el (browse-url-filename-alist): Correct file
diff --git a/lisp/outline.el b/lisp/outline.el
index e1e91271883..250f2e16335 100644
--- a/lisp/outline.el
+++ b/lisp/outline.el
@@ -905,6 +905,8 @@ Show the heading too, if it is currently invisible."
905 (goto-char (point-max)) 905 (goto-char (point-max))
906 ;; Keep empty last line, if available. 906 ;; Keep empty last line, if available.
907 (if (bolp) (1- (point)) (point))))) 907 (if (bolp) (1- (point)) (point)))))
908 (if (< end beg)
909 (setq beg (prog1 end (setq end beg))))
908 ;; First hide everything. 910 ;; First hide everything.
909 (outline-flag-region beg end t) 911 (outline-flag-region beg end t)
910 ;; Then unhide the top level headers. 912 ;; Then unhide the top level headers.