From c1712f55070d1fe861517d2c1a9fe53622f0e6a6 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Mon, 22 Feb 2021 15:32:34 +0100 Subject: [PATCH] Fix prompt for the `M-S-x' command * lisp/simple.el (read-extended-command): Further kludge the hard-coded "M-x" prompt for the new `M-S-x' command. --- lisp/simple.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/simple.el b/lisp/simple.el index 26710e6d53d..1dfc3374ade 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -1980,7 +1980,9 @@ This function uses the `read-extended-command-predicate' user option." ;; but actually a prompt other than "M-x" would be confusing, ;; because "M-x" is a well-known prompt to read a command ;; and it serves as a shorthand for "Extended command: ". - "M-x ") + (if (memq 'shift (event-modifiers last-command-event)) + "M-X " + "M-x ")) (lambda (string pred action) (if (and suggest-key-bindings (eq action 'metadata)) '(metadata -- 2.39.2