From 7784b779b8f06e8e88582464c65a0c5e15c0eeb5 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Fri, 29 Nov 2013 16:35:00 -0500 Subject: =?UTF-8?q?*=20lisp/net/newst-reader.el=20(newsticker-html-rendere?= =?UTF-8?q?r):=20Default=20to=20SHR=20if=20available.=20=20Suggested=20by?= =?UTF-8?q?=20Cl=C3=A9ment=20B.=20.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lisp/net/newst-reader.el | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'lisp/net/newst-reader.el') 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)) -- cgit v1.2.1