aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKatsumi Yamaoka2016-02-09 05:30:26 +0000
committerKatsumi Yamaoka2016-02-09 05:30:26 +0000
commit7c9206f82000e9fd6ea9d1a53fc054eff88e701c (patch)
tree67682f99d4b7a886d54483309084cdb28a121d65
parentb1079c0f86c218f016a6c2e84ea402f4e175fc53 (diff)
downloademacs-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.texi4
-rw-r--r--etc/NEWS14
-rw-r--r--lisp/gnus/mm-decode.el7
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
420rendered when @code{mm-text-html-renderer} (@pxref{Display 420rendered when @code{mm-text-html-renderer} (@pxref{Display
421Customization}) is @code{shr} or @code{w3m}. In Gnus, this is 421Customization}) is @code{shr} or @code{w3m}. In Gnus, this is
422overridden by the value of @code{gnus-inhibit-images} (@pxref{Misc 422overridden by the value of @code{gnus-inhibit-images} (@pxref{Misc
423Article, ,Misc Article, gnus, Gnus manual}). 423Article, ,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
436Customization}) is @code{shr}. In Gnus, this is overridden by the value 436Customization}) is @code{shr}. In Gnus, this is overridden by the value
437of @code{gnus-blocked-images} or the return value of the function that 437of @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
439manual}). 439manual}). 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
diff --git a/etc/NEWS b/etc/NEWS
index c7cd0b15c70..02f47560a75 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -353,6 +353,20 @@ to version 206, you can do this with C-u C-u M-x desktop-save.
353It raises an error if a bookmark of that name already exists, 353It raises an error if a bookmark of that name already exists,
354unlike `bookmark-set' which silently updates an existing bookmark. 354unlike `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'
360now control how mm-* functions fetch and display images in an HTML
361message. Gnus still uses `gnus-inhibit-images' and `gnus-blocked-images'
362for that purpose, i.e., binds mm-html- variables with those gnus-
363variables, but other packages do not have to bind gnus- variables now.
364
365---
366*** `mm-inline-text-html-with-images' has been removed.
367Use `mm-html-inhibit-images' instead. Note that the value is opposite
368in 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.
159Note that cid images that are embedded in a message won't be blocked." 156Note that cid images that are embedded in a message won't be blocked."
160 :version "25.1" 157 :version "25.1"