]> git.eshelyaron.com Git - emacs.git/commitdiff
Improve obsoletion of image-transform-fit-to-{height,width}
authorStefan Kangas <stefankangas@gmail.com>
Thu, 18 Aug 2022 21:47:47 +0000 (23:47 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Thu, 18 Aug 2022 21:47:47 +0000 (23:47 +0200)
* 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'.

lisp/image-mode.el

index 9646d8e4c3d3a62516ca512b37a35008d4e9076c..1f4ade6e02e1a7243a42b0c0a390111dada71d51 100644 (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))