From 813069a955d07e62a97f048129b1a55234d14f50 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 bba3203ffa9..e772486cf40 100644 --- a/lisp/minibuffer.el +++ b/lisp/minibuffer.el @@ -5390,7 +5390,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.2