mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-25 07:28:20 +00:00
Don't call `image-toggle-display-text' when toggling
*lisp/image-mode.el (image-mode-to-text): Do not call the image-toggle-display-text twice when toggle image display (bug#47521).
This commit is contained in:
parent
d2edc29db6
commit
20669c1b92
@ -732,8 +732,9 @@ displays an image file as text."
|
||||
(setq image-type previous-image-type)
|
||||
;; Enable image minor mode with `C-c C-c'.
|
||||
(image-minor-mode 1)
|
||||
;; Show the image file as text.
|
||||
(image-toggle-display-text)))
|
||||
(unless (image-get-display-property)
|
||||
;; Show the image file as text.
|
||||
(image-toggle-display-text))))
|
||||
|
||||
(defun image-mode-as-hex ()
|
||||
"Set a non-image mode as major mode in combination with image minor mode.
|
||||
|
Loading…
Reference in New Issue
Block a user