aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kangas2022-08-18 23:47:47 +0200
committerStefan Kangas2022-08-18 23:47:47 +0200
commitf1f2bbbc0880f1033feff69fa786d551875ec5e6 (patch)
treedc5d47f1d3bface7b2ebbf05b941b5071b13ab8c
parent0bd96806ef1a0f0d2d3f48cdb1204b7e393ab036 (diff)
downloademacs-f1f2bbbc0880f1033feff69fa786d551875ec5e6.tar.gz
emacs-f1f2bbbc0880f1033feff69fa786d551875ec5e6.zip
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'.
-rw-r--r--lisp/image-mode.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/image-mode.el b/lisp/image-mode.el
index 9646d8e4c3d..1f4ade6e02e 100644
--- a/lisp/image-mode.el
+++ b/lisp/image-mode.el
@@ -1554,14 +1554,14 @@ The percentage is in relation to the original size of the image."
1554 1554
1555(defun image-transform-fit-to-height () 1555(defun image-transform-fit-to-height ()
1556 "Fit the current image to the height of the current window." 1556 "Fit the current image to the height of the current window."
1557 (declare (obsolete nil "29.1")) 1557 (declare (obsolete image-transform-fit-to-window "29.1"))
1558 (interactive nil image-mode) 1558 (interactive nil image-mode)
1559 (setq image-transform-resize 'fit-height) 1559 (setq image-transform-resize 'fit-height)
1560 (image-toggle-display-image)) 1560 (image-toggle-display-image))
1561 1561
1562(defun image-transform-fit-to-width () 1562(defun image-transform-fit-to-width ()
1563 "Fit the current image to the width of the current window." 1563 "Fit the current image to the width of the current window."
1564 (declare (obsolete nil "29.1")) 1564 (declare (obsolete image-transform-fit-to-window "29.1"))
1565 (interactive nil image-mode) 1565 (interactive nil image-mode)
1566 (setq image-transform-resize 'fit-width) 1566 (setq image-transform-resize 'fit-width)
1567 (image-toggle-display-image)) 1567 (image-toggle-display-image))