Mercurial > emacs
changeset 76232:2806691576cd
(where-is): Fail gracefully when not passed a command.
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Wed, 28 Feb 2007 12:50:43 +0000 |
parents | 29b94099e419 |
children | 121fd51d6c13 |
files | lisp/help.el |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/help.el Wed Feb 28 10:45:06 2007 +0000 +++ b/lisp/help.el Wed Feb 28 12:50:43 2007 +0000 @@ -491,6 +491,7 @@ "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)))