+2012-08-05 Vegard Øye <vegard_oye@hotmail.com>
+
+ * emulation/viper-init.el (viper-deflocalvar): Add docstring and
+ indentation declaration.
+ (viper-loop): Add indentation declaration (Bug#7025).
+
2012-08-05 Chong Yidong <cyd@gnu.org>
* help-fns.el (describe-variable): Add hyperlink for
;;; Macros
(defmacro viper-deflocalvar (var default-value &optional documentation)
+ "Define VAR as a buffer-local variable.
+DEFAULT-VALUE is the default value, and DOCUMENTATION is the
+docstring. The variable becomes buffer-local whenever set."
+ (declare (indent defun))
`(progn
(defvar ,var ,default-value
,(format "%s\n\(buffer local\)" documentation))
;; (viper-loop COUNT BODY) Execute BODY COUNT times.
(defmacro viper-loop (count &rest body)
+ (declare (indent defun))
`(let ((count ,count))
(while (> count 0)
,@body