summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2018-03-27 16:01:30 -0400
committerEli Zaretskii <eliz@gnu.org>2018-04-01 12:21:29 +0300
commit748f0fdd5a682d3bea79e3d30782686eae6d24df (patch)
treedb57fdb4b599658c132e47ac30fcffcac35ba862 /lisp
parentaf1624f29bc264fe0cff31c46b25b0b0c90e24bf (diff)
downloademacs-748f0fdd5a682d3bea79e3d30782686eae6d24df.tar.gz
(completion-at-point-functions): Improve doc
(cherry picked from commit b56c56f203f8b066dd71e6ae6a254121b3ac3f08)
Diffstat (limited to 'lisp')
-rw-r--r--lisp/minibuffer.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el
index 7302fff4584..ced0ce64b50 100644
--- a/lisp/minibuffer.el
+++ b/lisp/minibuffer.el
@@ -2076,7 +2076,12 @@ Currently supported properties are all the properties that can appear in
match the text at point, then instead of reporting a completion
failure, the completion should try the next completion function.
As is the case with most hooks, the functions are responsible for
-preserving things like point and current buffer.")
+preserving things like point and current buffer.
+
+NOTE: These functions should be cheap to run since they're sometimes run from
+`post-command-hook' and they should ideally only choose which kind of
+completion table to use and not pre-filter it based on the current text between
+START and END (e.g. that would not obey `completion-styles').")
(defvar completion--capf-misbehave-funs nil
"List of functions found on `completion-at-point-functions' that misbehave.