Mercurial > emacs
diff lisp/man.el @ 80892:324e8f41a9b3
(Man-next-section): Don't consider the last line of the page as being
part of any section.
author | Michaël Cadilhac <michael.cadilhac@lrde.org> |
---|---|
date | Thu, 10 May 2007 11:54:02 +0000 |
parents | 9522301cee68 |
children | 9355f9b7bbff d7172f202ab8 |
line wrap: on
line diff
--- a/lisp/man.el Thu May 10 08:43:56 2007 +0000 +++ b/lisp/man.el Thu May 10 11:54:02 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)."