From: Eli Zaretskii Date: Sat, 8 Apr 2023 17:10:49 +0000 (+0300) Subject: Fix 'C-h k' for "Paste from Kill Menu" in context menus X-Git-Tag: emacs-29.0.90~7 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=11126c6d30aa17c3e672706ed3956f89214aa80f;p=emacs.git 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) --- 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)))))))