[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:51:12 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Robert Weiner <rsw@gnu.org>
>> Date: Sun, 17 Feb 2019 18:46:09 -0500
>> Cc: 34506@debbugs.gnu.org
>>
>> And what about (button-type (button-at (point))) returning
>> nil when button-at returns non-nil. Both of these functions
>> operate on push-buttons as the button.el code reflects, right?
>> If so, then that should be a bug. If not, then it could use
>> some explanation.
>
> button-type requires a button as an argument, whereas button-at is
> documented to return a marker for text-buttons. So you cannot safely
> invoke button-type if the button at point might be of the text-button
> type.
Buffer positions, markers, and overlays all qualify as "buttons", so
button-type works with both text- and overlay-buttons (but not widgets).
So I'm guessing what you meant is "you cannot safely invoke button-type
if the button at point might be a widget rather than a button".
--
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