From: Joost Kremers <joostkremers@fastmail.fm>
To: "Garreau, Alexandre" <galex-713@galex-713.eu>
Cc: help-gnu-emacs@gnu.org
Subject: Re: refill paragraph but visually (like visual-line-mode)?
Date: Wed, 17 Oct 2018 17:52:20 +0200 [thread overview]
Message-ID: <20181017155219.GA14612@Swift> (raw)
In-Reply-To: <87o9bsg7wt.fsf@portable.galex-713.eu>
On Wed, Oct 17, 2018 at 12:54:42PM +0200, Garreau, Alexandre wrote:
> On 2018-10-15 at 18:21, Eli Zaretskii wrote:
> > Such options don't exist. You need to keep in mind that
> > visual-line-mode (or "word wrap", as this feature is known in the
> > internals) is just a semi-kludgey hack: we tweak the line-continuation
> > code to start the continuation line on whitespace characters. Other
> > than that, it's still the same continuation line, and uses the same
> > code to detect when it's time to wrap the line. And even this
> > relatively simple tweak makes the line-wrapping code devilishly
> > complicated and hard to wrap your head around.
> >
> > It is possible that making the wrap coordinate controllable by users
> > is not too hard, but Someone™ should look at the relevant code and try
> > making it happen. Maybe we will be lucky.
> >
> > Wanna try it?
>
> isn’t it what visual-fill-column-mode does?
No, it does something very different to achieve basically the same effect. It simply widens the margins, which aren't used to display text, so the text area is reduced.
Doing this in the line-wrapping code (i.e., make the wrap coordinate controllable by the user) might be the better way to implement it, because it should theoretically become possible to exclude certain parts of the buffer from wrapping, i.e., tables or source blocks in Org files. (I've had this request for visual-fill-column-mode once or twice, but it's simply not possible.)
But if the line-wrapping code is already devilishly complicated, as Eli says, it's probably unlikely to happen...
--
Joost Kremers
Life has its moments
next prev parent reply other threads:[~2018-10-17 15:52 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-15 9:35 refill paragraph but visually (like visual-line-mode)? Garreau, Alexandre
2018-10-15 15:21 ` Eli Zaretskii
2018-10-17 10:54 ` Garreau, Alexandre
2018-10-17 15:52 ` Joost Kremers [this message]
2018-10-17 16:09 ` Eli Zaretskii
2018-10-17 16:00 ` Eli Zaretskii
2018-10-17 20:53 ` Garreau, Alexandre
2018-10-20 8:31 ` Eli Zaretskii
2018-10-15 15:56 ` Stefan Monnier
2018-10-16 2:26 ` detect sentence/paragraph ending (was: refill paragraph but visually (like visual-line-mode)?) Van L
2018-10-16 2:36 ` refill paragraph but visually (like visual-line-mode)? Stefan Monnier
2018-10-17 11:12 ` Garreau, Alexandre
[not found] ` <mailman.2229.1539656812.1284.help-gnu-emacs@gnu.org>
2018-10-16 9:51 ` detect sentence/paragraph ending (was: refill paragraph but visually (like visual-line-mode)?) Emanuel Berg
2018-10-16 10:21 ` tomas
[not found] ` <mailman.2239.1539685299.1284.help-gnu-emacs@gnu.org>
2018-10-16 10:31 ` Emanuel Berg
2018-10-16 11:05 ` Van L
2018-10-17 9:55 ` refill paragraph but visually (like visual-line-mode)? Garreau, Alexandre
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=20181017155219.GA14612@Swift \
--to=joostkremers@fastmail.fm \
--cc=galex-713@galex-713.eu \
--cc=help-gnu-emacs@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.
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).