(save-buffer-state): Make sure the state of the

buffer is always restored.
This commit is contained in:
Andreas Schwab 2007-12-26 19:05:28 +00:00
parent 28d8820188
commit e97fd4fb02
2 changed files with 10 additions and 4 deletions

View file

@ -1,3 +1,8 @@
2007-12-26 Andreas Schwab <schwab@suse.de>
* font-lock.el (save-buffer-state): Make sure the state of the
buffer is always restored.
2007-12-26 Jay Belanger <jay.p.belanger@gmail.com>
* calc/calc.el (calc-lang-allow-percentsigns): New variable.

View file

@ -616,10 +616,11 @@ Major/minor modes can set this variable if they know which option applies.")
deactivate-mark
buffer-file-name
buffer-file-truename))
(progn
,@body)
(unless ,modified
(restore-buffer-modified-p nil)))))
(unwind-protect
(progn
,@body)
(unless ,modified
(restore-buffer-modified-p nil))))))
;;
;; Shut up the byte compiler.
(defvar font-lock-face-attributes)) ; Obsolete but respected if set.