[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#69565: Fit Image Width menu
From: |
Juri Linkov |
Subject: |
bug#69565: Fit Image Width menu |
Date: |
Tue, 05 Mar 2024 18:56:25 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) |
Tags: patch
PDF/image viewers provide a menu item "Fit Image Width".
It's very useful to read long text on images. Therefore
here is the same for the image-mode menu:
diff --git a/lisp/image-mode.el b/lisp/image-mode.el
index 355685e70fd..a2f1a6c2d74 100644
--- a/lisp/image-mode.el
+++ b/lisp/image-mode.el
@@ -559,6 +559,8 @@ image-mode-menu
:help "Resize image to match the window height and width"]
["Fit Image to Window (Scale down only)" image-transform-fit-both
:help "Scale image down to match the window height and width"]
+ ["Fit Image Width" image-transform-fit-to-width
+ :help "Resize image to the width of the current window."]
["Zoom In" image-increase-size
:help "Enlarge the image"]
["Zoom Out" image-decrease-size
@@ -1574,7 +1576,6 @@ image-transform-fit-to-height
(defun image-transform-fit-to-width ()
"Fit the current image to the width of the current window."
- (declare (obsolete image-transform-fit-to-window "29.1"))
(interactive nil image-mode)
(setq image-transform-resize 'fit-width)
(image-toggle-display-image))
- bug#69565: Fit Image Width menu,
Juri Linkov <=