Mercurial > emacs
changeset 77897:f05ec6aa2fbe
(Man-next-section): Don't consider the last line of the page as being
part of any section.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Mon, 04 Jun 2007 23:42:10 +0000 |
parents | c11694f17ad9 |
children | 5fd1f0008f82 |
files | lisp/man.el |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/man.el Mon Jun 04 23:39:06 2007 +0000 +++ b/lisp/man.el Mon Jun 04 23:42:10 2007 +0000 @@ -1296,7 +1296,9 @@ (forward-line 1)) (if (re-search-forward Man-heading-regexp (point-max) t n) (beginning-of-line) - (goto-char (point-max))))) + (goto-char (point-max)) + ;; The last line doesn't belong to any section. + (forward-line -1)))) (defun Man-previous-section (n) "Move point to Nth previous section (default 1)."