From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: word-wrap (visual-line) and indents Date: Tue, 25 May 2010 13:05:08 -0400 Message-ID: References: <9B319A0D-0385-48AD-BF12-884232B365C2@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7BIT X-Trace: dough.gmane.org 1274807125 27610 80.91.229.12 (25 May 2010 17:05:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 25 May 2010 17:05:25 +0000 (UTC) Cc: Emacs-Devel devel To: David Reitter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 25 19:05: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 1OGxZ7-0007WD-Uu for ged-emacs-devel@m.gmane.org; Tue, 25 May 2010 19:05:18 +0200 Original-Received: from localhost ([127.0.0.1]:59390 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OGxZ7-00086K-Fx for ged-emacs-devel@m.gmane.org; Tue, 25 May 2010 13:05:17 -0400 Original-Received: from [140.186.70.92] (port=39638 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OGxZ2-00086D-5d for emacs-devel@gnu.org; Tue, 25 May 2010 13:05:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OGxZ0-0005T0-TB for emacs-devel@gnu.org; Tue, 25 May 2010 13:05:11 -0400 Original-Received: from relais.videotron.ca ([24.201.245.36]:16471) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OGxZ0-0005Sp-N3 for emacs-devel@gnu.org; Tue, 25 May 2010 13:05:10 -0400 Original-Received: from ceviche.home ([96.21.101.38]) by VL-MR-MR001.ip.videotron.ca (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTP id <0L2Z00576JGLCIM0@VL-MR-MR001.ip.videotron.ca> for emacs-devel@gnu.org; Tue, 25 May 2010 13:05:10 -0400 (EDT) Original-Received: by ceviche.home (Postfix, from userid 20848) id CB7CD660D3; Tue, 25 May 2010 13:05:08 -0400 (EDT) In-reply-to: <9B319A0D-0385-48AD-BF12-884232B365C2@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) 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:125258 Archived-At: > Speaking of word-wrapping, I thought now would be a good time to bring > up the missing feature of per-line indentation when word wrapping. > A recent conversation is quoted below, pointing out that word-wrap is > less than ideal when it comes to displaying e-mail (and the like). > A similar example would be org-mode, where you would begin a (buffer) > line with "- " or " - " and where word-wrap would, ideally, > recognize such indentations. The C code already has hooks that make such a thing possible: Just place a `wrap-prefix' property on the long-line which specify what prefix to use when wrapping the line. So all we need is a new minor-mode that uses jit-lock-register and then sets up this property using something like fill-context-prefix. Stefan