From: Eli Zaretskii Date: Sat, 20 Feb 2021 14:24:03 +0000 (+0200) Subject: ; Fix typos in last change X-Git-Tag: emacs-28.0.90~3632 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4c4c2eab7eaf81f87f8513a40b8a38a1c071cfe6;p=emacs.git ; Fix typos in last change * etc/NEWS: Improve wording. * lisp/simple.el (execute-extended-command-for-buffer): Fix typo. --- diff --git a/etc/NEWS b/etc/NEWS index b623b13b34f..c4f4c1d9d86 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -255,7 +255,7 @@ commands. The new keystrokes are 'C-x x g' ('revert-buffer'), ** New command 'execute-extended-command-for-buffer'. This new command, bound to 'M-S-x', works like 'execute-extended-command', but limits the set of commands to the -commands that have been determined to be particularly of use to the +commands that have been determined to be particularly useful with the current mode. +++ diff --git a/lisp/simple.el b/lisp/simple.el index 0e3a1ee9053..121b4d35a73 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -2195,8 +2195,8 @@ invoking, give a prefix argument to `execute-extended-command'." (defun execute-extended-command-for-buffer (prefixarg &optional command-name typed) - "Query usert for a command relevant for the current mode and then execute it. -This is like `execute-extended-command', but limits the + "Query user for a command relevant for the current mode, and then execute it. +This is like `execute-extended-command', but it limits the completions to commands that are particularly relevant to the current buffer. This includes commands that have been marked as being specially designed for the current major mode (and enabled