[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#50256: thing-at-mouse
From: |
Juri Linkov |
Subject: |
bug#50256: thing-at-mouse |
Date: |
Thu, 02 Sep 2021 09:16:03 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) |
>> In bug#9923 'C-h m' switched to another buffer before calling
>> mouse-set-point.
>
> Then it's a bug in that command, I'd say. You assume something about
> last-input and what mouse-set-point and posn-set-point will do when
> last-input is not a click event. And that assumption turns out to be
> false. So instead of making that assumption, why not give the code a
> valid event to work with instead?
Currently event-start and event-end that use mouse-set-point and posn-set-point
create an invalid event when some code inadvertently switches the buffer.
> posn-at-point cannot work correctly when current buffer and the
> selected window's buffer are not the same, because they use display
> code which is based on that contract. If you break the contract by
> the likes of with-current-buffer, you will be lucky not to crash, let
> alone cause errors.
So the conclusion is following? There is a bug in the low-level
function, but we ask users to be careful and to take precautions
against stumbling on this bug. Then the problem is that such warning
should be documented somewhere.
- 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, 2021/09/01
- 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 <=
- 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
- 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, martin rudalics, 2021/09/02