aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1994-11-08 22:34:06 +0000
committerKarl Heuer1994-11-08 22:34:06 +0000
commit2151a1cff8a9b2086e89e3262b8ee0dbffd4c83a (patch)
tree04a99a2b1fbb34b8e45a5324775d8fec8db29dc5
parent06f7e2c57ae75ba30b724114aa183bf289a4893b (diff)
downloademacs-2151a1cff8a9b2086e89e3262b8ee0dbffd4c83a.tar.gz
emacs-2151a1cff8a9b2086e89e3262b8ee0dbffd4c83a.zip
(Man-follow-manual-reference): First arg deleted. Call
Man-getpage-in-background with one argument only. [this entry was already in the ChangeLog, but not in the source.]
-rw-r--r--lisp/man.el15
1 files changed, 6 insertions, 9 deletions
diff --git a/lisp/man.el b/lisp/man.el
index 7f77d867c3a..4466ac2e464 100644
--- a/lisp/man.el
+++ b/lisp/man.el
@@ -3,8 +3,8 @@
3;; Copyright (C) 1993, 1994 Free Software Foundation, Inc. 3;; Copyright (C) 1993, 1994 Free Software Foundation, Inc.
4 4
5;; Author: Barry A. Warsaw <bwarsaw@cen.com> 5;; Author: Barry A. Warsaw <bwarsaw@cen.com>
6;; Last-Modified: $Date: 1994/10/27 19:08:03 $ 6;; Last-Modified: $Date: 1994/11/07 12:13:16 $
7;; Version: $Revision: 1.56 $ 7;; Version: $Revision: 1.57 $
8;; Keywords: help 8;; Keywords: help
9;; Adapted-By: ESR, pot 9;; Adapted-By: ESR, pot
10 10
@@ -948,15 +948,13 @@ Actually the section moved to is described by `Man-see-also-regexp'."
948 (error (concat "No " Man-see-also-regexp 948 (error (concat "No " Man-see-also-regexp
949 " section found in the current manpage")))) 949 " section found in the current manpage"))))
950 950
951(defun Man-follow-manual-reference (arg reference) 951(defun Man-follow-manual-reference (reference)
952 "Get one of the manpages referred to in the \"SEE ALSO\" section. 952 "Get one of the manpages referred to in the \"SEE ALSO\" section.
953Specify which reference to use; default is based on word at point. 953Specify which reference to use; default is based on word at point."
954Prefix argument ARG is passed to `Man-getpage-in-background'."
955 (interactive 954 (interactive
956 (if (not Man-refpages-alist) 955 (if (not Man-refpages-alist)
957 (error "There are no references in the current man page") 956 (error "There are no references in the current man page")
958 (list current-prefix-arg 957 (list (let* ((default (or
959 (let* ((default (or
960 (car (all-completions 958 (car (all-completions
961 (save-excursion 959 (save-excursion
962 (skip-syntax-backward "w()") 960 (skip-syntax-backward "w()")
@@ -980,8 +978,7 @@ Prefix argument ARG is passed to `Man-getpage-in-background'."
980 (error "Can't find any references in the current manpage") 978 (error "Can't find any references in the current manpage")
981 (aput 'Man-refpages-alist reference) 979 (aput 'Man-refpages-alist reference)
982 (Man-getpage-in-background 980 (Man-getpage-in-background
983 (Man-translate-references (aheadsym Man-refpages-alist)) 981 (Man-translate-references (aheadsym Man-refpages-alist)))))
984 arg)))
985 982
986(defun Man-kill () 983(defun Man-kill ()
987 "Kill the buffer containing the manpage." 984 "Kill the buffer containing the manpage."