* outline.el (hide-sublevels): Ensure that arguments are passed to

outline-flag-region in the correct order (Bug#3000).
This commit is contained in:
Chong Yidong 2009-04-15 23:32:23 +00:00
parent dee8ac1084
commit 3d0dd8ff4a
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2009-04-15 William Xu <william.xwl@gmail.com>
* outline.el (hide-sublevels): Ensure that arguments are passed to
outline-flag-region in the correct order (Bug#3000).
2009-04-15 Katsumi Yamaoka <yamaoka@jpl.org>
* net/browse-url.el (browse-url-filename-alist): Correct file

View file

@ -905,6 +905,8 @@ Show the heading too, if it is currently invisible."
(goto-char (point-max))
;; Keep empty last line, if available.
(if (bolp) (1- (point)) (point)))))
(if (< end beg)
(setq beg (prog1 end (setq end beg))))
;; First hide everything.
(outline-flag-region beg end t)
;; Then unhide the top level headers.