unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Miles Bader <miles.bader@necel.com>
To: Stephen Berman <stephen.berman@gmx.net>
Cc: emacs-devel@gnu.org
Subject: Re: line/wrap-prefix patch
Date: Thu, 03 Jul 2008 13:19:10 +0900	[thread overview]
Message-ID: <buoskury4zl.fsf@dhapc248.dev.necel.com> (raw)
In-Reply-To: <87abh1i6xm.fsf@escher.local.home> (Stephen Berman's message of "Wed, 02 Jul 2008 00:19:17 +0200")

Stephen Berman <stephen.berman@gmx.net> writes:
> My final comment concerns adaptive filling.  In my modification of
> longlines.el long lines are appropriately wrapped at different levels of
> indentation, resulting in displays like this:
..
> With your patch, doing (setq wrap-prefix
> (fill-context-prefix (line-beginning-position) (line-end-position)))
> results in a display like this:
...
> It would be nice to get the appropriate indentation.

To get varying prefixes, you can use the `wrap-prefix' text property.

To do so automatically and dynamically would be interesting, but is
obviously more work.  I wonder what ways of specifying the prefix would
be practical (e.g., a text-property covering the "header" text at the
beginning of the physical line, which would be replaced by spaces to get
the wrap prefix, or a regexp used to match the header)?

-Miles

-- 
x
y
Z!




  reply	other threads:[~2008-07-03  4:19 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-30  3:38 line/wrap-prefix patch Miles Bader
2008-06-30  4:18 ` Miles Bader
2008-07-01  0:36   ` Miles Bader
2008-07-01  4:52     ` Chong Yidong
2008-07-01  5:38       ` Miles Bader
2008-07-01 14:10         ` Chong Yidong
2008-07-01 22:19 ` Stephen Berman
2008-07-03  4:19   ` Miles Bader [this message]
2008-07-04 20:50     ` Stephen Berman
2008-07-04 21:25       ` Stefan Monnier
2008-07-05  0:52       ` Miles Bader
2008-07-05 21:30         ` Stephen Berman
2008-07-06  1:05           ` 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=buoskury4zl.fsf@dhapc248.dev.necel.com \
    --to=miles.bader@necel.com \
    --cc=emacs-devel@gnu.org \
    --cc=miles@gnu.org \
    --cc=stephen.berman@gmx.net \
    /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).