GNU bug report logs - #60353
30.0.50; Make `repeat-echo-function` as a LIST of functions

Previous Next

Package: emacs;

Reported by: Ramesh Nedunchezian <rameshnedunchezian <at> outlook.com>

Date: Tue, 27 Dec 2022 10:19:01 UTC

Severity: normal

Fixed in version 30.0.50

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 60353 in the body.
You can then email your comments to 60353 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#60353; Package emacs. (Tue, 27 Dec 2022 10:19:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ramesh Nedunchezian <rameshnedunchezian <at> outlook.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 27 Dec 2022 10:19:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ramesh Nedunchezian <rameshnedunchezian <at> outlook.com>
To: bug-gnu-emacs <at> gnu.org
Cc: Juri Linkov <juri <at> linkov.net>
Subject: 30.0.50; Make `repeat-echo-function` as a LIST of functions
Date: Tue, 27 Dec 2022 15:42:29 +0530
I need some visual cues for when I am in "repeat-mode".

For example, down below I change the cursor shape and colour depending



Right now `repeat-echo-function` is NOT a list.  This means that I
LOSE the ability to see the repeatabe keys in the echo area.

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.

(setq 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)))))











Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#60353; Package emacs. (Tue, 27 Dec 2022 18:15:02 GMT) Full text and rfc822 format available.

Message #8 received at 60353 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: Ramesh Nedunchezian <rameshnedunchezian <at> outlook.com>
Cc: 60353 <at> debbugs.gnu.org
Subject: Re: bug#60353: 30.0.50;
 Make `repeat-echo-function` as a LIST of functions
Date: Tue, 27 Dec 2022 20:03:33 +0200
> I need some visual cues for when I am in "repeat-mode".
>
> For example, down below I change the cursor shape and colour depending
>
> Right now `repeat-echo-function` is NOT a list.  This means that I
> LOSE the ability to see the repeatabe keys in the echo area.
>
> 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.
>
> (setq 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)))))

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)))))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#60353; Package emacs. (Wed, 28 Dec 2022 18:01:02 GMT) Full text and rfc822 format available.

Message #11 received at 60353 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: Ramesh Nedunchezian <rameshnedunchezian <at> outlook.com>
Cc: 60353 <at> debbugs.gnu.org
Subject: Re: bug#60353: 30.0.50; Make `repeat-echo-function` as a LIST of
 functions
Date: Wed, 28 Dec 2022 19:59:13 +0200
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.




bug marked as fixed in version 30.0.50, send any further explanations to 60353 <at> debbugs.gnu.org and Ramesh Nedunchezian <rameshnedunchezian <at> outlook.com> Request was from Juri Linkov <juri <at> linkov.net> to control <at> debbugs.gnu.org. (Wed, 28 Dec 2022 18:01:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 26 Jan 2023 12:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 150 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.