[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Button that has different actions
From: |
Michael Heerdegen |
Subject: |
Re: Button that has different actions |
Date: |
Thu, 26 Dec 2013 13:05:27 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Drew Adams <drew.adams@oracle.com> writes:
> What you can perhaps do as a workaround is to bind a single
> command to a button click, and have that command test the event
> that lead to the command invocation and then dispatch different
> behaviors depending on the event characteristics.
Or try with the `keymap' button property.
BTW, you don't need to use the button.el library to create buttons. See
(info "(elisp) Clickable Text")
Regards,
Michael.