]> git.eshelyaron.com Git - emacs.git/commitdiff
(Man-next-section): Don't consider the last line of the page as being
authorMichaël Cadilhac <michael.cadilhac@lrde.org>
Thu, 10 May 2007 11:54:33 +0000 (11:54 +0000)
committerMichaël Cadilhac <michael.cadilhac@lrde.org>
Thu, 10 May 2007 11:54:33 +0000 (11:54 +0000)
part of any section.

lisp/ChangeLog
lisp/man.el

index 22762d8c9d7f4f58fbcf210434ecb230b708a8e1..e453a3984ae84af278de2dafec8d818f83d1c546 100644 (file)
@@ -1,3 +1,8 @@
+2007-05-10  Micha\e,Ak\e(Bl Cadilhac  <michael@cadilhac.name>
+
+       * 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  <monnier@iro.umontreal.ca>
 
        * textmodes/sgml-mode.el (sgml-value): Fix handling of attributes which
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)."