]> git.eshelyaron.com Git - emacs.git/commit
Fix auto-reverting image-mode buffer (bug#21598)
authorNicolas Petton <nicolas@petton.fr>
Mon, 25 Jul 2016 21:40:35 +0000 (23:40 +0200)
committerNicolas Petton <nicolas@petton.fr>
Mon, 25 Jul 2016 21:40:35 +0000 (23:40 +0200)
commitb176d169347925d57ca63ab63b85d92e49a53c81
treed1d01811c413c076824df524744387c6585fa19f
parent50cc08bf6e6cdc96dcdcbef388cf9cf76a15f81a
Fix auto-reverting image-mode buffer (bug#21598)

When auto-reverting an image buffer, `image-mode' is not called since
`revert-buffer' is called with `preserve-modes' set to non-nil.

* lisp/image-mode.el (image-after-revert-hook): Check if there is an
image display property for the current buffer before updating it.
lisp/image-mode.el