From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tyler Smith Newsgroups: gmane.emacs.help Subject: mode-specific paragraph-start Date: 11 Dec 2007 16:31:57 GMT Organization: Sedgeboy Inc. Message-ID: NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1197391340 23867 80.91.229.12 (11 Dec 2007 16:42:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Dec 2007 16:42:20 +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 Dec 11 17:42:30 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 1J28Bh-0000r7-MK for geh-help-gnu-emacs@m.gmane.org; Tue, 11 Dec 2007 17:42:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J28BP-0003sE-SN for geh-help-gnu-emacs@m.gmane.org; Tue, 11 Dec 2007 11:42:11 -0500 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!nx01.iad01.newshosting.com!newshosting.com!post01.iad01!news.aliant.net!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: slrn/0.9.8.1pl1 (Debian) Original-Lines: 26 Original-NNTP-Posting-Host: 142.177.122.173 Original-X-Complaints-To: abuse@aliant.net Original-Xref: shelby.stanford.edu gnu.emacs.help:154581 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:50007 Archived-At: Hi, I want Emacs to recognise ".* wrote:$" as the end of a paragraph, so that I can autofill email messages and not have the body of a message get mixed in with the intro i.e., "Tyler wrote:". I use the following hook to do this (among other things): (defun my-mail-mode-hook () (auto-fill-mode 1) (abbrev-mode 1) (fortune-to-signature) (setq paragraph-separate (concat paragraph-separate "\\|.* wrote:$")) (setq paragraph-start (concat paragraph-start "\\|.* wrote:$")) (set-fill-column 70)) (add-hook 'mail-mode-hook 'my-mail-mode-hook) What I now notice is that my regexp gets added every time I send an email, so that by the end of the day it's several lines long. Currently it's: \|[ ]*$\|.* wrote:$\|.* wrote:$ How do I set this variable so that it doesn't continuously grow? Thanks, Tyler