bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#54932: 28.1; electric-help doesn't work when `help-char' has meta-pr


From: Sean Whitton
Subject: bug#54932: 28.1; electric-help doesn't work when `help-char' has meta-prefix
Date: Thu, 14 Apr 2022 14:39:12 -0700
User-agent: Emacs/29.0.50 (x86_64-pc-linux-gnu)

Hello,

On Thu 14 Apr 2022 at 06:04PM +09, Nobuyoshi Nakada wrote:

> --- 28.1/lisp/ehelp.el.gz
> +++ site-lisp/ehelp.el.gz
> @@ -76,7 +76,9 @@
>      (define-key map [?\C-7] 'electric-help-undefined)
>      (define-key map [?\C-8] 'electric-help-undefined)
>      (define-key map [?\C-9] 'electric-help-undefined)
> -    (define-key map (char-to-string help-char) 'electric-help-help)
> +    (define-key map
> +      (if (characterp help-char) (char-to-string help-char) (vector 
> help-char))
> +      'electric-help-help)
>      (define-key map "?" 'electric-help-help)
>      (define-key map " " 'scroll-up)
>      (define-key map [?\S-\ ] 'scroll-down)

Couldn't `vector' be used unconditionally?

-- 
Sean Whitton





reply via email to

[Prev in Thread] Current Thread [Next in Thread]