From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#60353: 30.0.50; Make `repeat-echo-function` as a LIST of functions Date: Wed, 28 Dec 2022 19:59:13 +0200 Organization: LINKOV.NET Message-ID: <86h6xfo1e6.fsf@mail.linkov.net> References: <868ritc4tu.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11768"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: 60353@debbugs.gnu.org To: Ramesh Nedunchezian Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 28 19:01:33 2022 Return-path: Envelope-to: geb-bug-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 1pAak9-0002wj-4M for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 28 Dec 2022 19:01:33 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pAajm-0004Jw-5K; Wed, 28 Dec 2022 13:01:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pAajf-0004HH-QV for bug-gnu-emacs@gnu.org; Wed, 28 Dec 2022 13:01:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pAaje-0003OV-NW for bug-gnu-emacs@gnu.org; Wed, 28 Dec 2022 13:01:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pAaje-0004Nk-3m for bug-gnu-emacs@gnu.org; Wed, 28 Dec 2022 13:01:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 Dec 2022 18:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60353 X-GNU-PR-Package: emacs Original-Received: via spool by 60353-submit@debbugs.gnu.org id=B60353.167225040816729 (code B ref 60353); Wed, 28 Dec 2022 18:01:02 +0000 Original-Received: (at 60353) by debbugs.gnu.org; 28 Dec 2022 18:00:08 +0000 Original-Received: from localhost ([127.0.0.1]:58580 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pAaim-0004Lk-1Y for submit@debbugs.gnu.org; Wed, 28 Dec 2022 13:00:08 -0500 Original-Received: from relay11.mail.gandi.net ([217.70.178.231]:41895) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pAaij-0004JX-HA; Wed, 28 Dec 2022 13:00:06 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id BEA8D100004; Wed, 28 Dec 2022 17:59:57 +0000 (UTC) In-Reply-To: <868ritc4tu.fsf@mail.linkov.net> (Juri Linkov's message of "Tue, 27 Dec 2022 20:03:33 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:251997 Archived-At: close 60353 30.0.50 thanks >> If `repeat-echo-function` is SOMEHOW repelaced with a list of >> functions, I can have BOTH the cues for repeatable state--the echo >> area message, and the cursor shape. > > A list of functions could be supported as well. > Until it's implemented you could use `add-function` > with something like this: > > (add-function > :after repeat-echo-function > (defun my-repeat-echo-function (keymap) > (cond > (keymap > (set-cursor-color "black") > (setq cursor-type '(hbar . 7))) > (t > (set-cursor-color "red") > (setq cursor-type t))))) I added a hint that suggests to use `add-function` in the docstring of `repeat-echo-function`. So probably this report could closed now. It could be reopened if you have more questions.