]> git.eshelyaron.com Git - emacs.git/commit
* lisp/image-mode.el: Use one timer and lock for slow remote calls (bug#45256)
authorJuri Linkov <juri@linkov.net>
Sat, 19 Dec 2020 20:19:18 +0000 (22:19 +0200)
committerJuri Linkov <juri@linkov.net>
Sat, 19 Dec 2020 20:19:18 +0000 (22:19 +0200)
commitb9edbaed01a91d5fc6235fc679d8e0cd827f6fa9
treeb5c9c1eb9d0365a25a00f0f75f3ffea690472ad5
parent5fe04f6b0773279a46b0449f0c890af3a03fb649
* lisp/image-mode.el: Use one timer and lock for slow remote calls (bug#45256)

* lisp/image-mode.el (image-auto-resize-timer): New variable.
(image--window-state-change): Cancel previous timer and
remember new timer in image-auto-resize-timer.
(image--window-state-change): New variable.
(image-fit-to-window): When image-fit-to-window-lock is nil,
call image-toggle-display-image ignoring 'remote-file-error'.
lisp/image-mode.el