From: Stefan Monnier Date: Fri, 29 Nov 2013 21:35:00 +0000 (-0500) Subject: * lisp/net/newst-reader.el (newsticker-html-renderer): Default to SHR if X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~635 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7784b779b8f06e8e88582464c65a0c5e15c0eeb5;p=emacs.git * lisp/net/newst-reader.el (newsticker-html-renderer): Default to SHR if available. Suggested by Clément B. . --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b40773904bf..26c0f502334 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2013-11-29 Stefan Monnier + * net/newst-reader.el (newsticker-html-renderer): Default to SHR if + available. Suggested by Clément B. . + * uniquify.el (uniquify-buffer-name-style): Change default. * loadup.el: Preload "uniquify". 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))