From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.help Subject: Re: Start keybinding combination Date: Mon, 31 Jan 2022 16:42:24 +0100 Message-ID: <20220131154224.62trjh7mlfie4kbx@Ergus> References: <20220130191539.mkbq77zpn7ugizfi.ref@Ergus> <20220130191539.mkbq77zpn7ugizfi@Ergus> <837dah9fet.fsf@gnu.org> <20220130205447.hcdwnne5twp4f6sv@Ergus> <831r0o9jqx.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22785"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 31 17:14:33 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nEZK2-0005jF-B9 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 31 Jan 2022 17:14:30 +0100 Original-Received: from localhost ([::1]:38850 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nEZK0-0005H4-Vf for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 31 Jan 2022 11:14:29 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52462) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nEYpk-0005cS-Qm for help-gnu-emacs@gnu.org; Mon, 31 Jan 2022 10:43:12 -0500 Original-Received: from sonic313-13.consmr.mail.bf2.yahoo.com ([74.6.133.123]:38681) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nEYpi-0001Lo-0w for help-gnu-emacs@gnu.org; Mon, 31 Jan 2022 10:43:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1643643788; bh=6xoLevmN++w/qwlfROkgP9XOqRHpMNwzrByTsAgMoSc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject:Reply-To; b=aK41ryipF9aTZ1s8tsVnwWHw+ypcZCaGImibp7AQc4DJsKZ0BDbDxMVEV/f7t2CuVyPWds/TDq8WqxpIo0x/uDgcPE1JYXhDGfB2KKO8w+LdB5nnQ1BK5hWIdZbUHc4NUm0w4ut427y/m4YkUAJnlUE8NYRC2BDdt+e6oxW10g60fC4LRjAUjvQcraYYLtK/cesAaHHp3m+FcbSlfPq6yXJLAiqHHL+8m+p0gPAQTbDVcz1f2rOUUyzWh42zGOmkY9kAQwD6erQ/wcXqMIzWQnFMVlmxiWR1MgxAwDWCDAg/VVb40BvLzkgb9d42baVMauFbHvIQsh78paVIklRvMg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1643643788; bh=t+Tf/uh0XGVmzfhKmqV5Xgmky+WGpFQgivqK0KLJUV0=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=EiPPvICUdgNXC0NgDpUmrD9/6lFQ6h9xNFu2cu25EVsyAP2C1S0JvEZv4iNrnMPiHy3UEM11YmMNvlL8fXxSujC6OUcKHNuWJ8KGIo1RD82G7pWzN0UXMBKp+CD0+nYbZAhpbFNKjtwUK7XPYB8xvfjDjRW+JPo9pmqO3ciO+OzNt3JcA4j+zz6gdzALldFMxeS3WQqvqu0NqPCX9/CM5xYym4K7fG6KtAYF3msxJvttXWqw1nJm5T77QYpvzN40kazg2e3tkDLWrr4WGQnj1Nb6LZpQsWkddaZyJuseVFE0R8XY0qRyiTrn46pw566BCkEMFuo88uGxXxhIm51bxA== X-YMail-OSG: pWM2OJgVM1ndM.RkRPAd4W9dgJRd5er3PnlbMm_EX8mQgROiH37zNs1uNNkV8cO Sr_Aze0frF5n7rJWtp77PMiXuPYzNYNtu.s0yyok1_U002nLzdOn_fBxK3Cm2gMLu2wkhzPZjnAM K8jwa7lMZsunD4o_xQkIhN1xZn34TVtGTE7F7yh9Lm7v3WdopWVYI_n6vuCdglE5xYgDXx_kxuKl VXnXdoeab7zBhMV2KQpVk5JgZHjZ746DnSmlniREDBmYFOZs9NFBkqkpp_9diC94o.A_NqxdhsPr bEDz6y7_C.gv6Pln_pgljfUINulx9Iqlw8nvCRZmNDBoKO.EQONE_zP43rBXxbRfz76KjKwIoH13 eiYoYaGWEcTooONnnfpRmOT4rBshruzQveT5LM8RAwys5zU2.PJKATfGrEYrzD71udZDyGiNXGKA dwjflvKKep_L.XnrYys.3u0kwrEJsk2vreMnJIZ.clL7zuK1awWlEBTY2sRWsKpryrrTWJQcIZxi DKbpmxi0HB7StevqoSuRQZcIDU.HTXx4srwlGBMF2orJgaEFBKTSJ.Qb1BNNx1gIkHBa7ilAj6zc 4BJCWlA9pyfCKHQx7nG8kqUvXXMLw8tOaPIohW6EfN5PtgDoykI_omSL9qDfZoKt9PI7yOx3Bc2n REnDID8U5TfH7cnX6XRghz8v4DQlRdbiW9oezQ7.nP8JyUukMdsBekX8w96jsWkp78pCGOtAGBHr 8UsjNxTIUxsszJNuzMLMwnTVOO98d934jasAuEGBQuSmCr7eTlqN.mJHLzFoxvRh6yByol_IKJOZ juL06vV6GxMX8xhH3ZQ9XTiSaVsjnkufyTa8Jm9b5m X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.bf2.yahoo.com with HTTP; Mon, 31 Jan 2022 15:43:08 +0000 Original-Received: by kubenode520.mail-prod1.omega.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 3f065f6da9eae996a6301eb919f2fc17; Mon, 31 Jan 2022 15:43:03 +0000 (UTC) Content-Disposition: inline In-Reply-To: <831r0o9jqx.fsf@gnu.org> X-Mailer: WebService/1.1.19615 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Received-SPF: pass client-ip=74.6.133.123; envelope-from=spacibba@aol.com; helo=sonic313-13.consmr.mail.bf2.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:135613 Archived-At: On Mon, Jan 31, 2022 at 02:23:34PM +0200, Eli Zaretskii wrote: >> Date: Sun, 30 Jan 2022 21:54:47 +0100 >> From: Ergus >> 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