emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/hydra ab67b29835 01/46: Declare the third argument of


From: Stefan Monnier
Subject: [elpa] externals/hydra ab67b29835 01/46: Declare the third argument of `defhydra’ as a (potential) docstring.
Date: Tue, 25 Oct 2022 22:27:19 -0400 (EDT)

branch: externals/hydra
commit ab67b29835ed550427b75e94784b63d98a00c0e0
Author: Joe Wreschnig <joe.wreschnig@gmail.com>
Commit: Joe Wreschnig <joe.wreschnig@gmail.com>

    Declare the third argument of `defhydra’ as a (potential) docstring.
    
    This enables proper fontification of them within emacs-lisp-mode.
---
 hydra.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hydra.el b/hydra.el
index e3b3703a00..a517c7a46e 100644
--- a/hydra.el
+++ b/hydra.el
@@ -1161,7 +1161,7 @@ It is possible to omit both BODY-MAP and BODY-KEY if you 
don't
 want to bind anything.  In that case, typically you will bind the
 generated NAME/body command.  This command is also the return
 result of `defhydra'."
-  (declare (indent defun))
+  (declare (indent defun) (doc-string 3))
   (setq heads (copy-tree heads))
   (cond ((stringp docstring))
         ((and (consp docstring)



reply via email to

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