diff options
| author | Juri Linkov | 2009-02-12 21:49:29 +0000 |
|---|---|---|
| committer | Juri Linkov | 2009-02-12 21:49:29 +0000 |
| commit | 6c34bcde1e907318c58bb7af3583a8e76ce37b6a (patch) | |
| tree | 729e070c9523915b7aaca8da5df488fe4eaf59f2 | |
| parent | 51d861def832ddd0a57cd6b761a432bc4d289333 (diff) | |
| download | emacs-6c34bcde1e907318c58bb7af3583a8e76ce37b6a.tar.gz emacs-6c34bcde1e907318c58bb7af3583a8e76ce37b6a.zip | |
(image-toggle-display): Let-bind `buffer-file-truename' to nil around the
call to `add-text-properties' to prevent directory time modification by
lock_file. Replace `set-buffer-modified-p' with
`restore-buffer-modified-p'. (Bug#2295)
| -rw-r--r-- | lisp/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/image-mode.el | 5 |
2 files changed, 11 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 041c0dd59ea..a0533e6558b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2009-02-12 Juri Linkov <juri@jurta.org> | ||
| 2 | |||
| 3 | * image-mode.el (image-toggle-display): | ||
| 4 | Let-bind `buffer-file-truename' to nil around the call to | ||
| 5 | `add-text-properties' to prevent directory time modification | ||
| 6 | by lock_file. Replace `set-buffer-modified-p' with | ||
| 7 | `restore-buffer-modified-p'. (Bug#2295) | ||
| 8 | |||
| 1 | 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca> | 9 | 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 10 | ||
| 3 | * progmodes/python.el (python-use-skeletons): Re-add. | 11 | * progmodes/python.el (python-use-skeletons): Re-add. |
diff --git a/lisp/image-mode.el b/lisp/image-mode.el index a5298d8eaa7..b7516522670 100644 --- a/lisp/image-mode.el +++ b/lisp/image-mode.el | |||
| @@ -457,8 +457,9 @@ and showing the image as an image." | |||
| 457 | (buffer-undo-list t) | 457 | (buffer-undo-list t) |
| 458 | (modified (buffer-modified-p))) | 458 | (modified (buffer-modified-p))) |
| 459 | (image-refresh image) | 459 | (image-refresh image) |
| 460 | (add-text-properties (point-min) (point-max) props) | 460 | (let ((buffer-file-truename nil)) ; avoid changing dir mtime by lock_file |
| 461 | (set-buffer-modified-p modified) | 461 | (add-text-properties (point-min) (point-max) props) |
| 462 | (restore-buffer-modified-p modified)) | ||
| 462 | ;; Inhibit the cursor when the buffer contains only an image, | 463 | ;; Inhibit the cursor when the buffer contains only an image, |
| 463 | ;; because cursors look very strange on top of images. | 464 | ;; because cursors look very strange on top of images. |
| 464 | (setq cursor-type nil) | 465 | (setq cursor-type nil) |