aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2010-01-09 18:53:06 -0500
committerChong Yidong2010-01-09 18:53:06 -0500
commite709e39d6e4014c85d0a73f7b5debf2e7660fcb4 (patch)
tree7ee4392e7303195eaeaa16b30a46e93a3797d74f
parent8fe7200cbc8d77173a27406bdf9a1b7ee861c969 (diff)
downloademacs-e709e39d6e4014c85d0a73f7b5debf2e7660fcb4.tar.gz
emacs-e709e39d6e4014c85d0a73f7b5debf2e7660fcb4.zip
* man.el (Man-goto-section): Signal error if section not found (Bug#5317).
-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 3c53662600a..ca021b92a44 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12010-01-09 Chong Yidong <cyd@stupidchicken.com>
2
3 * man.el (Man-goto-section): Signal error if the section is not
4 found (Bug#5317).
5
12010-01-09 Juanma Barranquero <lekktu@gmail.com> 62010-01-09 Juanma Barranquero <lekktu@gmail.com>
2 7
3 * vc-bzr.el (vc-bzr-working-revision): On Windows and MS-DOS, accept 8 * vc-bzr.el (vc-bzr-working-revision): On Windows and MS-DOS, accept
diff --git a/lisp/man.el b/lisp/man.el
index b34ca768707..bc475852808 100644
--- a/lisp/man.el
+++ b/lisp/man.el
@@ -1500,7 +1500,9 @@ Returns t if section is found, nil otherwise."
1500 (string= chosen "")) 1500 (string= chosen ""))
1501 default 1501 default
1502 chosen))) 1502 chosen)))
1503 (Man-find-section (aheadsym Man-sections-alist))) 1503 (unless (Man-find-section (aheadsym Man-sections-alist))
1504 (error "Section not found")))
1505
1504 1506
1505(defun Man-goto-see-also-section () 1507(defun Man-goto-see-also-section ()
1506 "Move point to the \"SEE ALSO\" section. 1508 "Move point to the \"SEE ALSO\" section.