diff lisp/man.el @ 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 9522301cee68
children 9355f9b7bbff d7172f202ab8
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)."