From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Chong Yidong" Newsgroups: gmane.emacs.devel Subject: Re: Turn on longlines in text modes [patch] Date: Tue, 19 Jul 2005 08:48:49 -0400 (EDT) Message-ID: <1376.220.255.229.97.1121777329.squirrel@www.stupidchicken.com> References: <993C95CD-DA31-4B96-A73F-94D0B46A4B65@gmail.com> <2746.155.69.5.236.1121751572.squirrel@stupidchicken.com> <851x5vfgt1.fsf@lola.goethe.zz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1121778102 25442 80.91.229.2 (19 Jul 2005 13:01:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 19 Jul 2005 13:01:42 +0000 (UTC) Cc: David Reitter , emacs-devel ' Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 19 15:01:32 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Durhc-00006X-GM for ged-emacs-devel@m.gmane.org; Tue, 19 Jul 2005 15:00:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Durjb-0007iY-LK for ged-emacs-devel@m.gmane.org; Tue, 19 Jul 2005 09:02:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DurgN-00074B-Nm for emacs-devel@gnu.org; Tue, 19 Jul 2005 08:58:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DurgE-0006zx-RT for emacs-devel@gnu.org; Tue, 19 Jul 2005 08:58:39 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DurgE-0006uh-Mx for emacs-devel@gnu.org; Tue, 19 Jul 2005 08:58:38 -0400 Original-Received: from [64.21.80.18] (helo=shark.whbdns.com) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1Durg0-0005eJ-9U; Tue, 19 Jul 2005 08:58:24 -0400 Original-Received: from stupidch by shark.whbdns.com with local (Exim 4.50) id 1DurWj-0006AY-9r; Tue, 19 Jul 2005 08:48:49 -0400 Original-Received: from 220.255.229.97 ([220.255.229.97]) (SquirrelMail authenticated user cyd@stupidchicken.com) by www.stupidchicken.com with HTTP; Tue, 19 Jul 2005 08:48:49 -0400 (EDT) In-Reply-To: <851x5vfgt1.fsf@lola.goethe.zz> Original-To: "David Kastrup" User-Agent: SquirrelMail/1.4.4 X-Priority: 3 (Normal) Importance: Normal X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - shark.whbdns.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [32675 33085] / [47 12] X-AntiAbuse: Sender Address Domain - stupidchicken.com X-Source: /usr/local/cpanel/3rdparty/bin/php X-Source-Args: /usr/local/cpanel/3rdparty/bin/php /usr/local/cpanel/base/3rdparty/squirrelmail/src/compose.php X-Source-Dir: :/base/3rdparty/squirrelmail/src 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:41072 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:41072 >> The reason longlines-wrap-follows-window-size is nil by default is >> that it can produce unexpected behavior when the buffer is >> simultaneously displayed in two windows with different widths. > > There are several ways out of that one, I guess. One is to allow > settings of 'min and 'current (with the obvious implications). Good idea. I'll see what I can do. > another would be to use window-local display properties for letting > spaces display as newlines (and newlines as spaces) when some window > has a different width. I've actually tried implementing something like this before. It works, but there are more side effects than in the current longlines implementation. The C-a and C-e commands go to the beginning and end of the long lines instead of screen lines, which is correct but not useful, so they would have to be modified before this mode can work properly. Since there's interest, I'll see if I can iron out the problems, and post a longlines-2-mode for people to try out.