aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichaël Cadilhac2007-05-10 11:54:33 +0000
committerMichaël Cadilhac2007-05-10 11:54:33 +0000
commitb52efb9fafe39ea3370a4a30d046915666e9ad2c (patch)
tree3ddc45134356c075bb85ee0069f6a11005a9c49a
parented9bc8a2e6603eff98f0894b782c3d98d1e877aa (diff)
downloademacs-b52efb9fafe39ea3370a4a30d046915666e9ad2c.tar.gz
emacs-b52efb9fafe39ea3370a4a30d046915666e9ad2c.zip
(Man-next-section): Don't consider the last line of the page as being
part of any section.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/man.el4
2 files changed, 8 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 22762d8c9d7..e453a3984ae 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12007-05-10 Micha,Ak(Bl Cadilhac <michael@cadilhac.name>
2
3 * man.el (Man-next-section): Don't consider the last line of the page
4 as being part of any section.
5
12007-05-10 Stefan Monnier <monnier@iro.umontreal.ca> 62007-05-10 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 * textmodes/sgml-mode.el (sgml-value): Fix handling of attributes which 8 * 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:
1296 (forward-line 1)) 1296 (forward-line 1))
1297 (if (re-search-forward Man-heading-regexp (point-max) t n) 1297 (if (re-search-forward Man-heading-regexp (point-max) t n)
1298 (beginning-of-line) 1298 (beginning-of-line)
1299 (goto-char (point-max))))) 1299 (goto-char (point-max))
1300 ;; The last line doesn't belong to any section.
1301 (forward-line -1))))
1300 1302
1301(defun Man-previous-section (n) 1303(defun Man-previous-section (n)
1302 "Move point to Nth previous section (default 1)." 1304 "Move point to Nth previous section (default 1)."