|
From: | Juri Linkov |
Subject: | bug#53910: 29.0.50; context-menu-mode breaks help in read-only buffers |
Date: | Fri, 11 Feb 2022 10:40:17 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) |
>> It was surprising that select-window invoked on the same selected window >> switches the buffer to the originally displayed window-buffer. >> Maybe Martin could explain this. > > Do you mean that > > (with-temp-buffer > (let ((buffer (current-buffer))) > (select-window (selected-window)) > (message "before %S after %S" buffer (current-buffer)))) > > is surprising? But 'select-window' only does > > In addition, make WINDOW’s buffer current and set its > buffer’s value of ‘point’ to the value of WINDOW’s ‘window-point’. > > as advertised. Or do you mean something else? Yep, this is what I meant. I expected it no-op in this case, but the documented behavior is fine.
[Prev in Thread] | Current Thread | [Next in Thread] |