unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Ivan Kanis <ivan@kanis.fr>
Cc: Eli Zaretskii <eliz@gnu.org>,
	Emacs Development List <emacs-devel@gnu.org>
Subject: Re: fill length of visual line mode
Date: Sat, 04 Oct 2014 18:25:33 -0400	[thread overview]
Message-ID: <jwvvbnzwk2q.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87egunvrqh.fsf@kanis.fr> (Ivan Kanis's message of "Sat, 04 Oct 2014 16:23:18 +0200")

> Let's forget about the code I posted. It's a stupid hack that works for me.
>>> It just feels hackish and wrong.  The right thing I feel is to use
>>> fill-column.
>> 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?
> I didn't think of that. I bet users will want either. So a variable
> will say what to do.

I think pursuing the window-configuration-change-hook path is actually
a good idea: if we can get the desired behavior via Elisp code, it's
generally preferable (the C code is hairy enough as it is).  It also
makes it easier to offer configurability (e.g. to choose whether to
center the visible text in the window, or not).


        Stefan



  reply	other threads:[~2014-10-04 22:25 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
2014-10-04 15:45         ` Drew Adams
2014-10-04 14:23       ` Ivan Kanis
2014-10-04 22:25         ` Stefan Monnier [this message]
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=jwvvbnzwk2q.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=ivan@kanis.fr \
    /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).