aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/info.el
diff options
context:
space:
mode:
authorRichard M. Stallman1995-08-19 16:54:27 +0000
committerRichard M. Stallman1995-08-19 16:54:27 +0000
commitf57b2cd858a69affc4bdeada76e945af4cf206ea (patch)
tree9c3956669bbc2d8e3da00cd720e909ffc8bdcd70 /lisp/info.el
parent67cbfd2ab844850cbd1ea45a3fd0948706a54ffb (diff)
downloademacs-f57b2cd858a69affc4bdeada76e945af4cf206ea.tar.gz
emacs-f57b2cd858a69affc4bdeada76e945af4cf206ea.zip
(Info-find-emacs-command-nodes): Fix previous change.
Diffstat (limited to 'lisp/info.el')
-rw-r--r--lisp/info.el12
1 files changed, 8 insertions, 4 deletions
diff --git a/lisp/info.el b/lisp/info.el
index 7e10d334a46..4b9390f5d94 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -1621,7 +1621,9 @@ If the element is just a file name, the file name also serves as the prefix.")
1621 1621
1622(defun Info-find-emacs-command-nodes (command) 1622(defun Info-find-emacs-command-nodes (command)
1623 "Return a list of locations documenting COMMAND. 1623 "Return a list of locations documenting COMMAND.
1624The variable `Info-file-alist' tells what Info manual to search. 1624The `info-file' property of COMMAND says which Info manual to search.
1625If COMMAND has no property, the variable `Info-file-list-for-emacs'
1626defines heuristics for which Info manual to try.
1625The locations are of the format used in Info-history, i.e. 1627The locations are of the format used in Info-history, i.e.
1626\(FILENAME NODENAME BUFFERPOS\)." 1628\(FILENAME NODENAME BUFFERPOS\)."
1627 (let ((where '()) 1629 (let ((where '())
@@ -1640,7 +1642,7 @@ The locations are of the format used in Info-history, i.e.
1640 (car elt) 1642 (car elt)
1641 elt)) 1643 elt))
1642 (file (if (consp elt) (cdr elt) elt)) 1644 (file (if (consp elt) (cdr elt) elt))
1643 (regexp (concat "^" (regexp-quote name) 1645 (regexp (concat "\\`" (regexp-quote name)
1644 "\\(\\'\\|-\\)"))) 1646 "\\(\\'\\|-\\)")))
1645 (if (string-match regexp (symbol-name command)) 1647 (if (string-match regexp (symbol-name command))
1646 (setq info-file file file-list nil)) 1648 (setq info-file file file-list nil))
@@ -1668,7 +1670,8 @@ The locations are of the format used in Info-history, i.e.
1668(defun Info-goto-emacs-command-node (command) 1670(defun Info-goto-emacs-command-node (command)
1669 "Go to the Info node in the Emacs manual for command COMMAND. 1671 "Go to the Info node in the Emacs manual for command COMMAND.
1670The command is found by looking up in Emacs manual's Command Index 1672The command is found by looking up in Emacs manual's Command Index
1671or in another manual found via `Info-file-list-for-emacs'." 1673or in another manual found via COMMAND's `info-file' property or
1674the variable `Info-file-list-for-emacs'."
1672 (interactive "CFind documentation for command: ") 1675 (interactive "CFind documentation for command: ")
1673 (or (commandp command) 1676 (or (commandp command)
1674 (signal 'wrong-type-argument (list 'commandp command))) 1677 (signal 'wrong-type-argument (list 'commandp command)))
@@ -1699,7 +1702,8 @@ or in another manual found via `Info-file-list-for-emacs'."
1699 "Go to the Info node in the Emacs manual the command bound to KEY, a string. 1702 "Go to the Info node in the Emacs manual the command bound to KEY, a string.
1700Interactively, if the binding is execute-extended-command, a command is read. 1703Interactively, if the binding is execute-extended-command, a command is read.
1701The command is found by looking up in Emacs manual's Command Index 1704The command is found by looking up in Emacs manual's Command Index
1702or in another manual found via `Info-file-list-for-emacs'." 1705or in another manual found via COMMAND's `info-file' property or
1706the variable `Info-file-list-for-emacs'."
1703 (interactive "kFind documentation for key:") 1707 (interactive "kFind documentation for key:")
1704 (let ((command (key-binding key))) 1708 (let ((command (key-binding key)))
1705 (cond ((null command) 1709 (cond ((null command)