aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2019-09-16 22:30:04 +0200
committerLars Ingebrigtsen2019-09-16 22:30:04 +0200
commite46831507556639ecb9db2f864d4cb3a2c11ec4a (patch)
treef99ae1d796b0196b35c40b0476ebfbf288eca3ca
parentf1e5877a6b2f577f85c893a8f05475e213a212c2 (diff)
downloademacs-e46831507556639ecb9db2f864d4cb3a2c11ec4a.tar.gz
emacs-e46831507556639ecb9db2f864d4cb3a2c11ec4a.zip
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'.
-rw-r--r--doc/misc/emacs-mime.texi17
-rw-r--r--etc/NEWS5
-rw-r--r--lisp/gnus/mm-decode.el3
3 files changed, 14 insertions, 11 deletions
diff --git a/doc/misc/emacs-mime.texi b/doc/misc/emacs-mime.texi
index 131a358ba59..8a1ba969ed9 100644
--- a/doc/misc/emacs-mime.texi
+++ b/doc/misc/emacs-mime.texi
@@ -375,16 +375,13 @@ message as follows:
375 375
376@item mm-inline-large-images 376@item mm-inline-large-images
377@vindex mm-inline-large-images 377@vindex mm-inline-large-images
378When displaying inline images that are larger than the window, Emacs 378This variable is @code{resize} by default, which means that images
379does not enable scrolling, which means that you cannot see the whole 379that are bigger than the Emacs window are resized so that they fit.
380image. To prevent this, the library tries to determine the image size 380If you set this to @code{nil}, large images are not displayed in
381before displaying it inline, and if it doesn't fit the window, the 381Emacs, but can instead be displayed externally (e.g., with
382library will display it externally (e.g., with @samp{ImageMagick} or 382@samp{ImageMagick} or @samp{xv}). Setting this variable to @code{t}
383@samp{xv}). Setting this variable to @code{t} disables this check and 383disables this check and makes the library display all inline images as
384makes the library display all inline images as inline, regardless of 384inline, regardless of their size.
385their size. If you set this variable to @code{resize}, the image will
386be displayed resized to fit in the window, if Emacs has the ability to
387resize images.
388 385
389@item mm-inline-large-images-proportion 386@item mm-inline-large-images-proportion
390@vindex mm-inline-images-max-proportion 387@vindex mm-inline-images-max-proportion
diff --git a/etc/NEWS b/etc/NEWS
index e7d054fd60e..12182694d1d 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1063,6 +1063,11 @@ See the concept index in the Gnus manual for the 'match-list' entry.
1063*** nil is no longer an allowed value for 'mm-text-html-renderer'. 1063*** nil is no longer an allowed value for 'mm-text-html-renderer'.
1064 1064
1065+++ 1065+++
1066The default value of 'mm-inline-large-images' has changed from nil to
1067'resize', which means that large images will be resized instead of
1068displayed with an external program by default.
1069
1070+++
1066*** A new Gnus summary mode command, 'S A' 1071*** A new Gnus summary mode command, 'S A'
1067('gnus-summary-attach-article') can be used to attach the current 1072('gnus-summary-attach-article') can be used to attach the current
1068article(s) to a pre-existing Message buffer, or create a new Message 1073article(s) to a pre-existing Message buffer, or create a new Message
diff --git a/lisp/gnus/mm-decode.el b/lisp/gnus/mm-decode.el
index a763e34785d..5636b8eca47 100644
--- a/lisp/gnus/mm-decode.el
+++ b/lisp/gnus/mm-decode.el
@@ -381,10 +381,11 @@ enables you to choose manually one of two types those mails include."
381 :type 'directory 381 :type 'directory
382 :group 'mime-display) 382 :group 'mime-display)
383 383
384(defcustom mm-inline-large-images nil 384(defcustom mm-inline-large-images 'resize
385 "If nil, images larger than the window aren't displayed in the buffer. 385 "If nil, images larger than the window aren't displayed in the buffer.
386If `resize', try to resize the images so they fit in the buffer. 386If `resize', try to resize the images so they fit in the buffer.
387If t, show the images as they are without resizing." 387If t, show the images as they are without resizing."
388 :version "27.1"
388 :type '(radio 389 :type '(radio
389 (const :tag "Inline large images as they are." t) 390 (const :tag "Inline large images as they are." t)
390 (const :tag "Resize large images." resize) 391 (const :tag "Resize large images." resize)