]> git.eshelyaron.com Git - emacs.git/commit
New user option image-auto-resize-max-scale-percent
authorStefan Kangas <stefan@marxist.se>
Fri, 5 Nov 2021 03:22:12 +0000 (04:22 +0100)
committerStefan Kangas <stefan@marxist.se>
Sat, 6 Nov 2021 19:45:37 +0000 (20:45 +0100)
commit569d7f6a73c939e4f0b9c42cfea95cd3ed5ca8d0
treed6e09c10cbb5c88b0dcdba6f1b24148a2e0208bb
parentfd141116f67313c0d9787936cbaa4f12cfaffb9d
New user option image-auto-resize-max-scale-percent

* lisp/image-mode.el (image-auto-resize-max-scale-percent): New
user option to limit how much 'fit-window' will scale up an image.
(image--scale-within-limits-p): New function.
(image-toggle-display-image): Respect above new user option.
etc/NEWS
lisp/image-mode.el