From 0f3395f0d3743f70baab2bb2cc439f1c37630ca2 Mon Sep 17 00:00:00 2001 From: Eshel Yaron Date: Mon, 25 Dec 2023 12:07:48 +0100 Subject: [PATCH] ; Respect 'completion-boundaries' in 'completions-auto-update' * lisp/minibuffer.el (minibuffer-regexp-mode): Use new helper function 'minibuffer--completion-help' to compute completion boundaries. --- lisp/minibuffer.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el index 5a3a0f89652..583536585dd 100644 --- a/lisp/minibuffer.el +++ b/lisp/minibuffer.el @@ -5332,7 +5332,8 @@ This applies to `completions-auto-update-mode', which see." (when (get-buffer-window "*Completions*" 0) (if completion-in-region-mode (completion-help-at-point) - (minibuffer-completion-help))) + (let ((beg-end (minibuffer--completion-boundaries))) + (minibuffer-completion-help (car beg-end) (cdr beg-end))))) (setq completions-auto-update-timer nil)) (defun completions-auto-update-start-timer () -- 2.39.5