changeset 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 fb0e96c13a32
children 0ac6776ef7f7
files lisp/man.el
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
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)."