From: Ergus <spacibba@aol.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Start keybinding combination
Date: Mon, 31 Jan 2022 16:42:24 +0100 [thread overview]
Message-ID: <20220131154224.62trjh7mlfie4kbx@Ergus> (raw)
In-Reply-To: <831r0o9jqx.fsf@gnu.org>
On Mon, Jan 31, 2022 at 02:23:34PM +0200, Eli Zaretskii wrote:
>> Date: Sun, 30 Jan 2022 21:54:47 +0100
>> From: Ergus <spacibba@aol.com>
>> Cc: help-gnu-emacs@gnu.org
>>
>> >What would such a hook do to produce the effect that you want? The
>> >mode-line color change will not be visible unless you force redisplay
>> >of the mode line.
>> >
>> Hi Eli:
>>
>> My question comes from the fact that I see the prefix in the echo area
>> and it looks inconspicuous. So, some redisplay is actually done
>> right?
>
>A very limited variant of redisplay, which only updates the echo-area.
>
Oh, I see.
>> Something like:
>>
>> (add-hook the-new-hook (lambda ()
>> (face-remap-add-relative 'mode-line :background some-color)))
>>
>> And then call `face-remap-remove-relative` in the opposed|symmetric exit
>> hook... similar to what minibuffer-setup-hook/minibuffer-exit-hook do.
>>
>> But I could be wrong.
>>
>> Does it makes sense?
>
>It would make the prompt much slower, because updating the mode line
>requires a very thorough redisplay, the way it is implemented. And if
>you on top of that change the mode-line face, Emacs will need to
>recompute all the faces (twice) as well. I wonder if it's worth it.
>
I understand. I don't think that in practice that slowness may be even
noticeable in our days, but considering I am always concerned about
performance, then probably you are right.
Very thanks,
Ergus
prev parent reply other threads:[~2022-01-31 15:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20220130191539.mkbq77zpn7ugizfi.ref@Ergus>
2022-01-30 19:15 ` Start keybinding combination Ergus
2022-01-30 19:44 ` Eli Zaretskii
2022-01-30 20:54 ` Ergus
2022-01-31 12:23 ` Eli Zaretskii
2022-01-31 15:42 ` Ergus [this message]
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=20220131154224.62trjh7mlfie4kbx@Ergus \
--to=spacibba@aol.com \
--cc=eliz@gnu.org \
--cc=help-gnu-emacs@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.