[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 08:46:21 +0300 |
User-agent: |
Mutt/2.0 (3d08634) (2020-11-07) |
* Drew Adams <drew.adams@oracle.com> [2020-12-07 05:26]:
> > > 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?
>
> I answered in the bug #45090 thread. You are passing a list
> by quoting it. Nothing is trying to _evaluate_ things inside
> that list - it's inappropriate to quote them. This applies
> to symbol `action', the lambda form, and the other symbols:
> `font-lock-face', `link', `follow-link', and `t'.
>
> (setq tabulated-list-entries
> '((1 ["Something"
> ("Button"
> action (lambda (b) (message "Hello"))
> font-lock-face link
> follow-link t)])))
Thank you, now I know why. Confusion came from interpreting (wrongly
probaly) other code.
This gave me problem yesterday and I am glad there is solution!