From b52efb9fafe39ea3370a4a30d046915666e9ad2c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C3=ABl=20Cadilhac?= Date: Thu, 10 May 2007 11:54:33 +0000 Subject: [PATCH] (Man-next-section): Don't consider the last line of the page as being part of any section. --- lisp/ChangeLog | 5 +++++ lisp/man.el | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 22762d8c9d7..e453a3984ae 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2007-05-10 Micha,Ak(Bl Cadilhac + + * man.el (Man-next-section): Don't consider the last line of the page + as being part of any section. + 2007-05-10 Stefan Monnier * textmodes/sgml-mode.el (sgml-value): Fix handling of attributes which 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