unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tassilo@member.fsf.org>
To: Lennart Borgman <lennart.borgman@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Indentation and visual-line-mode
Date: Fri, 25 Nov 2011 15:36:38 +0100	[thread overview]
Message-ID: <87lir4xo95.fsf@tsdh.uni-koblenz.de> (raw)
In-Reply-To: <CANbX365=+Kj5X69QsPjsd976YvozV-tGZhr0Od8XdNCyMMGtUw@mail.gmail.com> (Lennart Borgman's message of "Fri, 25 Nov 2011 14:49:34 +0100")

Lennart Borgman <lennart.borgman@gmail.com> writes:

Hi Lennart,

>> Checking the docs, I think something like that can be achieved using
>> the variables or text properties `line-prefix' and `wrap-prefix', but
>> what is a stretch-glyph?
>
> I think I have told here that there is and have been for several years
> a minor mode in nXhtml that does this: wrap-to-fill-column-mode.

Hm, I've just downloaded wrap-to-fill.el, but it depends on mumamo and
possibly other files.  I'm not too tempted to install nXhtml mode just
for that single feature, when Stephen's snippet works just fine.

> I have attached an image of how it can look in org-mode.  There are
> two lines in this image, one in org-mode itself and one in a comment
> in org-mode. Both are wrapped the way you want it.

Oh, are the second and third # in the comment artifical, i.e., logically
it's only "# one comment starter followed by a very long line"?

Bye,
Tassilo
-- 
(What the world needs (I think) is not
      (a Lisp (with fewer parentheses))
      but (an English (with more.)))
Brian Hayes, http://tinyurl.com/3y9l2kf



  reply	other threads:[~2011-11-25 14:36 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
2011-11-25 15:15         ` Tassilo Horn
2011-11-25 13:49 ` Lennart Borgman
2011-11-25 14:36   ` Tassilo Horn [this message]
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

  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=87lir4xo95.fsf@tsdh.uni-koblenz.de \
    --to=tassilo@member.fsf.org \
    --cc=emacs-devel@gnu.org \
    --cc=lennart.borgman@gmail.com \
    /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).