diff options
| author | Katsumi Yamaoka | 2016-02-09 05:30:26 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2016-02-09 05:30:26 +0000 |
| commit | 7c9206f82000e9fd6ea9d1a53fc054eff88e701c (patch) | |
| tree | 67682f99d4b7a886d54483309084cdb28a121d65 | |
| parent | b1079c0f86c218f016a6c2e84ea402f4e175fc53 (diff) | |
| download | emacs-7c9206f82000e9fd6ea9d1a53fc054eff88e701c.tar.gz emacs-7c9206f82000e9fd6ea9d1a53fc054eff88e701c.zip | |
Make mm-html-inhibit-images and mm-html-blocked-images default to nil
* lisp/gnus/mm-decode.el (mm-html-inhibit-images)
(mm-html-blocked-images): Default to nil.
* doc/misc/emacs-mime.texi (Display Customization): Mention that
mm-html-inhibit-images and mm-html-blocked-images default to nil.
* etc/NEWS (Gnus): Document mm-html-inhibit-images and
mm-html-blocked-images.
| -rw-r--r-- | doc/misc/emacs-mime.texi | 4 | ||||
| -rw-r--r-- | etc/NEWS | 14 | ||||
| -rw-r--r-- | lisp/gnus/mm-decode.el | 7 |
3 files changed, 18 insertions, 7 deletions
diff --git a/doc/misc/emacs-mime.texi b/doc/misc/emacs-mime.texi index ae1e09105ba..b7c58d7ebeb 100644 --- a/doc/misc/emacs-mime.texi +++ b/doc/misc/emacs-mime.texi | |||
| @@ -420,7 +420,7 @@ article body. It is effective to images in @acronym{HTML} articles | |||
| 420 | rendered when @code{mm-text-html-renderer} (@pxref{Display | 420 | rendered when @code{mm-text-html-renderer} (@pxref{Display |
| 421 | Customization}) is @code{shr} or @code{w3m}. In Gnus, this is | 421 | Customization}) is @code{shr} or @code{w3m}. In Gnus, this is |
| 422 | overridden by the value of @code{gnus-inhibit-images} (@pxref{Misc | 422 | overridden by the value of @code{gnus-inhibit-images} (@pxref{Misc |
| 423 | Article, ,Misc Article, gnus, Gnus manual}). | 423 | Article, ,Misc Article, gnus, Gnus manual}). The default is @code{nil}. |
| 424 | 424 | ||
| 425 | @item mm-html-blocked-images | 425 | @item mm-html-blocked-images |
| 426 | @vindex mm-html-blocked-images | 426 | @vindex mm-html-blocked-images |
| @@ -436,7 +436,7 @@ It is effective when @code{mm-text-html-renderer} (@pxref{Display | |||
| 436 | Customization}) is @code{shr}. In Gnus, this is overridden by the value | 436 | Customization}) is @code{shr}. In Gnus, this is overridden by the value |
| 437 | of @code{gnus-blocked-images} or the return value of the function that | 437 | of @code{gnus-blocked-images} or the return value of the function that |
| 438 | @code{gnus-blocked-images} is set to (@pxref{HTML, ,HTML, gnus, Gnus | 438 | @code{gnus-blocked-images} is set to (@pxref{HTML, ,HTML, gnus, Gnus |
| 439 | manual}). | 439 | manual}). The default is @code{nil}. |
| 440 | 440 | ||
| 441 | @item mm-w3m-safe-url-regexp | 441 | @item mm-w3m-safe-url-regexp |
| 442 | @vindex mm-w3m-safe-url-regexp | 442 | @vindex mm-w3m-safe-url-regexp |
| @@ -353,6 +353,20 @@ to version 206, you can do this with C-u C-u M-x desktop-save. | |||
| 353 | It raises an error if a bookmark of that name already exists, | 353 | It raises an error if a bookmark of that name already exists, |
| 354 | unlike `bookmark-set' which silently updates an existing bookmark. | 354 | unlike `bookmark-set' which silently updates an existing bookmark. |
| 355 | 355 | ||
| 356 | ** Gnus | ||
| 357 | |||
| 358 | +++ | ||
| 359 | *** New user options `mm-html-inhibit-images' and `mm-html-blocked-images' | ||
| 360 | now control how mm-* functions fetch and display images in an HTML | ||
| 361 | message. Gnus still uses `gnus-inhibit-images' and `gnus-blocked-images' | ||
| 362 | for that purpose, i.e., binds mm-html- variables with those gnus- | ||
| 363 | variables, but other packages do not have to bind gnus- variables now. | ||
| 364 | |||
| 365 | --- | ||
| 366 | *** `mm-inline-text-html-with-images' has been removed. | ||
| 367 | Use `mm-html-inhibit-images' instead. Note that the value is opposite | ||
| 368 | in meaning. | ||
| 369 | |||
| 356 | ** IMAP | 370 | ** IMAP |
| 357 | 371 | ||
| 358 | --- | 372 | --- |
diff --git a/lisp/gnus/mm-decode.el b/lisp/gnus/mm-decode.el index c6cb6520255..c45258e987c 100644 --- a/lisp/gnus/mm-decode.el +++ b/lisp/gnus/mm-decode.el | |||
| @@ -145,16 +145,13 @@ nil : use external viewer (default web browser)." | |||
| 145 | (function)) | 145 | (function)) |
| 146 | :group 'mime-display) | 146 | :group 'mime-display) |
| 147 | 147 | ||
| 148 | (defcustom mm-html-inhibit-images | 148 | (defcustom mm-html-inhibit-images nil |
| 149 | (if (boundp 'mm-inline-text-html-with-images) | ||
| 150 | (not (symbol-value 'mm-inline-text-html-with-images)) | ||
| 151 | t) | ||
| 152 | "Non-nil means inhibit displaying of images inline in the article body." | 149 | "Non-nil means inhibit displaying of images inline in the article body." |
| 153 | :version "25.1" | 150 | :version "25.1" |
| 154 | :type 'boolean | 151 | :type 'boolean |
| 155 | :group 'mime-display) | 152 | :group 'mime-display) |
| 156 | 153 | ||
| 157 | (defcustom mm-html-blocked-images "" | 154 | (defcustom mm-html-blocked-images nil |
| 158 | "Regexp matching image URLs to be blocked, or nil meaning not to block. | 155 | "Regexp matching image URLs to be blocked, or nil meaning not to block. |
| 159 | Note that cid images that are embedded in a message won't be blocked." | 156 | Note that cid images that are embedded in a message won't be blocked." |
| 160 | :version "25.1" | 157 | :version "25.1" |