]> git.eshelyaron.com Git - emacs.git/commitdiff
(save-buffer-state): Use `declare'.
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 29 Jun 2005 08:19:17 +0000 (08:19 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 29 Jun 2005 08:19:17 +0000 (08:19 +0000)
lisp/font-lock.el

index f8d2f2b88db518176d6375a1ddca68e0418caced..82c12548c1d959a314ecadff0197966aa487fee2 100644 (file)
@@ -620,6 +620,7 @@ Major/minor modes can set this variable if they know which option applies.")
   ;; We use this to preserve or protect things when modifying text properties.
   (defmacro save-buffer-state (varlist &rest body)
     "Bind variables according to VARLIST and eval BODY restoring buffer state."
+    (declare (indent 1) (debug let))
     (let ((modified (make-symbol "modified")))
       `(let* ,(append varlist
                      `((,modified (buffer-modified-p))
@@ -634,8 +635,6 @@ Major/minor modes can set this variable if they know which option applies.")
           ,@body)
         (unless ,modified
           (restore-buffer-modified-p nil)))))
-  (put 'save-buffer-state 'lisp-indent-function 1)
-  (def-edebug-spec save-buffer-state let)
   ;;
   ;; Shut up the byte compiler.
   (defvar font-lock-face-attributes))  ; Obsolete but respected if set.