Martin Blais wrote:
> Any .el file under /usr/share/emacs/<your-version>/lisp
> I wrote a preliminary converter in the sandbox under blais/elisp-reader.
You get tons of Docutils system messages with font-lock.el (Emacs 21.4)
because of backticks: "Inline interpreted text or phrase reference
start-string without end-string."
And then there's a crash with generic.el:
$ ./elisp2rst /usr/share/emacs/21.4/lisp/generic.el > x.txt
Traceback (most recent call last):
File "./elisp2rst", line 173, in ?
File "./elisp2rst", line 165, in main
File "./elisp2rst", line 107, in elisp2rst
printpar(par, outfile, indent=' ')
File "./elisp2rst", line 29, in printpar
for line in map(str.rstrip, paragraph):
TypeError: argument 2 to map() must support iteration
To prettify the output a bit, I'd suggest you add a blank line after
--- elisp2rst (revision 4815)
+++ elisp2rst (local)
@@ -18,6 +18,7 @@
print >> outfile, title
print >> outfile, char * len(title)
+ print >> outfile
def printpar(paragraph, outfile, indent=None):
For private mail please ensure that the header contains 'Felix Wiemann'.
"the number of contributors [...] is strongly and inversely correlated with the
number of hoops each project makes a contributing user go through." -- ESR