+2009-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
+
+ * jit-lock.el (with-buffer-prepared-for-jit-lock): Swap the `let' and
+ the `with-buffer-unmodified' to avoid useless `readlink' calls.
+
2009-02-14 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
* textmodes/bibtex.el (bibtex-global-key-alist)
around forms that refer to translation-table-for-input.
* international/quail.el (quail-input-string-to-events)
- (quail-store-decode-map-key, quail-char-equal-p): Use
- `with-no-warnings' around forms that refer to
+ (quail-store-decode-map-key, quail-char-equal-p):
+ Use `with-no-warnings' around forms that refer to
translation-table-for-input.
* simple.el (quoted-insert, zap-to-char): Use `with-no-warnings'
"Execute BODY in current buffer, overriding several variables.
Preserves the `buffer-modified-p' state of the current buffer."
(declare (debug t))
- `(with-buffer-unmodified
- (let ((buffer-undo-list t)
- (inhibit-read-only t)
- (inhibit-point-motion-hooks t)
- (inhibit-modification-hooks t)
- deactivate-mark
- buffer-file-name
- buffer-file-truename)
- ,@body))))
+ `(let ((buffer-undo-list t)
+ (inhibit-read-only t)
+ (inhibit-point-motion-hooks t)
+ (inhibit-modification-hooks t)
+ deactivate-mark
+ buffer-file-name
+ buffer-file-truename)
+ ;; Do reset the modification status from within the let, since
+ ;; otherwise set-buffer-modified-p may try to unlock the file.
+ (with-buffer-unmodified
+ ,@body))))
\f