]> git.eshelyaron.com Git - emacs.git/commitdiff
(Man-next-section): Don't consider the last line of the page as being
authorChong Yidong <cyd@stupidchicken.com>
Mon, 4 Jun 2007 23:42:10 +0000 (23:42 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Mon, 4 Jun 2007 23:42:10 +0000 (23:42 +0000)
part of any section.

lisp/man.el

index 0484c032e34dd644bb545d458e412c4128cbaa3b..e74f9734e516d7847616f75c7f6a20360e48806f 100644 (file)
@@ -1296,7 +1296,9 @@ The following key bindings are currently in effect in the buffer:
        (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)."