From: Chong Yidong Date: Mon, 4 Jun 2007 23:42:10 +0000 (+0000) Subject: (Man-next-section): Don't consider the last line of the page as being X-Git-Tag: emacs-pretest-22.1.90~1443 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=65e076827adb6c9c371b3a6f3ccddc47460a0dd9;p=emacs.git (Man-next-section): Don't consider the last line of the page as being part of any section. --- diff --git a/lisp/man.el b/lisp/man.el index 0484c032e34..e74f9734e51 100644 --- a/lisp/man.el +++ b/lisp/man.el @@ -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)."