help-gnu-emacs
[Top][All Lists]
Advanced

[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 03:55:29 +0300
User-agent: Mutt/2.0 (3d08634) (2020-11-07)

* Michael Heerdegen <michael_heerdegen@web.de> [2020-12-07 03:45]:
> Jean Louis <bugs@gnu.support> writes:
> 
> > (setq tabulated-list-entries '((1 ["Something" ("Button" 'action (lambda 
> > (b) (message "Hello")) 'font-lock-face 'link 'follow-link t)])))
> 
> A quoting issue?

I cannot know if you ask me.

This works as button will show "Hello":

(insert-text-button "Button"
      'help-echo "Yes"
      'action (lambda (b) (message "Hello")))

But this does not work as how it is used in tabulated-list-mode, it
will show button but I cannot use it to activate action.

(apply 'insert-text-button "Button"
   (cdr '("Button" 'action (lambda (b) (message "Hello")))))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]