[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#34506: 27.0.50: push-button bug with basic text-property button
From: |
Basil L. Contovounesios |
Subject: |
bug#34506: 27.0.50: push-button bug with basic text-property button |
Date: |
Mon, 18 Feb 2019 20:52:27 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Robert Weiner <rsw@gnu.org> writes:
> Thanks Eli, that is much clearer. I can work with that explanation.
>
> Your last paragraph indicates that the button API by itself could use
> some improvement. How does one obtain a button to send to button-type
> if not button-at?
You can use button-at if you want to be agnostic of the button (not
widget) type. If you're only dealing with text (not overlay) buttons,
you can avoid creating markers by passing a buffer position like (point)
directly to button-type.
If you are dealing with widgets, on the other hand, you should use
widget-at and widget-type in place of button-at and button-type,
respectively. The widget and button APIs are mutually incompatible.
--
Basil
- bug#34506: 27.0.50: push-button bug with basic text-property button, Bob Weiner, 2019/02/16
- bug#34506: 27.0.50: push-button bug with basic text-property button, Eli Zaretskii, 2019/02/17
- bug#34506: 27.0.50: push-button bug with basic text-property button, Eli Zaretskii, 2019/02/18
- bug#34506: 27.0.50: push-button bug with basic text-property button, Basil L. Contovounesios, 2019/02/19
- bug#34506: 27.0.50: push-button bug with basic text-property button, Robert Weiner, 2019/02/20
- bug#34506: 27.0.50: push-button bug with basic text-property button, Basil L. Contovounesios, 2019/02/24