changeset 50454:583825022e8f

(Info-goto-emacs-command-node): If command is given as a string, convert it to a symbol.
author Masatake YAMATO <jet@gyve.org>
date Sat, 05 Apr 2003 18:01:14 +0000
parents e499daf7fb22
children 7993414db7f7
files lisp/ChangeLog lisp/info.el
diffstat 2 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Sat Apr 05 15:51:14 2003 +0000
+++ b/lisp/ChangeLog	Sat Apr 05 18:01:14 2003 +0000
@@ -1,3 +1,8 @@
+2003-04-06  Masatake YAMATO  <jet@gyve.org>
+
+	* info.el (Info-goto-emacs-command-node): If command 
+	is given as a string, convert it to a symbol.
+
 2003-04-05  Kevin Ryde  <user42@zip.com.au>
 
 	* info-look.el (emacs-lisp-mode): Add prefix/suffix matching regexps.
--- a/lisp/info.el	Sat Apr 05 15:51:14 2003 +0000
+++ b/lisp/info.el	Sat Apr 05 18:01:14 2003 +0000
@@ -2586,8 +2586,12 @@
   "Go to the Info node in the Emacs manual for command COMMAND.
 The command is found by looking up in Emacs manual's indices
 or in another manual found via COMMAND's `info-file' property or
-the variable `Info-file-list-for-emacs'."
+the variable `Info-file-list-for-emacs'. COMMAND must be a symbol
+or string."
   (interactive "CFind documentation for command: ")
+  ;; If command is given as a string, convert it to a symbol.
+  (if (stringp command)
+      (setq command (intern command)))  
   (or (commandp command)
       (signal 'wrong-type-argument (list 'commandp command)))
   (let ((where (Info-find-emacs-command-nodes command)))