aboutsummaryrefslogtreecommitdiffstats
path: root/src/minibuf.c
diff options
context:
space:
mode:
authorEli Zaretskii2023-07-02 09:16:58 +0300
committerEli Zaretskii2023-07-02 09:16:58 +0300
commit37ed3d15f38339400eba67647c87fad85de3a384 (patch)
tree765df1e0a93785c65e1f6b22b3f21e3049ac61f5 /src/minibuf.c
parent15ff87617772c2a2c3d8a3a1e2ed7f96e527ad9e (diff)
downloademacs-37ed3d15f38339400eba67647c87fad85de3a384.tar.gz
emacs-37ed3d15f38339400eba67647c87fad85de3a384.zip
Avoid errors in completion due to 'completion-regexp-list'
* doc/lispref/minibuf.texi (Basic Completion): * src/minibuf.c (syms_of_minibuf) <completion-regexp-list>: Document that global non-nil settings of 'completion-regexp-list' are not safe. * lisp/minibuffer.el (completion-pcm--merge-completions): Avoid errors in 'try-completion' when PREFIX is nil. (Bug#64351)
Diffstat (limited to 'src/minibuf.c')
-rw-r--r--src/minibuf.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/minibuf.c b/src/minibuf.c
index 6e54d8c3ba5..58adde1bf66 100644
--- a/src/minibuf.c
+++ b/src/minibuf.c
@@ -2471,7 +2471,12 @@ The basic completion functions only consider a completion acceptable
2471if it matches all regular expressions in this list, with 2471if it matches all regular expressions in this list, with
2472`case-fold-search' bound to the value of `completion-ignore-case'. 2472`case-fold-search' bound to the value of `completion-ignore-case'.
2473See Info node `(elisp)Basic Completion', for a description of these 2473See Info node `(elisp)Basic Completion', for a description of these
2474functions. */); 2474functions.
2475
2476Do not set this variable to a non-nil value globally, as that is not
2477safe and will probably cause errors in completion commands. This
2478variable should be only let-bound to non-nil values around calls to
2479basic completion functions like `try-completion' and `all-completions'. */);
2475 Vcompletion_regexp_list = Qnil; 2480 Vcompletion_regexp_list = Qnil;
2476 2481
2477 DEFVAR_BOOL ("minibuffer-allow-text-properties", 2482 DEFVAR_BOOL ("minibuffer-allow-text-properties",