aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2023-02-19 21:30:02 +0200
committerJuri Linkov2023-02-19 21:30:02 +0200
commit683961cd733d4a660ffdb9c1a6e6ad565ffae2cb (patch)
treec892bcc8ddcd4003ba0ecfd306806f41708b5392
parent1ac05eac74bfd927de2d399cacc68a77ee72847d (diff)
downloademacs-683961cd733d4a660ffdb9c1a6e6ad565ffae2cb.tar.gz
emacs-683961cd733d4a660ffdb9c1a6e6ad565ffae2cb.zip
* lisp/simple.el (choose-completion): Check for completion-in-region-mode.
Don't use base-affixes when completion-use-base-affixes is non-nil in completion-in-region-mode (bug#61535).
-rw-r--r--lisp/simple.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index 27aeb2fa8cc..5f23910efc6 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -9884,7 +9884,12 @@ minibuffer, but don't quit the completions window."
9884 (with-current-buffer buffer 9884 (with-current-buffer buffer
9885 (choose-completion-string 9885 (choose-completion-string
9886 choice buffer 9886 choice buffer
9887 (or (and completion-use-base-affixes base-affixes) 9887 ;; Don't allow affixes to replace the whole buffer when not
9888 ;; in the minibuffer. Thus check for `completion-in-region-mode'
9889 ;; to ignore non-nil value of `completion-use-base-affixes' set by
9890 ;; `minibuffer-choose-completion'.
9891 (or (and (not completion-in-region-mode)
9892 completion-use-base-affixes base-affixes)
9888 base-position 9893 base-position
9889 ;; If all else fails, just guess. 9894 ;; If all else fails, just guess.
9890 (list (choose-completion-guess-base-position choice))) 9895 (list (choose-completion-guess-base-position choice)))