From 11126c6d30aa17c3e672706ed3956f89214aa80f Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 8 Apr 2023 20:10:49 +0300 Subject: [PATCH] Fix 'C-h k' for "Paste from Kill Menu" in context menus * lisp/mouse.el (context-menu-region): Make the entries be symbols, not just integers, to prevent "C-h c" from interpreting them as character keys. (Bug#62626) --- lisp/mouse.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/mouse.el b/lisp/mouse.el index d93594deb04..60542e47448 100644 --- a/lisp/mouse.el +++ b/lisp/mouse.el @@ -524,7 +524,8 @@ Some context functions add menu items below the separator." (i 0)) (dolist (item (reverse yank-menu)) (when (consp item) - (define-key submenu (vector (setq i (1+ i))) + (define-key submenu + (vector (intern (format "kill-%d" (setq i (1+ i))))) `(menu-item ,(cadr item) ,(lambda () (interactive) (mouse-yank-from-menu click (car item))))))) -- 2.39.5