summaryrefslogtreecommitdiff
path: root/lisp/net/newst-reader.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2013-11-29 16:35:00 -0500
committerStefan Monnier <monnier@iro.umontreal.ca>2013-11-29 16:35:00 -0500
commit7784b779b8f06e8e88582464c65a0c5e15c0eeb5 (patch)
tree8251d78361234197da071e479ca84d2b4537a2ed /lisp/net/newst-reader.el
parent04445382cf67bdd47af5ff2f2c6fa9c910d46b17 (diff)
downloademacs-7784b779b8f06e8e88582464c65a0c5e15c0eeb5.tar.gz
* lisp/net/newst-reader.el (newsticker-html-renderer): Default to SHR if
available. Suggested by Clément B. <barthele1u@etu.univ-lorraine.fr>.
Diffstat (limited to 'lisp/net/newst-reader.el')
-rw-r--r--lisp/net/newst-reader.el9
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/net/newst-reader.el b/lisp/net/newst-reader.el
index 21bb890f742..4d2e0118ac0 100644
--- a/lisp/net/newst-reader.el
+++ b/lisp/net/newst-reader.el
@@ -101,15 +101,18 @@ window is used when filling. See also `newsticker-justification'."
:group 'newsticker-reader)
(defcustom newsticker-html-renderer
- nil
+ (if (fboundp 'libxml-parse-html-region)
+ #'shr-render-region)
"Function for rendering HTML contents.
If non-nil, newsticker.el will call this function whenever it
-finds HTML-like tags in item descriptions. Possible functions
-are `w3m-region', `w3-region', and `newsticker-htmlr-render'.
+finds HTML-like tags in item descriptions.
+Possible functions include `shr-render-region', `w3m-region', `w3-region', and
+`newsticker-htmlr-render'.
Newsticker automatically loads the respective package w3m, w3, or
htmlr if this option is set."
:type '(choice :tag "Function"
(const :tag "None" nil)
+ (const :tag "SHR" shr-render-region)
(const :tag "w3" w3-region)
(const :tag "w3m" w3m-region)
(const :tag "htmlr" newsticker-htmlr-render))