# HG changeset patch # User Chong Yidong # Date 1181000530 0 # Node ID f05ec6aa2fbebb676d0a4b53d68ab0579cc38d3b # Parent c11694f17ad9509e5e8b97bd7d300fb87eccbd47 (Man-next-section): Don't consider the last line of the page as being part of any section. diff -r c11694f17ad9 -r f05ec6aa2fbe lisp/man.el --- 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)."