emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master ee913faf9a: Fix eldoc interaction with `when' and `unless'


From: Lars Ingebrigtsen
Subject: master ee913faf9a: Fix eldoc interaction with `when' and `unless'
Date: Mon, 2 May 2022 06:31:19 -0400 (EDT)

branch: master
commit ee913faf9a5d266be41b33556c90b26f55d18013
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    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.
---
 lisp/subr.el | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/lisp/subr.el b/lisp/subr.el
index ad3494a2fa..cb7572423a 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))))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]