1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-05 07:01:11 -08:00

Improve obsoletion of image-transform-fit-to-{height,width}

* lisp/image-mode.el (image-transform-fit-to-height)
(image-transform-fit-to-width): Change obsoletion to refer to new
command 'image-transform-fit-to-window'.
This commit is contained in:
Stefan Kangas 2022-08-18 23:47:47 +02:00
parent 0bd96806ef
commit f1f2bbbc08

View file

@ -1554,14 +1554,14 @@ The percentage is in relation to the original size of the image."
(defun image-transform-fit-to-height ()
"Fit the current image to the height of the current window."
(declare (obsolete nil "29.1"))
(declare (obsolete image-transform-fit-to-window "29.1"))
(interactive nil image-mode)
(setq image-transform-resize 'fit-height)
(image-toggle-display-image))
(defun image-transform-fit-to-width ()
"Fit the current image to the width of the current window."
(declare (obsolete nil "29.1"))
(declare (obsolete image-transform-fit-to-window "29.1"))
(interactive nil image-mode)
(setq image-transform-resize 'fit-width)
(image-toggle-display-image))