diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2022-05-02 12:30:19 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2022-05-02 12:30:19 +0200 |
commit | ee913faf9a5d266be41b33556c90b26f55d18013 (patch) | |
tree | 87f7e702ea449bb051c23ca6009aa43cb2652f01 /lisp | |
parent | 10f347a06286272c7dcfdeb47b3511b6f53adcbd (diff) | |
download | emacs-ee913faf9a5d266be41b33556c90b26f55d18013.tar.gz emacs-ee913faf9a5d266be41b33556c90b26f55d18013.tar.bz2 emacs-ee913faf9a5d266be41b33556c90b26f55d18013.zip |
Fix eldoc interaction with `when' and `unless'
* lisp/subr.el (when, unless): Remove the (fn...) bits from the
doc string, because the advertised calling convention is correct
the way it is (bug#27229). This also makes eldoc highlight the
arguments correctly.
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/subr.el | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lisp/subr.el b/lisp/subr.el index ad3494a2fa7..cb7572423af 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -243,18 +243,14 @@ change the list." (defmacro when (cond &rest body) "If COND yields non-nil, do BODY, else return nil. When COND yields non-nil, eval BODY forms sequentially and return -value of last one, or nil if there are none. - -\(fn COND BODY...)" +value of last one, or nil if there are none." (declare (indent 1) (debug t)) (list 'if cond (cons 'progn body))) (defmacro unless (cond &rest body) "If COND yields nil, do BODY, else return nil. When COND yields nil, eval BODY forms sequentially and return -value of last one, or nil if there are none. - -\(fn COND BODY...)" +value of last one, or nil if there are none." (declare (indent 1) (debug t)) (cons 'if (cons cond (cons nil body)))) |