]> git.eshelyaron.com Git - emacs.git/commit
New command image-transform-fit-to-window
authorStefan Kangas <stefan@marxist.se>
Fri, 5 Nov 2021 02:24:50 +0000 (03:24 +0100)
committerStefan Kangas <stefan@marxist.se>
Sat, 6 Nov 2021 19:45:37 +0000 (20:45 +0100)
commitfd141116f67313c0d9787936cbaa4f12cfaffb9d
tree6f5097a132d59e89cc584a86d225432d940c761d
parentd648e0c6f97b1743f2adadf049412cb5c6d6f541
New command image-transform-fit-to-window

* lisp/image-mode.el (image-auto-resize, image-transform-resize):
Add new value 'fit-window', meaning to scale the image up or down
to fit the window.  (Bug#)
(image-transform-fit-to-window): New command.
(image-transform-fit-to-height, image-transform-fit-to-width):
Make obsolete in favor of above new command.
(image-mode-map): Bind "s w" to 'image-transform-fit-to-window'.
Move binding for obsolete command 'image-transform-fit-to-width'
to "s i".
(image-mode-map): Add menu entry for
'image-transform-fit-to-window'.  Remove menu entries for above
obsolete commands.
* doc/emacs/files.texi (Image Mode): Update documentation.
(image-transform-fit-both): Doc fix.
doc/emacs/files.texi
etc/NEWS
lisp/image-mode.el