(shr-render-buffer): Explicit error if no libxml2 support.
+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.
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