From: Eshel Yaron Date: Mon, 25 Dec 2023 11:07:48 +0000 (+0100) Subject: ; Respect 'completion-boundaries' in 'completions-auto-update' X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=813069a955d07e62a97f048129b1a55234d14f50;p=emacs.git ; Respect 'completion-boundaries' in 'completions-auto-update' * lisp/minibuffer.el (minibuffer-regexp-mode): Use new helper function 'minibuffer--completion-help' to compute completion boundaries. --- 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 ()