all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Garreau\, Alexandre" <galex-713@galex-713.eu>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: help-gnu-emacs@gnu.org
Subject: Re: refill paragraph but visually (like visual-line-mode)?
Date: Wed, 17 Oct 2018 13:12:51 +0200	[thread overview]
Message-ID: <87efcog72k.fsf@portable.galex-713.eu> (raw)
In-Reply-To: <jwvh8hmwrcn.fsf-monnier+gmane.emacs.help@gnu.org> (Stefan Monnier's message of "Mon, 15 Oct 2018 22:36:30 -0400")

On 2018-10-15 at 22:36, Stefan Monnier wrote:
>> But I guess if you do it without modifying the buffer (i.e. only
>> using features which affect the display but not the buffer's
>> contents), the warts would at least be "harmless".
> 
> I just pushed a visual-fill-mode to GNU ELPA which tries to do just
> that.

Mmmmh, wow I like it much: it automagically takes care of prefixes, and
plays very well with adaptive-wrap and visual-line (though having
continuation marks in fringes about when a line would have been splitted
by word-wrap without visual-fill would have been interesting but maybe
too complex to be worth it) modes …and gets amusing behavior with
highlight-current-line-minor-mode: first of all it highlight prefixes
when they really are in buffer but not when these are inserted by a
mode, and second you see hard lines highlighted instead of visual ones
so you see the difference between both… if you fill-paragraph that
usually plays well except in some cases (I guess because of
word-wrapping).

The two only current drawback is, first of all, when you insert a
newline, it is not hidden, and then that it garbles with message-mode
headers, whose newlines are (exceptionally) of semantic relevance (but
maybe someone could like it as well): maybe something specific to each
mode should specify where newlines (or something else) might be of
semantical relevance.

Damn, this mode makes me enthusiast of word-wrap, maybe even hoping for
hyphenation or advanced high-level things like that I wouldn’t ever have
expected in emacs before.



  reply	other threads:[~2018-10-17 11:12 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
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 [this message]
     [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

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

  git send-email \
    --in-reply-to=87efcog72k.fsf@portable.galex-713.eu \
    --to=galex-713@galex-713.eu \
    --cc=help-gnu-emacs@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.