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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: global-set-key with function taking arguments


From: Christopher Dimech
Subject: Re: global-set-key with function taking arguments
Date: Sun, 1 Nov 2020 13:28:25 +0100

> Sent: Sunday, November 01, 2020 at 1:21 PM
> From: "Emanuel Berg via Users list for the GNU Emacs text editor" 
> <help-gnu-emacs@gnu.org>
> To: help-gnu-emacs@gnu.org
> Subject: Re: global-set-key with function taking arguments
>
> Christopher Dimech wrote:
>
> > It looks to me that it is much better to define your own function
> > so then you can use describe-key.
>
> ... you mean `describe-function'?

No.  I mean describe-key.  If you try describe-key for a key binding
you are not going to get useful documentation with an anonymous function.
But I might be mistaken.  May one include documentation string for
lambda ()?

>
> AND if it is a function you can also invoke it with M-x, from Lisp,
> or even from other keybindings.
>
> --
> underground experts united
> http://user.it.uu.se/~embe8573
> https://dataswamp.org/~incal
>
>
>



reply via email to

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