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.
master
Basil L. Contovounesios 4 years ago
parent dc61f46417
commit 733abc056e
No known key found for this signature in database
GPG Key ID: 205AB54A5D5D8CFF
  1. 2
      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)

Loading…
Cancel
Save