Commit graph

103 commits

Author SHA1 Message Date
Stefan Monnier
0667a13268 (auto-mode-alist): Use rst-mode for *.rst and *.rest files. 2008-06-20 17:57:55 +00:00
Stefan Monnier
b47475199b Fix up docstring conventions.
Move vars to before their first use.
(rst-mode): Don't mess with font-lock-support-mode.
(rst-suggest-new-decoration, rst-adjust-decoration):
Avoid CL's copy-list.
(rst-delete-entire-line): Use line-beginning-position.
(rst-position): New fun.
(rst-straighten-decorations): Use it instead of CL's position.
(rst-straighten-bullets-region): Avoid CL's mapcar*.
(rst-toc-mode): Use define-derived-mode.
(rst-iterate-leftmost-paragraphs, rst-iterate-leftmost-paragraphs-2):
Remove unused var `in-par'.  Use `point' rather than `point-marker'.
(rst-line-block-region): Reduce redundancy.  Use the `pfxarg' arg.
(rst-replace-lines): Simplify.
2008-06-20 17:53:42 +00:00
Stefan Monnier
94e9c286ca New file. 2008-06-20 16:00:33 +00:00