[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Please explain to me what happens with the point!
From: |
mbork |
Subject: |
Re: Please explain to me what happens with the point! |
Date: |
Tue, 27 May 2025 19:26:02 +0200 |
On 2025-05-27, at 18:49, Joost Kremers <joostkremers@fastmail.fm> wrote:
> On Tue, May 27 2025, mbork@mbork.pl wrote:
>> What is going on here? I studied the manual chapter on "window point",
>> but I can't understand why the point in my second example seemingly does
>> not move, since the `*test*' buffer is never in the selected window.
>
> IANAEE[1] [...]
No kidding, please.
> [...], but the way I understand it is that that's the case because the
> window is visible. The manual says that "[...] deselecting a window sets
> the window's value of point from that of the buffer." So the window point
> of the window displaying `*test*` is set when you do `C-x o`, and (buffer)
> point remains where window point is.
>
> In the first part of your test, the `*test*` buffer is not displayed, so
> there is no window point, so (buffer) point can move.
Yes, I've read that too. But it never says anything about visibility,
it only says about what happens when the window is /selected/ or not --
and this one is not (apart from the very beginning, before even the
first call to my function).
Best,
--
Marcin Borkowski
https://mbork.pl
https://crimsonelevendelightpetrichor.net/