[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tabulated-list-mode: how to activate button?
From: |
Jean Louis |
Subject: |
Re: tabulated-list-mode: how to activate button? |
Date: |
Mon, 7 Dec 2020 04:16:27 +0300 |
User-agent: |
Mutt/2.0 (3d08634) (2020-11-07) |
* Michael Heerdegen <michael_heerdegen@web.de> [2020-12-07 04:08]:
> Jean Louis <bugs@gnu.support> writes:
>
> > (apply 'insert-text-button "Button"
> > (cdr '("Button" 'action (lambda (b) (message "Hello")))))
>
> I mean, do you want/need the doubled quoting of `action` here, for
> example (also the lambda should probably not be quoted)?
How do you mean double quoting?
This is how it is in source, similar:
(setq args '("Button" 'action (lambda (b) (message (emacs-uptime)))))
Then apply receives it so like below, it creates button but function
is not working.
(apply 'insert-text-button "Button" (car args))