From: David G. <go...@py...> - 2005-11-18 18:12:27
|
[fwi...@us...] > Modified: trunk/docutils/tools/editors/emacs/rst.el > =================================================================== ... > -(defvar rst-paragraph-separate > - "\f\\|>*[ \t]*$" > - "Extra parapraph-separate patterns to add for text-mode.") > +;; (add-hook 'text-mode-hook 'rst-set-paragraph-separation) > +(defun rst-set-paragraph-separation () > + (setq paragraph-start (concat paragraph-start "\\|[ \t]*[-+*] "))) > > -(defvar rst-paragraph-start > - "\f\\|>*[ \t]*$\\|>*[ \t]*[-+*] \\|>*[ \t]*[0-9]+\\. " > - "Extra parapraph-start patterns to add for text-mode.") Removing rst-paragraph-separate and rst-paragraph-start broke my Emacs initialization this morning. Felix, if you change an API, please inform the list. The rst-set-paragraph-separation hook didn't work. Open up multiple text files and do (describe-variable 'paragraph-start); you'll see that the extra part gets concatenated once for each text file you opened. I've fixed this in the latest rst.el, to make paragraph-start buffer-local. Martin, what do you think of the current state of paragraph-start hacking? -- David Goodger <http://python.net/~goodger> |