Subject: Re: bug#78797: 31.0.50; hints in a repeat map cause an error

From: Juri Linkov <[email-masked]>
Date: Thu, 19 Jun 2025 09:41:06 +0300

close 78797 31.0.50
thanks

> (defvar-keymap navigation-repeat-map
>   :repeat t
>   "M-n" #'next-line
>   "M-p" #'previous-line)
>
> it displayed just "Repeat with ESC", but after this commit
> correctly displays "Repeat with M-n, M-p".
>
> So we need to decide how to display hints for keys with modifiers.
>
> Without modifiers, it displays "Repeat with *n*ext, *p*revious".
> Maybe with modifiers it could display "Repeat with M-*n*ext, M-*p*revious".
> But what if the character is in the middle of the hint?

Ok, now fixed with the following format:

1. for "n" #'next-line

  "Repeat with [n]ext"

2. for "M-n" #'next-line

  "Repeat with M-n ([n]ext)"