]> 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>
Fri, 19 Jan 2024 10:05:59 +0000 (11:05 +0100)
* lisp/minibuffer.el (minibuffer-regexp-mode): Use new helper function
'minibuffer--completion-help' to compute completion boundaries.

lisp/minibuffer.el

index bba3203ffa9727b6e1fbdcaf95d5ab484bafe424..e772486cf408f793838fed8215b3bc9fb8bd2854 100644 (file)
@@ -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 ()