summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2013-11-04 15:06:02 -0500
committerStefan Monnier <monnier@iro.umontreal.ca>2013-11-04 15:06:02 -0500
commitc93f3f5c5c7d682faf14f908e960632f451cb847 (patch)
tree77dab63d1a942536d0ab15cdbee26bd19a294a25
parent0ade65b530469a4c6a7d22d3be14f62f0ae8a790 (diff)
downloademacs-c93f3f5c5c7d682faf14f908e960632f451cb847.tar.gz
* lisp/emacs-lisp/byte-run.el (defmacro, defun): Set their `indent' property.
-rw-r--r--lisp/ChangeLog2
-rw-r--r--lisp/emacs-lisp/byte-run.el3
2 files changed, 4 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index c4f5efd371e..66051898dd3 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,7 @@
2013-11-04 Stefan Monnier <monnier@iro.umontreal.ca>
+ * emacs-lisp/byte-run.el (defmacro, defun): Set their `indent' property.
+
* electric.el (electric-indent-post-self-insert-function):
Only delete trailing whitepsace if it is indeed trailing (bug#15767).
diff --git a/lisp/emacs-lisp/byte-run.el b/lisp/emacs-lisp/byte-run.el
index 0bb04950dfd..7ec24cc2aad 100644
--- a/lisp/emacs-lisp/byte-run.el
+++ b/lisp/emacs-lisp/byte-run.el
@@ -118,6 +118,7 @@ the FUN corresponding to PROP is called with the function name
and the VALUES and should return the code to use to set this property.")
(put 'defmacro 'doc-string-elt 3)
+(put 'defmacro 'lisp-indent-function 2)
(defalias 'defmacro
(cons
'macro
@@ -179,7 +180,7 @@ The return value is undefined.
;; (defun foo (arg) (toto) nil)
;; from
;; (defun foo (arg) (toto)).
- (declare (doc-string 3))
+ (declare (doc-string 3) (indent 2))
(let ((decls (cond
((eq (car-safe docstring) 'declare)
(prog1 (cdr docstring) (setq docstring nil)))