unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: David Reitter <david.reitter@gmail.com>
Subject: Re: Turn on longlines in text modes [patch]
Date: Tue, 19 Jul 2005 12:12:14 +0100	[thread overview]
Message-ID: <159DE74E-F8D0-483B-861E-F06E2639C9A1@gmail.com> (raw)
In-Reply-To: <2746.155.69.5.236.1121751572.squirrel@stupidchicken.com>


[-- Attachment #1.1: Type: text/plain, Size: 1345 bytes --]

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.

[-- Attachment #1.2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 2400 bytes --]

[-- Attachment #2: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

  parent reply	other threads:[~2005-07-19 11:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-18 21:44 Turn on longlines in text modes [patch] David Reitter
2005-07-19  5:39 ` Chong Yidong
2005-07-19  6:31   ` David Kastrup
2005-07-19 12:48     ` Chong Yidong
2005-07-19 14:29       ` Stefan Monnier
2005-07-19 11:12   ` David Reitter [this message]
2005-07-20  8:34 ` Richard M. Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=159DE74E-F8D0-483B-861E-F06E2639C9A1@gmail.com \
    --to=david.reitter@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).