[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 551594e: Add indent spec to easy-mmode macros
From: |
Mark Oteiza |
Subject: |
[Emacs-diffs] master 551594e: Add indent spec to easy-mmode macros |
Date: |
Thu, 28 Sep 2017 07:54:43 -0400 (EDT) |
branch: master
commit 551594e951642a043862dabb987facfc0253f7d3
Author: Mark Oteiza <address@hidden>
Commit: Mark Oteiza <address@hidden>
Add indent spec to easy-mmode macros
Ideally these macros should expand to the proper code instead of
relegating all the work to a function call.
* lisp/emacs-lisp/easy-mmode.el (easy-mmode-defmap):
(easy-mmode-define-syntax): Add indent spec.
---
lisp/emacs-lisp/easy-mmode.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lisp/emacs-lisp/easy-mmode.el b/lisp/emacs-lisp/easy-mmode.el
index bf087fc..643a65f 100644
--- a/lisp/emacs-lisp/easy-mmode.el
+++ b/lisp/emacs-lisp/easy-mmode.el
@@ -543,6 +543,7 @@ Valid keywords and arguments are:
"Define a constant M whose value is the result of `easy-mmode-define-keymap'.
The M, BS, and ARGS arguments are as per that function. DOC is
the constant's documentation."
+ (declare (indent 1))
`(defconst ,m
(easy-mmode-define-keymap ,bs nil (if (boundp ',m) ,m) ,(cons 'list args))
,doc))
@@ -569,6 +570,7 @@ the constant's documentation."
(defmacro easy-mmode-defsyntax (st css doc &rest args)
"Define variable ST as a syntax-table.
CSS contains a list of syntax specifications of the form (CHAR . SYNTAX)."
+ (declare (indent 1))
`(progn
(autoload 'easy-mmode-define-syntax "easy-mmode")
(defconst ,st (easy-mmode-define-syntax ,css ,(cons 'list args)) ,doc)))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 551594e: Add indent spec to easy-mmode macros,
Mark Oteiza <=