]> git.eshelyaron.com Git - emacs.git/commitdiff
Default to rescaling images in mm buffers
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 16 Sep 2019 20:30:04 +0000 (22:30 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 16 Sep 2019 20:30:04 +0000 (22:30 +0200)
* doc/misc/emacs-mime.texi (Display Customization): Document it.

* lisp/gnus/mm-decode.el (mm-inline-large-images): Change default
to `resize'.

doc/misc/emacs-mime.texi
etc/NEWS
lisp/gnus/mm-decode.el

index 131a358ba59bc61fffd3b046e22da1b77893edf2..8a1ba969ed9248f58bf814f9a72edb71a1152fcc 100644 (file)
@@ -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
index e7d054fd60e494c47b77ae23b9b967666b950293..12182694d1d707402db9f01429c3ab6e2ef00a05 100644 (file)
--- a/etc/NEWS
+++ b/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
index a763e34785d26762013ac0d821dadc0b58fd7d9b..5636b8eca477138166eabf90c946cf186bf9992e 100644 (file)
@@ -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)