[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#50256: thing-at-mouse
From: |
Eli Zaretskii |
Subject: |
bug#50256: thing-at-mouse |
Date: |
Wed, 01 Sep 2021 20:54:06 +0300 |
> Cc: juri@linkov.net, larsi@gnus.org, 50256@debbugs.gnu.org
> From: martin rudalics <rudalics@gmx.at>
> 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*.
Then what is the semantics of the code snippet above, and why did you
call with-current-buffer the second time? What did you want to
accomplish, except make a point?
IOW, what kind of real-life situation needs such a code?
> (pos-visible-in-window-p nil nil t) should never return nil as it
> does in the above recipe.
Why not?
- bug#50256: thing-at-mouse, Juri Linkov, 2021/09/01
- bug#50256: thing-at-mouse, Lars Ingebrigtsen, 2021/09/01
- bug#50256: thing-at-mouse, martin rudalics, 2021/09/01
- bug#50256: thing-at-mouse, Eli Zaretskii, 2021/09/01
- bug#50256: thing-at-mouse, martin rudalics, 2021/09/01
- bug#50256: thing-at-mouse, Eli Zaretskii, 2021/09/01
- bug#50256: thing-at-mouse, martin rudalics, 2021/09/01
- bug#50256: thing-at-mouse,
Eli Zaretskii <=
- bug#50256: thing-at-mouse, Juri Linkov, 2021/09/01
- bug#50256: thing-at-mouse, Eli Zaretskii, 2021/09/01
- bug#50256: thing-at-mouse, Juri Linkov, 2021/09/02
- bug#50256: thing-at-mouse, Eli Zaretskii, 2021/09/02
- bug#50256: thing-at-mouse, Lars Ingebrigtsen, 2021/09/02
- bug#50256: thing-at-mouse, Eli Zaretskii, 2021/09/02
- bug#50256: thing-at-mouse, martin rudalics, 2021/09/02
- bug#50256: thing-at-mouse, Eli Zaretskii, 2021/09/02
- bug#50256: thing-at-mouse, Lars Ingebrigtsen, 2021/09/02
- bug#50256: thing-at-mouse, Eli Zaretskii, 2021/09/02