From: Miles Bader <miles@gnu.org>
To: emacs-devel@gnu.org
Subject: word-wrap "indentation"
Date: Thu, 26 Jun 2008 15:40:33 +0900 [thread overview]
Message-ID: <buoiqvw1yxq.fsf@dhapc248.dev.necel.com> (raw)
I'm trying to use the new word-wrap feature to get dynamic
wrapping in rcirc buffers (since the wrapped portions are
read-only the lack of "visual" line movement isn't such a big
deal). just doing: (set (make-local-variable 'rcirc-fill-flag)
nil) (push '(continuation) fringe-indicator-alist) (setq word-wrap
t) gets decent results, but I'd really like to get something more
similar to rcirc's normal (static) filling, which looks like:
13:44 Wyzard: In the case of nVidia, yes
13:44 Wyzard: If you had, say, a Matrox card, you'd be using
Mesa's libGL, which would talk to the Matrox DRM
module in the kernel, to tell the hardware to
draw stuff
13:44 enouf: i mean, it makes/uses/loads it's own built kernel
module, as you mentioned, which is binary blob
related
So obviously what's needed is someway to tell the display word-wrapping
a string to insert after each wrap-point.
To exactly emulate rcirc's static filling, this would need to be a
text-property or something, but it seems useful to support a buffer-wide
variable as well.
Possible names for this variable/property could be "wrap-indent" or
"after-wrap-wring" (it seems useful to allow either a string or an
integer number of columns to me...).
Any comments? Anyone already hacking on this sort of thing, or should I
give it a go?
-Miles
--
Guilt, n. The condition of one who is known to have committed an indiscretion,
as distinguished from the state of him who has covered his tracks.
next reply other threads:[~2008-06-26 6:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-26 6:40 Miles Bader [this message]
2008-06-26 6:47 ` word-wrap "indentation" Stefan Monnier
2008-06-26 6:58 ` Miles Bader
2008-06-26 15:20 ` Stefan Monnier
2008-06-26 14:00 ` Chong Yidong
2008-06-27 22:56 ` Stephen Berman
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=buoiqvw1yxq.fsf@dhapc248.dev.necel.com \
--to=miles@gnu.org \
--cc=emacs-devel@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.
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.