summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorJuri Linkov <juri@linkov.net>2020-03-06 02:27:32 +0200
committerJuri Linkov <juri@linkov.net>2020-03-06 02:27:32 +0200
commit7e8b8da9e30c8b3dcb2f7740406358e00a1a42f8 (patch)
treef39e2ef2ec1d401888183199fc00dc57255e66d4 /lisp/emacs-lisp
parent32261ed15bc4fb7b9d2cf955286aa21562d2fc8e (diff)
downloademacs-7e8b8da9e30c8b3dcb2f7740406358e00a1a42f8.tar.gz
emacs-7e8b8da9e30c8b3dcb2f7740406358e00a1a42f8.tar.bz2
emacs-7e8b8da9e30c8b3dcb2f7740406358e00a1a42f8.zip
Fix handling of empty input in describe-variable and describe-symbol
* lisp/help-fns.el (describe-variable): Use 'user-error' like in 'describe-function'. (describe-symbol): Use empty string for arg SYMBOL when input is empty and there is no default value. This allows to signal the error "You didn't specify a function or variable" instead of displaying help about the symbol 'nil' on empty input. OTOH, still allows to see help about 'nil' when the input is "nil".
Diffstat (limited to 'lisp/emacs-lisp')
0 files changed, 0 insertions, 0 deletions