diff lisp/info.el @ 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 bb8b212f5326
children 4d6ac18fff69
line wrap: on
line diff
--- 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)))