aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schwab2007-12-26 19:05:28 +0000
committerAndreas Schwab2007-12-26 19:05:28 +0000
commite97fd4fb02ca707a3eb0657d581862349e53067e (patch)
tree52bee07f235584dfb2ab0d881fa0bc6a9d109069
parent28d88201880a7c891eec1572f953e8bdc71860e7 (diff)
downloademacs-e97fd4fb02ca707a3eb0657d581862349e53067e.tar.gz
emacs-e97fd4fb02ca707a3eb0657d581862349e53067e.zip
(save-buffer-state): Make sure the state of the
buffer is always restored.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/font-lock.el9
2 files changed, 10 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 392eaa6d609..e6a14fcb813 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12007-12-26 Andreas Schwab <schwab@suse.de>
2
3 * font-lock.el (save-buffer-state): Make sure the state of the
4 buffer is always restored.
5
12007-12-26 Jay Belanger <jay.p.belanger@gmail.com> 62007-12-26 Jay Belanger <jay.p.belanger@gmail.com>
2 7
3 * calc/calc.el (calc-lang-allow-percentsigns): New variable. 8 * calc/calc.el (calc-lang-allow-percentsigns): New variable.
diff --git a/lisp/font-lock.el b/lisp/font-lock.el
index dc350ce146b..76f3da98bec 100644
--- a/lisp/font-lock.el
+++ b/lisp/font-lock.el
@@ -616,10 +616,11 @@ Major/minor modes can set this variable if they know which option applies.")
616 deactivate-mark 616 deactivate-mark
617 buffer-file-name 617 buffer-file-name
618 buffer-file-truename)) 618 buffer-file-truename))
619 (progn 619 (unwind-protect
620 ,@body) 620 (progn
621 (unless ,modified 621 ,@body)
622 (restore-buffer-modified-p nil))))) 622 (unless ,modified
623 (restore-buffer-modified-p nil))))))
623 ;; 624 ;;
624 ;; Shut up the byte compiler. 625 ;; Shut up the byte compiler.
625 (defvar font-lock-face-attributes)) ; Obsolete but respected if set. 626 (defvar font-lock-face-attributes)) ; Obsolete but respected if set.