Commit 0143b8a3 authored by Glenn Morris's avatar Glenn Morris

* lisp/gnus/shr.el (libxml-parse-html-region): Declare.

(shr-render-buffer): Explicit error if no libxml2 support.
parent f2f426ca
2013-06-18 Glenn Morris <rgm@gnu.org>
* shr.el (libxml-parse-html-region): Declare.
(shr-render-buffer): Explicit error if no libxml2 support.
2013-06-17 Teodor Zlatanov <tzz@lifelogs.com>
* auth-source.el (auth-source-current-line): New function.
......
......@@ -142,10 +142,14 @@ cid: URL as the argument.")
map))
;; Public functions and commands.
(declare-function libxml-parse-html-region "xml.c"
(start end &optional base-url))
(defun shr-render-buffer (buffer)
"Display the HTML rendering of the current buffer."
(interactive (list (current-buffer)))
(or (fboundp 'libxml-parse-html-region)
(error "This function requires Emacs to be compiled with libxml2"))
(pop-to-buffer "*html*")
(erase-buffer)
(shr-insert-document
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment