mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Don't auto-resize image if echo area is non-empty
* lisp/image-mode.el (image-fit-to-window): Don't auto-resize image if there's a message in the echo area.
This commit is contained in:
parent
6d0fec5ae0
commit
bb83fb5f62
1 changed files with 3 additions and 1 deletions
|
|
@ -1061,7 +1061,9 @@ Otherwise, display the image by calling `image-mode'."
|
|||
;; Don't resize anything if we're in the minibuffer
|
||||
;; (which may transitively change the window sizes if you
|
||||
;; hit TAB, for instance).
|
||||
(not (minibuffer-window-active-p (selected-window))))
|
||||
(not (minibuffer-window-active-p (selected-window)))
|
||||
;; Don't resize if there's a message in the echo area.
|
||||
(not (current-message)))
|
||||
(with-current-buffer (window-buffer window)
|
||||
(when (derived-mode-p 'image-mode)
|
||||
(let ((spec (image-get-display-property)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue