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: Fri, 18 Mar 2022 13:38:59 +0100

On Fri, Mar 18, 2022 at 08:35:04AM -0400, Stefan Monnier wrote:
Then from scratch try commands like (just an example):

(with-current-buffer "test"
  (right-char)
  (insert "X"))

Or similes several times...
You will see that the region is not updated.

With your above test, I do see the region being updated.

When it fails to do its job is for:

   (with-selected-window (next-window) (forward-line -1))

I.e. when the only change in that other window is that point was moved.

The redisplay does update the cursor but it fails to run
`pre-redisplay-functions` in that other window :-(


       Stefan

You are right sorry... the example code should has been:

(with-selected-window (get-buffer-window "test" 0)
  (right-char))


reply via email to

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