GNU bug report logs -
#69565
Fit Image Width menu
Previous Next
Reported by: Juri Linkov <juri <at> linkov.net>
Date: Tue, 5 Mar 2024 17:00:02 UTC
Severity: normal
Tags: patch
Fixed in version 30.0.50
Done: Juri Linkov <juri <at> linkov.net>
Bug is archived. No further changes may be made.
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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))
This bug report was last modified 359 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.