From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Petter Gustad Newsgroups: gmane.emacs.help Subject: Re: Configuring fill-paragraph not to mash the subversion delimiter? Date: 20 Mar 2007 20:48:40 +0100 Organization: 502 You are not allowed to talk Message-ID: <7dejnjk86f.fsf@www.gratismegler.no> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1174426741 20173 80.91.229.12 (20 Mar 2007 21:39:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 20 Mar 2007 21:39:01 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 20 22:38:51 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HTm2c-00069o-Cd for geh-help-gnu-emacs@m.gmane.org; Tue, 20 Mar 2007 22:38:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HTm4D-0000qm-K6 for geh-help-gnu-emacs@m.gmane.org; Tue, 20 Mar 2007 16:40:29 -0500 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.ision.net!newsfeed2.easynews.net!ision!newsfeed01.sul.t-online.de!newsfeed00.sul.t-online.de!t-online.de!newsfeed1.ip.tiscali.net!tiscali!newsfeed2.ip.tiscali.net!news.astraweb.com!newsrouter-eu.astraweb.com!hwmnpeer01.ams!news.highwinds-media.com!feeder1.cambrium.nl!feed.tweaknews.nl!138.199.65.86.MISMATCH!sn-xt-ams-06!sn-xt-ams-11!sn-xt-ams-05!sn-post-ams-02!sn-post-sjc-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help X-Home-Page: http://gustad.com Original-Sender: newsmailcomp6@gustad.com User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 Original-X-Complaints-To: abuse@supernews.com Original-Lines: 41 Original-Xref: shelby.stanford.edu gnu.emacs.help:146464 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:42068 Archived-At: Adam Funk writes: > 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 > > --This line, and those below, will be ignored-- > > as not being part of the paragraph, even if there is no blank line > before it? You could use a function like this: (defun subversion-fill-paragraph () "like fill-paragraph but only for region from start of buffer to the subversion mark" (interactive) (let ((svn-string "--This line, and those below, will be ignored--") (prevpoint (point)) (svn-point)) (goto-char (point-min)) (setf svn-point (search-forward svn-string)) (when svn-point (fill-region (point-min) (- svn-point (length svn-string) 1))) (goto-char prevpoint))) But I would suggest that you use subversion from within emacs (much easier) presumably svn-status (somewhat like dired) where you can check-in (by the c command) and type the string in a buffer followed by C-c C-c, or even use the vc- commands (c-x v v) to check in single files. Petter -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail?