diff options
author | Jim Porter <jporterbugs@gmail.com> | 2024-06-23 14:48:32 -0700 |
---|---|---|
committer | Jim Porter <jporterbugs@gmail.com> | 2024-07-04 12:14:37 -0700 |
commit | 208207c1c07fb4669c6b7d64c27236074f996ae4 (patch) | |
tree | 8727370853cbdcc46899e1003863e139636075dd /lisp/emacs-lisp/lisp.el | |
parent | 6d082f3c79269f00308d6e8b7d31d6a119376fe2 (diff) | |
download | emacs-208207c1c07fb4669c6b7d64c27236074f996ae4.tar.gz emacs-208207c1c07fb4669c6b7d64c27236074f996ae4.tar.bz2 emacs-208207c1c07fb4669c6b7d64c27236074f996ae4.zip |
Fix the different image zoom levels in SHR to work as expected
* lisp/net/shr.el (shr-image-zoom-levels): New option.
(shr-image-zoom-level-alist): New variable.
(shr-zoom-image): Take POSITION and ZOOM-LEVEL arguments. Consult
'shr-image-zoom-levels'.
(shr-put-image): Use 'shr-image-zoom-level-alist'.
(shr-rescale-image): Only reset width *or* height when either is too
large.
(shr--image-zoom-original-size, shr--image-zoom-image-size)
(shr--image-zoom-fill-height): New functions.
* etc/NEWS: Announce this change.
Diffstat (limited to 'lisp/emacs-lisp/lisp.el')
0 files changed, 0 insertions, 0 deletions