From: "Miles Bader" <miles@gnu.org>
Cc: Emacs-Devel <emacs-devel@gnu.org>
Subject: Re: bind faces?
Date: Sun, 14 May 2006 23:46:39 +0900 [thread overview]
Message-ID: <fc339e4a0605140746x341f8cfcm433b13d6ef7bd1f7@mail.gmail.com> (raw)
In-Reply-To: <DNEMKBNJBGPAOPIJOOICGEANDGAA.drew.adams@oracle.com>
On 5/14/06, Drew Adams <drew.adams@oracle.com> wrote:
> I'm guessing that you mean that put-text-property would make chars 1-5 have
> font-lock-string-face (which would be defined at that point to have a red
> background), but those chars wouldn't get redisplayed until after the let is
> exited. If that's the case, then I'd say that users can use let to bind the
> face to a new definition, and they can use put-text-property to add that
> (newly defined) face to text, but they also need to (do something to) force
> redisplay inside the let, if they want to see the effect.
Reading this, it's extremely unclear what you actually want to happen.
Again: Give a real world example of a UI problem using your proposed
feature. Not only will that help justify it, it will clarify what
exactly you think it should do.
(The example I gave causes the given face's display to change _during
the binding_ -- I used a call to read-string in my example because
that causes redisplay and user interaction within the binding; the
display of the given face changes back again after the binding ceases
to be active)
-Miles
--
Do not taunt Happy Fun Ball.
next prev parent reply other threads:[~2006-05-14 14:46 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-13 17:54 bind faces? Drew Adams
2006-05-13 18:07 ` Chong Yidong
2006-05-13 19:40 ` Drew Adams
2006-05-14 2:39 ` Richard Stallman
2006-05-14 0:52 ` Miles Bader
2006-05-14 1:02 ` Drew Adams
2006-05-14 2:16 ` Miles Bader
2006-05-14 3:13 ` Drew Adams
2006-05-14 4:10 ` David Kastrup
2006-05-14 2:33 ` Miles Bader
2006-05-14 13:17 ` Stefan Monnier
2006-05-14 14:32 ` Drew Adams
2006-05-14 14:46 ` Miles Bader [this message]
2006-05-14 16:13 ` Drew Adams
2006-05-14 17:49 ` Stefan Monnier
2006-05-14 18:43 ` Drew Adams
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=fc339e4a0605140746x341f8cfcm433b13d6ef7bd1f7@mail.gmail.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 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).