]> git.eshelyaron.com Git - emacs.git/commitdiff
; Respect 'completion-boundaries' in 'completions-auto-update'
authorEshel Yaron <me@eshelyaron.com>
Mon, 25 Dec 2023 11:07:48 +0000 (12:07 +0100)
committerEshel Yaron <me@eshelyaron.com>
Mon, 25 Dec 2023 11:07:48 +0000 (12:07 +0100)
* lisp/minibuffer.el (minibuffer-regexp-mode): Use new helper function
'minibuffer--completion-help' to compute completion boundaries.

lisp/minibuffer.el

index 5a3a0f896524eb7d1cd036bccbdd7b973e25dd17..583536585dd3aa52a74af31c9cefc98017ea5fe8 100644 (file)
@@ -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 ()