From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: Visual line mode in email citation Date: Mon, 31 May 2010 18:58:41 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1275325161 28072 80.91.229.12 (31 May 2010 16:59:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 31 May 2010 16:59:21 +0000 (UTC) Cc: Uday S Reddy , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 31 18:59:19 2010 connect(): No such file or directory Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OJ8KZ-0002aG-Kr for ged-emacs-devel@m.gmane.org; Mon, 31 May 2010 18:59:15 +0200 Original-Received: from localhost ([127.0.0.1]:43401 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OJ8KZ-00080d-42 for ged-emacs-devel@m.gmane.org; Mon, 31 May 2010 12:59:15 -0400 Original-Received: from [140.186.70.92] (port=46144 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OJ8KN-0007x1-Rl for emacs-devel@gnu.org; Mon, 31 May 2010 12:59:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OJ8KM-0006nn-Jc for emacs-devel@gnu.org; Mon, 31 May 2010 12:59:03 -0400 Original-Received: from mail-yx0-f169.google.com ([209.85.213.169]:36576) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OJ8KM-0006nh-Gx for emacs-devel@gnu.org; Mon, 31 May 2010 12:59:02 -0400 Original-Received: by yxs7 with SMTP id 7so481353yxs.0 for ; Mon, 31 May 2010 09:59:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=QmwA+xlBnQlE/WzOkcS7++0y+WwZtET9lnk2f1p3Myc=; b=JcdI/3R8h/Y+6+LVCe5cYd31LXTDBnkgEhP2GV01z2wRfuI4IWD1+1JOmecjmS+9Jv 2YMXUoEC6xJJlibKwuyyLkfbBYWpzRelQXeoSAKuH2pGOfhhBv2EwIJi432ouOGAI1/N QRSpuR3cRjLoZ07tFslr+Xb5NRZ8UTZezyTzs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=TLUi4HktviTW9HwtEpHPeOcb9s8zBpYnAQbM4gBe8n+v/BI8uU0QwD/TFtDAin+LGK vjsIoVeuiznC2snC2LOI6MDsa1JEKjzm060UjYlMbXH/BylvMfGVsTkiedaenwUGLTlh YCTgwslZND7MkjFPTmdb+D6N479autI0wDhWM= Original-Received: by 10.101.178.8 with SMTP id f8mr4992960anp.213.1275325141687; Mon, 31 May 2010 09:59:01 -0700 (PDT) Original-Received: by 10.100.44.20 with HTTP; Mon, 31 May 2010 09:58:41 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:125400 Archived-At: On Mon, May 31, 2010 at 6:26 PM, Stefan Monnier wrote: > can use to make this wrapping do the right thing. > > IOW, some Elisp code somewhere needs to add a `wrap-prefix' to each line > specifying the citation/indentation/fill prefix to use. =C2=A0This should > most likely be done by a function passed to jit-lock-register and which > then uses something like fill-context-prefix. Why pass it to jit-lock-register? Isn't it better to add it to font lock keywords. Then the frame work for handling changes in jit-lock is used, otherwise I can't see how it can be used, but I might be missing something. This approach is what I am using in visual-indent-mode, which I just extracted to live on its own outside of wrap-to-fill-column-mode. This is available in nXhtm repository in wrap-to-fill.el. (The code needs some restructuring to extract something similar to fill-context-prefix, which I do not think can be used as it is.) > I'd welcome a patch that provides such a function (e.g. in fill.el) and > maybe visual-line-mode could/should use it, but at least Gnus's (and > VM's) message display code should use it.