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: Juri Linkov
Subject: Re: Select completions from the minibuffer
Date: Mon, 14 Mar 2022 10:41:56 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu)

>> `M-<up>' in bug#49931 let-binds the new user option,
>> so it could let-bind completions-highlight-mode as well.
>
> Yes.

Alas, after the last commit c1ea52f4ad in the feature/completions-customs branch
this is not possible anymore.

Before this commit we were able to let-bind
`cursor-face-highlight-mode' in the new command:

```
(defun minibuffer-previous-completion (&optional n)
  "Run `previous-completion' from the minibuffer in its completions window."
  (interactive "p")
  (with-minibuffer-completions-window
    (let ((cursor-face-highlight-mode t))
      (previous-completion n))))
```

because 'redisplay--update-cursor-face-highlight' was always
presented in `pre-redisplay-functions', and the mode was checked with

  (when cursor-face-highlight-mode

But now the hook is added only when mode is enabled.



reply via email to

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