From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Richard M. Stallman" Newsgroups: gmane.emacs.devel Subject: Re: Turn on longlines in text modes [patch] Date: Wed, 20 Jul 2005 04:34:24 -0400 Message-ID: References: <993C95CD-DA31-4B96-A73F-94D0B46A4B65@gmail.com> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1121849731 16449 80.91.229.2 (20 Jul 2005 08:55:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 20 Jul 2005 08:55:31 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 20 10:55:30 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DvAM8-0002xD-OB for ged-emacs-devel@m.gmane.org; Wed, 20 Jul 2005 10:55:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DvAOA-0005mE-Fy for ged-emacs-devel@m.gmane.org; Wed, 20 Jul 2005 04:57:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DvALv-000595-GX for emacs-devel@gnu.org; Wed, 20 Jul 2005 04:54:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DvALq-00057D-Um for emacs-devel@gnu.org; Wed, 20 Jul 2005 04:54:51 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DvALq-0004uz-D0 for emacs-devel@gnu.org; Wed, 20 Jul 2005 04:54:50 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DvAFB-0001GA-7o for emacs-devel@gnu.org; Wed, 20 Jul 2005 04:47:57 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1DvA24-0007xs-Bf; Wed, 20 Jul 2005 04:34:24 -0400 Original-To: David Reitter In-reply-to: <993C95CD-DA31-4B96-A73F-94D0B46A4B65@gmail.com> (message from David Reitter on Mon, 18 Jul 2005 22:44:59 +0100) 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:41086 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:41086 Also, can I suggest to turn on longlines-wrap-follows-window-size by default? It sounds like a good idea to me. But maybe there should be a user-settable maximum. There are several ways out of that one, I guess. One is to allow settings of 'min and 'current (with the obvious implications), 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. `min' would certainly give consistent results. To use the selected window, it should be `selected', not `current'; this could work presuming the code runs at the right time not to get confused about which window that will be. By the way: longlines-mode (with longlines-wrap-follows-window-size) seems to wrap to early when using a variable-width font. Since variable-width fonts are predominantly used in text (as opposed to code) writing contexts, and that's where longlines-mode plays an important role, it might be a good idea to think about a fix. This is an entry in etc/TODO--to make the indentation and filling commands handle variable-width fonts. I'd really be glad if someone would work on this.