branch: externals/dash
commit 733abc056ef596c6839355aa5b2ebb85be3ed818
Author: Basil L. Contovounesios <conto...@tcd.ie>
Commit: Basil L. Contovounesios <conto...@tcd.ie>

    Fix indentation of examples in Emacs 29
    
    Emacs 29 no longer indents functions/macros with a name starting
    with 'def' as a 'def' construct with a body starting on the second
    line.
    
    * dev/dash-defs.el (def-example-group, defexamples): Explicitly
    indent as defuns.
---
 dev/dash-defs.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dev/dash-defs.el b/dev/dash-defs.el
index 9c9339e09d..d869af9705 100644
--- a/dev/dash-defs.el
+++ b/dev/dash-defs.el
@@ -67,6 +67,7 @@ differences in implementation between systems.  Used in place 
of
 (defmacro def-example-group (name doc &rest examples)
   "Define a group with NAME and DOC of EXAMPLES of several functions.
 See `dash--groups'."
+  (declare (indent defun))
   `(progn
      (push (cons ,name ,doc) dash--groups)
      ,@examples))
@@ -74,6 +75,7 @@ See `dash--groups'."
 (defmacro defexamples (fn &rest examples)
   "Define a set of EXAMPLES and corresponding ERT tests for FN.
 See `dash--groups'."
+  (declare (indent defun))
   (setq examples (-partition 3 examples))
   `(progn
      (push (cons ',fn ',examples) dash--groups)

Reply via email to