GNU bug report logs - #50256
thing-at-mouse

Previous Next

Package: emacs;

Reported by: Juri Linkov <juri <at> linkov.net>

Date: Sun, 29 Aug 2021 17:44:02 UTC

Severity: normal

Tags: fixed

Fixed in version 28.0.50

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

Full log


Message #53 received at 50256 <at> debbugs.gnu.org (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 50256 <at> debbugs.gnu.org, larsi <at> gnus.org, juri <at> linkov.net
Subject: Re: 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




This bug report was last modified 3 years and 315 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.