bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#50256: thing-at-mouse


From: martin rudalics
Subject: bug#50256: thing-at-mouse
Date: Wed, 1 Sep 2021 18:21:00 +0200

>> (progn
>>     (with-current-buffer "*Messages*"
>>       (goto-char (point-min)))
>>     (pop-to-buffer "*Messages*")
>>     (with-current-buffer "*scratch*"
>>       (pos-visible-in-window-p nil nil t)))
>>
>> This reports visibility for the position of point in *scratch* and not
>> that of the window point of the selected *Messages* window.
>
> But you've switched to *scratch* in the selected window, so why is
> that a problem?

I have only run `with-current-buffer'.  The selected window shows
*Messages*.  (pos-visible-in-window-p nil nil t) should never return
nil as it does in the above recipe.

martin





reply via email to

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