unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Harald Hanche-Olsen <hanche@math.ntnu.no>
To: emacs-devel@gnu.org
Subject: Re: fill length of visual line mode
Date: Sat, 04 Oct 2014 11:58:34 +0200 (CEST)	[thread overview]
Message-ID: <20141004.115834.416226893935804906.hanche@math.ntnu.no> (raw)
In-Reply-To: <jwvsij4rh30.fsf-monnier+emacs@gnu.org>

[Stefan Monnier <monnier@iro.umontreal.ca> (2014-10-03 21:20:07 UTC)]

> I'm not opposed to a patch that would let it obey fill-column
> (optionally).  But it does beg the question: what if the window is
> smaller than fill-column?  Should it then fill at the window's edge or
> should it continue as if truncate-lines is set?

Filling at the window's edge is the only reasonable option, IMO.

The behaviour of web browsers was mentioned earlier. But you have the
CSS property max-width to modify that. I have – and frequently use – a
bookmarklet that lets me set the max-width property on the body
element in order to improve readability. It beats adjusting the
browser window itself.

Perhaps emacs could have a variable max-fill-column which, when set,
could govern visual line mode in this way? If set to t, it would mean
use the value of fill-column. Or if set to a number, ignore
fill-column and use the number itself. It shouldn't be allowed to
override fill-column in the other use cases, though. Perhaps
visual-line-max-fill-column would be a better name, if perhaps a bit
unwieldy.

– Harald



  reply	other threads:[~2014-10-04  9:58 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-02  7:48 fill length of visual line mode Ivan Kanis
2014-10-02 15:16 ` Eli Zaretskii
2014-10-03 21:19   ` Johan Bockgård
2014-10-04  7:07     ` Eli Zaretskii
2014-10-04 17:16       ` Johan Bockgård
2014-10-02 15:50 ` Glenn Morris
2014-10-03 20:39   ` Ivan Kanis
2014-10-03 21:20     ` Stefan Monnier
2014-10-04  9:58       ` Harald Hanche-Olsen [this message]
2014-10-04 15:45         ` Drew Adams
2014-10-04 14:23       ` Ivan Kanis
2014-10-04 22:25         ` Stefan Monnier
2014-10-05  7:59           ` Ivan Kanis

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=20141004.115834.416226893935804906.hanche@math.ntnu.no \
    --to=hanche@math.ntnu.no \
    --cc=emacs-devel@gnu.org \
    /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).