From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.devel Subject: Re: Turn on longlines in text modes [patch] Date: Tue, 19 Jul 2005 12:12:14 +0100 Message-ID: <159DE74E-F8D0-483B-861E-F06E2639C9A1@gmail.com> References: <993C95CD-DA31-4B96-A73F-94D0B46A4B65@gmail.com> <2746.155.69.5.236.1121751572.squirrel@stupidchicken.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v733) Content-Type: multipart/mixed; boundary="===============0248929821==" X-Trace: sea.gmane.org 1121772623 7184 80.91.229.2 (19 Jul 2005 11:30:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 19 Jul 2005 11:30:23 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 19 13:30:14 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DuqI8-0002mu-1y for ged-emacs-devel@m.gmane.org; Tue, 19 Jul 2005 13:29:40 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DuqK6-0005oJ-Nx for ged-emacs-devel@m.gmane.org; Tue, 19 Jul 2005 07:31:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DuqFF-00040r-Gu for emacs-devel@gnu.org; Tue, 19 Jul 2005 07:26:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DuqF6-0003y8-S0 for emacs-devel@gnu.org; Tue, 19 Jul 2005 07:26:33 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DuqF5-0003p1-Mw for emacs-devel@gnu.org; Tue, 19 Jul 2005 07:26:31 -0400 Original-Received: from [64.233.170.193] (helo=rproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DuqAU-0006i0-Rw for emacs-devel@gnu.org; Tue, 19 Jul 2005 07:21:47 -0400 Original-Received: by rproxy.gmail.com with SMTP id 40so17451rnz for ; Tue, 19 Jul 2005 04:12:18 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:in-reply-to:references:mime-version:x-priority:content-type:message-id:from:subject:date:to:x-mailer; b=PFx/cTuHux6dVKyW47oC8utn1H88IJ2+GPCAZq9ADFLT5RYJ9rB4lq4BF28DsyIflxN4dFEZXmZR8aVtQonE/SHzqapX7RTEYUuD1R+rVnMoYhUJ2iqzTKIFDvbJBOcnNe7KafyWx1u64ub47qs4jN+7XZWRhEC+Z9TfiNatKgI= Original-Received: by 10.38.196.18 with SMTP id t18mr138965rnf; Tue, 19 Jul 2005 04:12:18 -0700 (PDT) Original-Received: from ?129.215.174.81? ([129.215.174.81]) by mx.gmail.com with ESMTP id 3sm250292rny.2005.07.19.04.12.17; Tue, 19 Jul 2005 04:12:18 -0700 (PDT) In-Reply-To: <2746.155.69.5.236.1121751572.squirrel@stupidchicken.com> X-Priority: 3 (Normal) Original-To: Chong Yidong , emacs-devel ' X-Mailer: Apple Mail (2.733) 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:41071 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:41071 --===============0248929821== Content-Type: multipart/signed; micalg=sha1; boundary=Apple-Mail-15--417069557; protocol="application/pkcs7-signature" --Apple-Mail-15--417069557 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed On 19 Jul 2005, at 06:39, Chong Yidong wrote: > Just a note: longlines mode should not be used with auto-fill-mode > on. In > fact, longlines-mode explicitly turns off auto-fill-mode. Seems logical. But if it does so, shouldn't it turn it back on then (i.e. to the previous value) when it's deactivated? At least when text-mode-auto-fill is on... > 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. Longlines will wrap > using > the width of one of the windows, and the results will look strange > in the > other window. There doesn't seem to be an easy way out of this, as > far as > I know. In addition to what David K suggested, it might be possible to just wrap the text to the smallest of all window widths. That's not the ideal solution, but still better than just wrapping all text to some arbitrarily predefined line length by default. 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. --Apple-Mail-15--417069557 Content-Transfer-Encoding: base64 Content-Type: application/pkcs7-signature; name=smime.p7s Content-Disposition: attachment; filename=smime.p7s MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIGOzCCAvQw ggJdoAMCAQICAw3xWjANBgkqhkiG9w0BAQQFADBiMQswCQYDVQQGEwJaQTElMCMGA1UEChMcVGhh d3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNvbmFsIEZyZWVt YWlsIElzc3VpbmcgQ0EwHhcNMDUwMjAxMjM0NTA0WhcNMDYwMjAxMjM0NTA0WjBiMRAwDgYDVQQE EwdSZWl0dGVyMQ4wDAYDVQQqEwVEYXZpZDEWMBQGA1UEAxMNRGF2aWQgUmVpdHRlcjEmMCQGCSqG SIb3DQEJARYXZGF2aWQucmVpdHRlckBnbWFpbC5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAw ggEKAoIBAQDhuoehK+SM/uai1CMVwn3NgRTTwqPpEBKKrr0RKTwxn+B9KFHUK033x4cV1zF4NsHx t8OG7uk25ZRnBdf2xGC4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qGSIb3DQEJEAILMWugaTBiMQswCQYDVQQGEwJaQTElMCMGA1UEChMcVGhhd3RlIENvbnN1 bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNvbmFsIEZyZWVtYWlsIElzc3Vp bmcgQ0ECAw3xWjANBgkqhkiG9w0BAQEFAASCAQDWtmHVq9m+cnzI3/QCS8M6aIVGm2cLUiiazxeB wfre4VASHbEXmrA2DNy+VyKDE7GeIp/+SVXFCc9FhHrm42AFJobLYUGXiihoMVKauHKTKgzD35b8 szBwMKyFF3wytNeRZbyNJN6y9mViDjMbNr1yKvPN+Kyj2qq/ItG2q4729FjSHloelKMiiL3B2IoB hEZTU25EibMeL2GvD8+rLrs3vJwAYfkqnZWLnGeWarZI6i2bP6qquheB7pUMlJVI2L6o2OOAw9l2 9hFfGKj+SQwN1mXVsFNkTjkn3lKA4sMDVPCkwnqfB7sW2yVHb3oe3oIv94D7TRzCvRKt07lKAKdb AAAAAAAA --Apple-Mail-15--417069557-- --===============0248929821== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --===============0248929821==--