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: Sun, 30 Jan 2022 21:54:47 +0100 Message-ID: <20220130205447.hcdwnne5twp4f6sv@Ergus> References: <20220130191539.mkbq77zpn7ugizfi.ref@Ergus> <20220130191539.mkbq77zpn7ugizfi@Ergus> <837dah9fet.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="21226"; 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 Sun Jan 30 21:57:49 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 1nEHGe-0005Ow-SK for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 30 Jan 2022 21:57:48 +0100 Original-Received: from localhost ([::1]:40400 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nEHGd-00057y-8F for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 30 Jan 2022 15:57:47 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56252) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nEHFb-0004SH-Cv for help-gnu-emacs@gnu.org; Sun, 30 Jan 2022 15:56:46 -0500 Original-Received: from sonic301-3.consmr.mail.bf2.yahoo.com ([74.6.129.42]:42632) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nEHFE-0004WI-8S for help-gnu-emacs@gnu.org; Sun, 30 Jan 2022 15:56:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1643576129; bh=QBQkwnVh7rFPYto9tPP99LWNIXJuRZbG7xzgY0Sj9YY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject:Reply-To; b=E+Ndk5OFfU23HrKrmACzB9P42DcCjzpV00V318t7DiJYXNeieFLaaMFnk24YfRxrLE4MMDFVV1tFZew/GJuhioJfDuL0L9PTh862EK3SdXv677ZWPplkG8mCjfFS/vU/8fLOpnLF23OTYN8ElogCgSS4CSauiYvNDB146iB8xpIFwUCVTXQv7t6BCiGiNnAiK0zN/BHkMa4BEBmS6PYnnDl978elZuSMAdUeVB8Fi53AbyFRzH8W1TLoo6YDFsrunexsc7wqFThWQz29+mKcOfZ5tGdb3wYEQNBHQ7NypYTTqGF+KVX2TS6CtzC3ckL9x50WTHArCNftIc9wUHiOEQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1643576129; bh=nGLQiYIodhIM7ea4G7Z59UyotOoBRQCxKe81RYmFnOW=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=uFbYsAm6f/s2U1VhWjPCkQZrXoOra1Gt9+LD5lrMnoWJVGME7S+YepVNf/ZBQu7GWwVRrAlsPycn0Yg7rMXGciRROZRGP54LTHIX+4FtMRdzY3GLQvU4JuQsT7/d7r2tLcrZSNEAwVT2p8UEEkcj5rPY6LrrMGoTGNbHVosvTDhElVdj77x5kOSsgptZxv1DHDHPMERwvLWTNq3aMwth5J3EmCwmvKTKgJzzMo8vCEomxV6WYYrukRSOwbrpE1CHEjx/69U3DauYuK5/TKg7PsRroZD0meZ7R6n+1OXNuickfrPTs/ZY3DfEdgmRLRKELmzvC+QEAgYNUvIyGPntkA== X-YMail-OSG: pMJ6d2cVM1lFMLug9WEqJZfS2MjF1bEyadk_VR0azDfuVs0B2FvwFIXdvL7YhnH 9BNjIk2cofvNQFlCoWO8XOdCc_QZeZd8f6OGBUZD1DmhcFU5E_Ygd_yhLmLkSamfxDXK_.VNJc04 QLI85vW9Jucz7or6MbcQDec32dNigjQFq0ZeDHQLzmk74Vfk9DSXTilN8iP.qBz9GKle9xKVVHkx AFyeGXgMuLSzLzyfeSa2p1x9IKfbM1LFgFbqEfYrmJcz3_TABgw6W.nCuO_ZXEXP50MTCKLDKH41 kZ.2RYlSYg0VP723qoNyXCS64yoZgmGeGq1c8D8uBCRv21eF8hJ3XFRnoI56s._InuNm7ZWG.7xn Q9WGbSZw4u4lUuuZfoOBwOqyiHHDXa5gvi3sWaN3cxRlowQQgmTYNYW.0DPtloBG9Ml5D1QX1GRH sRK057vYIloeg8yNf5hriouNd4iPd3Z5ffmWIGA1PnFpbJd8_M9BZjVO5n4AGzhLi72cjSLBclfj db0bi7BbU_UFRN37t1oT.TYaD3ieQwBQC5YhBWoxhgliEX9DY1.jkcB1RbcJ_yATYAXSRZlrnJg. AescLVgzkAzO68M.VxPdM3z9bMkGWT0cDXiLDw15mjsH02VcA5DscV0p4iuc3_TydEY02k61N.mm Kh4W5XCQqgA3oaVuf.6Mjc7J5VqDk7v2jiNkwrKKgKDSJi_Sb9ljbcwWKk64Bofm.wWsTNHbijt5 2I.oQwgs.FS6.yq.pmNmTJORHC4oAnven20ybrlpO_y25g6jucqdCrWo1VwlEZhZ8mEP0ClygRF4 NCRri4KHzyQNlGNPSutYAO2.XRnf_FchA5SSQkWZwn X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.bf2.yahoo.com with HTTP; Sun, 30 Jan 2022 20:55:29 +0000 Original-Received: by kubenode503.mail-prod1.omega.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID e124c65c317e10b7fbe258de805bd5ba; Sun, 30 Jan 2022 20:55:24 +0000 (UTC) Content-Disposition: inline In-Reply-To: <837dah9fet.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.129.42; envelope-from=spacibba@aol.com; helo=sonic301-3.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:135609 Archived-At: On Sun, Jan 30, 2022 at 09:44:58PM +0200, Eli Zaretskii wrote: >> Date: Sun, 30 Jan 2022 20:15:39 +0100 >> From: Ergus >> >> If a user wants to start a command like `C-x r b` I would like to change >> the mode-line color after the `C-x`. I suppose that this may be a call >> to a hook in the same place that updates the echo area inserting the >> current prefix. > >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?. I thought that a hook and let the user implement something could work. 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?