Add a couple of shr doc strings
authorLars Ingebrigtsen <larsi@gnus.org>
Tue, 7 Feb 2012 00:05:56 +0000 (01:05 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 7 Feb 2012 00:05:56 +0000 (01:05 +0100)
* shr.el (shr-insert-document): Add doc string.
(shr-visit-file): Ditto.

lisp/ChangeLog
lisp/shr.el

index 7004ae6..7283576 100644 (file)
@@ -1,3 +1,8 @@
+2012-02-07  Lars Ingebrigtsen  <larsi@gnus.org>
+
+       * shr.el (shr-insert-document): Add doc string.
+       (shr-visit-file): Ditto.
+
 2012-02-06  Lars Ingebrigtsen  <larsi@gnus.org>
 
        * gnus-sum.el (gnus-summary-exit-no-update): Really deaden the summary
index acce766..26755f8 100644 (file)
@@ -128,6 +128,7 @@ cid: URL as the argument.")
 ;; Public functions and commands.
 
 (defun shr-visit-file (file)
+  "Parse FILE as an HTML document, and render it in a new buffer."
   (interactive "fHTML file name: ")
   (pop-to-buffer "*html*")
   (erase-buffer)
@@ -139,6 +140,9 @@ cid: URL as the argument.")
 
 ;;;###autoload
 (defun shr-insert-document (dom)
+  "Render the parsed document DOM into the current buffer.
+DOM should be a parse tree as generated by
+`libxml-parse-html-region' or similar."
   (setq shr-content-cache nil)
   (let ((shr-state nil)
        (shr-start nil)