From 65e076827adb6c9c371b3a6f3ccddc47460a0dd9 Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Mon, 4 Jun 2007 23:42:10 +0000 Subject: [PATCH] (Man-next-section): Don't consider the last line of the page as being part of any section. --- lisp/man.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)." -- 2.39.2