From 15d1caef82c8053dcbd8077baa5eeb2b3f61da02 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Thu, 1 Mar 2001 17:49:04 +0000 Subject: [PATCH] (save-buffer-state): Use inhibit-modification-hooks rather than (before|after)-change-functions. --- lisp/ChangeLog | 13 ++++++++----- lisp/font-lock.el | 2 +- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a65463a8c1e..a610fd423da 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2001-03-01 Stefan Monnier + + * font-lock.el (save-buffer-state): Use inhibit-modification-hooks + rather than (before|after)-change-functions. + 2001-03-01 Gerd Moellmann * ediff-util.el (ediff-scroll-horizontally): Arrange for @@ -70,7 +75,7 @@ * international/fontset.el (x-complement-fontset-spec): In the case that we use ASCII font for the other charsets, use only - family and regisry part of it. + family and registry part of it. 2001-02-23 Eli Zaretskii @@ -243,8 +248,7 @@ * battery.el (battery-status-function): Fix doc, :type. - * calendar/timeclock.el (timeclock-get-workday-function): Fix - :type. + * calendar/timeclock.el (timeclock-get-workday-function): Fix :type. 2001-02-15 Gerd Moellmann @@ -347,8 +351,7 @@ * emacs-lisp/re-builder.el (reb-mode): Quote the hook name. From Juanma Barranquero. - * emacs-lisp/authors.el (authors): Expand `root' before running - find. + * emacs-lisp/authors.el (authors): Expand `root' before running find. 2001-02-09 Kenichi Handa diff --git a/lisp/font-lock.el b/lisp/font-lock.el index 30605b57636..f46317d45d3 100644 --- a/lisp/font-lock.el +++ b/lisp/font-lock.el @@ -672,7 +672,7 @@ Major/minor modes can set this variable if they know which option applies.") `(let* ,(append varlist '((modified (buffer-modified-p)) (buffer-undo-list t) (inhibit-read-only t) (inhibit-point-motion-hooks t) - before-change-functions after-change-functions + (inhibit-modification-hooks t) deactivate-mark buffer-file-name buffer-file-truename)) ,@body (when (and (not modified) (buffer-modified-p)) -- 2.39.5