[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Configuring fill-paragraph not to mash the subversion delimiter?
From: |
Stefan Monnier |
Subject: |
Re: Configuring fill-paragraph not to mash the subversion delimiter? |
Date: |
Sun, 18 Mar 2007 23:52:06 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.95 (gnu/linux) |
>> Is there any easy way to set something in my ~/.emacs file so that when
>> I'm editing subversion commit messages and I use M-q to tidy up a few
>> lines of text, the fill-paragraph command will treat the standard line
> What package are you using, psvn?
> (add-hook 'svn-log-edit-mode-hook
> (lambda ()
> (setq paragraph-start (concat "\\(" paragraph-start "\\|--This
> line, and those below, will be ignored--\\)"))))
Actually, it's paragraph-separate that should be changed (otherwise some
words from subsequent lines could be yanked to the end of the "-- ... --"
line). Also the \\(..\\) is unnecessary because the \| operator has the
lowest precedence already, tho this doesn't make much difference.
(add-hook 'svn-log-edit-mode-hook
(lambda ()
(set (make-local-variable 'paragraph-separate)
(concat paragraph-separate
"\\|--This line, and those below, will be ignored--"))))
-- Stefan
Re: Configuring fill-paragraph not to mash the subversion delimiter?, Petter Gustad, 2007/03/20