From: Lennart Borgman <lennart.borgman@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Tassilo Horn <tassilo@member.fsf.org>,
Stephen Berman <stephen.berman@gmx.net>,
Eli Zaretskii <eliz@gnu.org>,
emacs-devel@gnu.org
Subject: Re: Indentation and visual-line-mode
Date: Fri, 25 Nov 2011 15:58:52 +0100 [thread overview]
Message-ID: <CANbX366Y0Eh9SzK=oyQX0RiJgOAtppB+vEg9jB6Qy8Ze1=gJvg@mail.gmail.com> (raw)
In-Reply-To: <jwvfwhcgtsz.fsf-monnier+emacs@gnu.org>
On Fri, Nov 25, 2011 at 15:52, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
>>>> (assuming you never want to change the indentation during editing).
>>> A while ago there was a thread about implementing a minor mode to get
>>> visual indentation with wrap-prefix using fill-context-prefix, in
>>> which I proposed an adaptation of the above; see
>>> <http://permalink.gmane.org/gmane.emacs.devel/125268>. AFAIK there
>>> was no followup to my proposal.
>
> Indeed I didn't find the time to look at it and it ended up on my long
> list of "things to do when hell finally freezes over".
>
>> I've just tried that code, and it's exactly what I've been looking for.
>
> I've just looked at it and it looks really nice and simple.
> It can even be simplified further (see below).
>
> Sadly, this can't be generalized to programming languages, in the sense
> that you can't use foo-indent-calculate to set a wrap-prefix property
> since the wrap-prefix to use depends on the place where the line
> is wrapped.
If it is for text modes then I suggest using something like what I
told about above since you also would want a more narrow text for
readability. (Please see the picture I sent.)
next prev parent reply other threads:[~2011-11-25 14:58 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-25 9:34 Indentation and visual-line-mode Tassilo Horn
2011-11-25 11:52 ` Eli Zaretskii
2011-11-25 12:38 ` Stephen Berman
2011-11-25 13:54 ` Tassilo Horn
2011-11-25 14:52 ` Stefan Monnier
2011-11-25 14:58 ` Lennart Borgman [this message]
2011-11-25 15:15 ` Tassilo Horn
2011-11-25 13:49 ` Lennart Borgman
2011-11-25 14:36 ` Tassilo Horn
2011-11-25 14:47 ` Lennart Borgman
2011-11-25 15:37 ` Juanma Barranquero
2011-11-25 15:46 ` Lennart Borgman
2011-11-25 14:00 ` Stefan Monnier
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='CANbX366Y0Eh9SzK=oyQX0RiJgOAtppB+vEg9jB6Qy8Ze1=gJvg@mail.gmail.com' \
--to=lennart.borgman@gmail.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=stephen.berman@gmx.net \
--cc=tassilo@member.fsf.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 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.