summaryrefslogtreecommitdiff
path: root/etc/NEWS.28
diff options
context:
space:
mode:
authorStefan Kangas <stefan@marxist.se>2021-12-30 06:30:43 +0100
committerStefan Kangas <stefan@marxist.se>2021-12-30 06:30:43 +0100
commita3129af331b8893cec3036f8baec26d49e339b5f (patch)
tree330470edf3f27156973b4fca6a020a4cdb61ccc4 /etc/NEWS.28
parenta4893515c249386bca39f1b9a90adc6fc68b48d5 (diff)
parent06545bc0cc533b1abd831dd521df5f3369675d61 (diff)
downloademacs-a3129af331b8893cec3036f8baec26d49e339b5f.tar.gz
Merge from origin/emacs-28
06545bc0cc CC Mode: c-update-brace-stack: After struct foo *, do not ... f11779f01b Improve documentation of 'M-X' and related features # Conflicts: # etc/NEWS
Diffstat (limited to 'etc/NEWS.28')
-rw-r--r--etc/NEWS.2825
1 files changed, 19 insertions, 6 deletions
diff --git a/etc/NEWS.28 b/etc/NEWS.28
index 1664ccfd044..f1bf2fe67d1 100644
--- a/etc/NEWS.28
+++ b/etc/NEWS.28
@@ -3730,15 +3730,28 @@ commands as being applicable for modes derived from 'dired-mode',
or if the mode is a minor mode, when the current buffer has that
minor mode activated. Note that using this form will create byte code
that is not compatible with byte code in previous Emacs versions.
+Also note that by default these annotations have no effect, unless the
+new option 'read-extended-command-predicate' option is customized to call
+'command-completion-default-include-p' or a similar function.
+++
-** New forms to declare how completion should happen has been added.
+** New 'declare' forms to control completion of commands in 'M-x'.
'(declare (completion PREDICATE))' can be used as a general predicate
-to say whether the command should be present when completing with
-'M-x TAB'. '(declare (modes MODE...))' can be used as a short-hand
-way of saying that the command should be present when completing from
-buffers in major modes derived from MODE..., or, if it's a minor mode,
-when that minor mode is enabled in the current buffer.
+to say whether the command should be considered a completion candidate
+when completing with 'M-x TAB'.
+
+'(declare (modes MODE...))' can be used as a short-hand way of saying
+that the command should be considered a completion candidate when
+completing on commands from buffers in major modes derived from
+MODE..., or, if it's a minor mode, when that minor mode is enabled in
+the current buffer.
+
+Note that these forms will only have their effect if the
+'read-extended-command-predicate' option is customized to call
+'command-completion-default-include-p' or a similar function. The
+default value of 'read-extended-command-predicate' is nil, which means
+no commands that match what you have typed are excluded from being
+completion candidates.
+++
** 'define-minor-mode' now takes an ':interactive' argument.