From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kai Grossjohann Newsgroups: gmane.emacs.devel Subject: Re: display word wrapping Date: Wed, 26 May 2004 12:53:52 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <86d64rihmn.fsf@rumba.de.uu.net> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1085572540 13388 80.91.224.253 (26 May 2004 11:55:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 26 May 2004 11:55:40 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed May 26 13:55:26 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BSx0I-0008Vr-00 for ; Wed, 26 May 2004 13:55:26 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BSx0H-0003Bz-00 for ; Wed, 26 May 2004 13:55:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BSwvw-00063t-6T for emacs-devel@quimby.gnus.org; Wed, 26 May 2004 07:50:56 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BSwF4-0000lB-6h for emacs-devel@gnu.org; Wed, 26 May 2004 07:06:38 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BSw4Y-0007Oi-9x for emacs-devel@gnu.org; Wed, 26 May 2004 06:56:18 -0400 Original-Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BSw2p-000767-TY for emacs-devel@gnu.org; Wed, 26 May 2004 06:54:00 -0400 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1BSw2p-00040i-00 for ; Wed, 26 May 2004 12:53:59 +0200 Original-Received: from 139.4.37.213 ([139.4.37.213]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 26 May 2004 12:53:58 +0200 Original-Received: from kai by 139.4.37.213 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 26 May 2004 12:53:58 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 43 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 139.4.37.213 User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:fTqjie4XHGqdDAnIFNs/3jKOFKA= X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:23954 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:23954 Miles Bader writes: > Using variable-width fonts more regularly has gotten me musing about > display word-wrapping support (for the next version, not this one :-). Cool. > What I'm wondering is what other support, besides the basic `wrap lines > at word boundaries' is needed. > > * A text-property that defines left/right margins -- with display > wrapping the window boundary is probably not exactly right, > you often want some whitespace in there. Do we want hanging indents, like in the itemized list you are using in your posting? > * You probably want to turn off the fringe wrapping glyphs, but maybe > not the fringes... There should be a way to tell which "visual" newlines are actually in the file and which ones are just produced from line wrapping. > * Good support for display-oriented C-n/C-p (I'm not sure existing > methods e.g using `vertical-motion' work well with variable-width > characters) What about "." in regular expressions? What should paragraph operations do? (I'm guessing that C-a/C-e should move visually.) Regarding the hanging indents thing, perhaps that could lead to a more general mode where we always stuff things to the left/right of the "real" line. I think that currently, there is specialized support for M-q in multiline /* ... */ \n /* ... */ style comments. We could also use the "line prefix/suffix" stuff for editing LaTeX documentation (are they called DOC files?), for using text mode in comments, and whatnot. Does this have anything to do with mmm-mode or multi-mode? Kai