mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-23 10:34:07 +00:00
Default to rescaling images in mm buffers
* doc/misc/emacs-mime.texi (Display Customization): Document it. * lisp/gnus/mm-decode.el (mm-inline-large-images): Change default to `resize'.
This commit is contained in:
parent
f1e5877a6b
commit
e468315075
@ -375,16 +375,13 @@ message as follows:
|
||||
|
||||
@item mm-inline-large-images
|
||||
@vindex mm-inline-large-images
|
||||
When displaying inline images that are larger than the window, Emacs
|
||||
does not enable scrolling, which means that you cannot see the whole
|
||||
image. To prevent this, the library tries to determine the image size
|
||||
before displaying it inline, and if it doesn't fit the window, the
|
||||
library will display it externally (e.g., with @samp{ImageMagick} or
|
||||
@samp{xv}). Setting this variable to @code{t} disables this check and
|
||||
makes the library display all inline images as inline, regardless of
|
||||
their size. If you set this variable to @code{resize}, the image will
|
||||
be displayed resized to fit in the window, if Emacs has the ability to
|
||||
resize images.
|
||||
This variable is @code{resize} by default, which means that images
|
||||
that are bigger than the Emacs window are resized so that they fit.
|
||||
If you set this to @code{nil}, large images are not displayed in
|
||||
Emacs, but can instead be displayed externally (e.g., with
|
||||
@samp{ImageMagick} or @samp{xv}). Setting this variable to @code{t}
|
||||
disables this check and makes the library display all inline images as
|
||||
inline, regardless of their size.
|
||||
|
||||
@item mm-inline-large-images-proportion
|
||||
@vindex mm-inline-images-max-proportion
|
||||
|
5
etc/NEWS
5
etc/NEWS
@ -1062,6 +1062,11 @@ See the concept index in the Gnus manual for the 'match-list' entry.
|
||||
+++
|
||||
*** nil is no longer an allowed value for 'mm-text-html-renderer'.
|
||||
|
||||
+++
|
||||
The default value of 'mm-inline-large-images' has changed from nil to
|
||||
'resize', which means that large images will be resized instead of
|
||||
displayed with an external program by default.
|
||||
|
||||
+++
|
||||
*** A new Gnus summary mode command, 'S A'
|
||||
('gnus-summary-attach-article') can be used to attach the current
|
||||
|
@ -381,10 +381,11 @@ enables you to choose manually one of two types those mails include."
|
||||
:type 'directory
|
||||
:group 'mime-display)
|
||||
|
||||
(defcustom mm-inline-large-images nil
|
||||
(defcustom mm-inline-large-images 'resize
|
||||
"If nil, images larger than the window aren't displayed in the buffer.
|
||||
If `resize', try to resize the images so they fit in the buffer.
|
||||
If t, show the images as they are without resizing."
|
||||
:version "27.1"
|
||||
:type '(radio
|
||||
(const :tag "Inline large images as they are." t)
|
||||
(const :tag "Resize large images." resize)
|
||||
|
Loading…
Reference in New Issue
Block a user