diff options
| author | Lars Ingebrigtsen | 2019-09-16 22:30:04 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-09-16 22:30:04 +0200 |
| commit | e46831507556639ecb9db2f864d4cb3a2c11ec4a (patch) | |
| tree | f99ae1d796b0196b35c40b0476ebfbf288eca3ca | |
| parent | f1e5877a6b2f577f85c893a8f05475e213a212c2 (diff) | |
| download | emacs-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.texi | 17 | ||||
| -rw-r--r-- | etc/NEWS | 5 | ||||
| -rw-r--r-- | lisp/gnus/mm-decode.el | 3 |
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 |
| 378 | When displaying inline images that are larger than the window, Emacs | 378 | This variable is @code{resize} by default, which means that images |
| 379 | does not enable scrolling, which means that you cannot see the whole | 379 | that are bigger than the Emacs window are resized so that they fit. |
| 380 | image. To prevent this, the library tries to determine the image size | 380 | If you set this to @code{nil}, large images are not displayed in |
| 381 | before displaying it inline, and if it doesn't fit the window, the | 381 | Emacs, but can instead be displayed externally (e.g., with |
| 382 | library 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 | 383 | disables this check and makes the library display all inline images as |
| 384 | makes the library display all inline images as inline, regardless of | 384 | inline, regardless of their size. |
| 385 | their size. If you set this variable to @code{resize}, the image will | ||
| 386 | be displayed resized to fit in the window, if Emacs has the ability to | ||
| 387 | resize 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 |
| @@ -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 | +++ |
| 1066 | The default value of 'mm-inline-large-images' has changed from nil to | ||
| 1067 | 'resize', which means that large images will be resized instead of | ||
| 1068 | displayed 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 |
| 1068 | article(s) to a pre-existing Message buffer, or create a new Message | 1073 | article(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. |
| 386 | If `resize', try to resize the images so they fit in the buffer. | 386 | If `resize', try to resize the images so they fit in the buffer. |
| 387 | If t, show the images as they are without resizing." | 387 | If 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) |