mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-18 02:47:36 +00:00
(outline-end-of-subtree): If loop leaves us at eob,
don't move back from there.
This commit is contained in:
parent
f0148b5e8a
commit
9d721a9e79
1 changed files with 7 additions and 3 deletions
|
|
@ -352,9 +352,13 @@ while if FLAG is `\\^M' (control-M) the text is hidden."
|
|||
(or first (> (funcall outline-level) level)))
|
||||
(setq first nil)
|
||||
(outline-next-heading))
|
||||
(forward-char -1)
|
||||
(if (memq (preceding-char) '(?\n ?\^M))
|
||||
(forward-char -1))))
|
||||
(if (eobp)
|
||||
nil
|
||||
;; go to end of line before heading
|
||||
(forward-char -1)
|
||||
;; skip preceding balnk line, if there is one
|
||||
(if (memq (preceding-char) '(?\n ?\^M))
|
||||
(forward-char -1)))))
|
||||
|
||||
(defun show-branches ()
|
||||
"Show all subheadings of this heading, but not their bodies."
|
||||
|
|
|
|||
Loading…
Reference in a new issue