GNU bug report logs -
#68801
30.0.50; minibuffer-visible-completions=t makes RET in completion-in-region a no-op with nothing selected
Previous Next
Reported by: Spencer Baugh <sbaugh <at> janestreet.com>
Date: Mon, 29 Jan 2024 18:51:02 UTC
Severity: normal
Fixed in version 30.0.50
Done: Juri Linkov <juri <at> linkov.net>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> I found selecting first-completion in the minibuffer to be annoying, so
> now I'm trying with the following instead (which also fixes the
> highlight to actually be shown):
>
> (defun minibuffer-cir-first-completion ()
> "Move point to the first completion in the *Completions* window."
> (when completion-in-region-mode
> (with-selected-window (get-buffer-window standard-output 0)
> (when completions-highlight-face
> (setq-local cursor-face-highlight-nonselected-window t))
> (first-completion))))
> (add-hook 'completion-setup-hook #'minibuffer-cir-first-completion 90)
I noticed the problem with highlighting in your previous patch too.
Although I'm not sure why 'first-completion' didn't update
the highlighting in your previous patch. 'completion-setup-function'
enables 'completions-highlight':
;; Maybe enable cursor completions-highlight.
(when completions-highlight-face
(cursor-face-highlight-mode 1))
before you called 'first-completion' at the end of 'completion-setup-function'.
This bug report was last modified 1 year and 69 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.