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 16:25:20 +0200

> That function works only with positions shown in some window, so why
> do you say the above makes no sense?  The implementation emulates
> display, so it must have a window to make layout decisions.
>
>> So the fix should be implemented in Fpos_visible_in_window_p.
>
> The snippet cited in the original message _was_ from
> Fpos_visible_in_window_p.  But I don't understand what kind of fix did
> you have in mind, perhaps because I don't understand how the original
> problem reported by Juri happened in the first place.

With emacs -Q put into *scratch* and evaluate via C-x c-e

(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.

martin





reply via email to

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