# HG changeset patch # User Pavel Jank # Date 1015233847 0 # Node ID 8dc5abd4533a0c2e072e88dd5f9aa1a209245134 # Parent 4f4870cb475a7864084ef5621a1c1d3c5886cd42 (describe-key-briefly, describe-key): Interpret `undefined' like not defined at all. diff -r 4f4870cb475a -r 8dc5abd4533a lisp/help.el --- a/lisp/help.el Mon Mar 04 09:22:28 2002 +0000 +++ b/lisp/help.el Mon Mar 04 09:24:07 2002 +0000 @@ -473,7 +473,7 @@ (let ((defn (or (string-key-binding key) (key-binding key))) (key-desc (key-description key))) - (if (or (null defn) (integerp defn)) + (if (or (null defn) (integerp defn) (equal defn 'undefined)) (princ (format "%s is undefined" key-desc)) (princ (format (if (windowp window) "%s at that spot runs the command %s" @@ -501,7 +501,7 @@ (set-buffer (window-buffer window)) (goto-char position)) (let ((defn (or (string-key-binding key) (key-binding key)))) - (if (or (null defn) (integerp defn)) + (if (or (null defn) (integerp defn) (equal defn 'undefined)) (message "%s is undefined" (key-description key)) (help-setup-xref (list #'describe-function defn) (interactive-p)) (with-output-to-temp-buffer (help-buffer)