From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.devel Subject: Re: Display-based word wrapping Date: Sun, 22 Jun 2008 22:54:27 +0200 Message-ID: <485EBC03.1060707@gmail.com> References: <87y74x9rfl.fsf@stupidchicken.com> <485EB031.7050502@gmail.com> <87prq9i503.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1214168093 17495 80.91.229.12 (22 Jun 2008 20:54:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 22 Jun 2008 20:54:53 +0000 (UTC) Cc: emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 22 22:55:35 2008 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.50) id 1KAWb0-0002U5-SB for ged-emacs-devel@m.gmane.org; Sun, 22 Jun 2008 22:55:35 +0200 Original-Received: from localhost ([127.0.0.1]:46837 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KAWaB-000562-St for ged-emacs-devel@m.gmane.org; Sun, 22 Jun 2008 16:54:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KAWa5-00054g-Kt for emacs-devel@gnu.org; Sun, 22 Jun 2008 16:54:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KAWa3-00053D-97 for emacs-devel@gnu.org; Sun, 22 Jun 2008 16:54:36 -0400 Original-Received: from [199.232.76.173] (port=56380 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KAWa3-000538-5q for emacs-devel@gnu.org; Sun, 22 Jun 2008 16:54:35 -0400 Original-Received: from ch-smtp01.sth.basefarm.net ([80.76.149.212]:38425) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KAWa2-0000iD-Jr for emacs-devel@gnu.org; Sun, 22 Jun 2008 16:54:34 -0400 Original-Received: from c83-254-145-59.bredband.comhem.se ([83.254.145.59]:61955 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1KAWZx-0000l6-5O; Sun, 22 Jun 2008 22:54:32 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 In-Reply-To: <87prq9i503.fsf@stupidchicken.com> X-Antivirus: avast! (VPS 080621-0, 2008-06-21), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.145.59 X-Scan-Result: No virus found in message 1KAWZx-0000l6-5O. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1KAWZx-0000l6-5O 8681a4e5440b9d4b4aac6eaf15fb1288 X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) 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:99713 Archived-At: Chong Yidong wrote: > "Lennart Borgman (gmail)" writes: > >> Chong Yidong wrote: >>> I have been studying Kim Storm's display-based word wrapping code. I >>> believe it's pretty safe, and suitable for inclusion into the Emacs 23 >>> release (probably turned off by default). >>> >>> The original patch included a `wrap-column' variable, but I'd like to >>> modify this to use `truncate-lines' instead, as shown below. This would >>> mean that word wrap always uses the right window edge as a wrap column. >>> Any objections? >> Yes, I would find this quite impractical to not have a >> wrap-column'. I do not want to resize windows just to edit text in a >> comfortable way. > > Introducing a wrap-column variable is almost exactly the same as > changing the window width, or equivalently the right fringe width. I > don't see the advantage in further complicating this part of the code to > introduce a new way to do the same thing. I thought it would be similar to fill-column, but I am beginning to see your point. > It would be easier, for example, to introduce a separate patch that > automatically adjusts the right fringe so that the editable area has a > certain width. From a users point of view I think it is essential that it is easy to turn this on/off. >> (Wouldn't it also make it impossible to use the "darkroom" editing >> some people have suggested?) > > I don't know what this is about. Here is a description, it is about distraction-free writing: http://www.emacswiki.org/cgi-bin/wiki/WriteRoom http://www.martyn.se/code/emacs/darkroom-mode/darkroommode-screenshot.png