emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Select completions from the minibuffer


From: Ergus
Subject: Re: Select completions from the minibuffer
Date: Sun, 20 Mar 2022 23:00:22 +0100

Any way, I think that it may not be necessary to setq-local in your functions because I plan to set it to t in completions by default... it makes sense at least for completions to stay highlighted if the user changes window. Right?




On March 20, 2022 7:42:44 PM GMT+01:00, Juri Linkov <juri@linkov.net> wrote:
Actually thinking a bit more on this... You can do the same just doing a
setq-local in the same command instead of a let or a window parameter...

Thanks, good idea, I confirm this works nice:

```
(defun minibuffer-next-completion (&optional n)
"Run `next-completion' from the minibuffer in its completions window."
(interactive "p")
(with-minibuffer-completions-window
(setq-local cursor-face-highlight-nonselected-window t)
(next-completion n)))
```

--
Sent from my Android device with K-9 Mail. Please excuse my brevity.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]