X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=emacs%2Frstdoc.el;h=63fa2794c08c176ef116611e5d4d8fca0cda9a86;hb=96baa2231882e9a9025797b1f9945ba6b2751dd4;hp=92a337c841fad6bbf90ca8d0772c9a00cf65f099;hpb=e63f37a4a90c5d2a399a99a0566b6e1dfea263aa;p=notmuch diff --git a/emacs/rstdoc.el b/emacs/rstdoc.el index 92a337c8..63fa2794 100644 --- a/emacs/rstdoc.el +++ b/emacs/rstdoc.el @@ -24,7 +24,6 @@ ;; ;;; Commentary: -;; ;; Rstdoc provides a facility to extract all of the docstrings defined in ;; an elisp source file. Usage: @@ -33,8 +32,6 @@ ;;; Code: -(provide 'rstdoc) - (defun rstdoc-batch-extract () "Extract docstrings to and from the files on the command line." (apply #'rstdoc-extract command-line-args-left)) @@ -68,10 +65,10 @@ (insert "\n")) (defvar rst--escape-alist - '( ("\\\\='" . "\\\\'") - ("\\([^\\]\\)'" . "\\1`") - ("^[[:space:]\t]*$" . "|br|") - ("^[[:space:]\t]" . "|indent| ")) + '(("\\\\='" . "\\\\'") + ("\\([^\\]\\)'" . "\\1`") + ("^[[:space:]\t]*$" . "|br|") + ("^[[:space:]\t]" . "|indent| ")) "List of (regex . replacement) pairs.") (defun rstdoc--rst-quote-string (str) @@ -83,4 +80,6 @@ (replace-match (cdr pair)))) (buffer-substring (point-min) (point-max)))) +(provide 'rstdoc) + ;;; rstdoc.el ends here