]> git.eshelyaron.com Git - emacs.git/commitdiff
(where-is): Fail gracefully when not passed a command.
authorJuanma Barranquero <lekktu@gmail.com>
Wed, 28 Feb 2007 12:50:43 +0000 (12:50 +0000)
committerJuanma Barranquero <lekktu@gmail.com>
Wed, 28 Feb 2007 12:50:43 +0000 (12:50 +0000)
lisp/help.el

index 8aa9ba6c46b13a9d6fdf4d3b391c625c2f8d6350..d0783dd0351cb644ade431b3fa187e09db243066 100644 (file)
@@ -491,6 +491,7 @@ If INSERT (the prefix arg) is non-nil, insert the message in the buffer."
                  "Where is command: ")
                obarray 'commandp t))
      (list (if (equal val "") fn (intern val)) current-prefix-arg)))
+  (unless definition (error "No command"))
   (let ((func (indirect-function definition))
         (defs nil)
         (standard-output (if insert (current-buffer) t)))