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

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

Re: double angled brackets in kbd: <<cmd>>


From: Stephen Berman
Subject: Re: double angled brackets in kbd: <<cmd>>
Date: Thu, 01 Feb 2024 10:11:48 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

On Wed, 31 Jan 2024 16:18:09 +0100 Olaf Rogalsky <olaf.rogalsky@t-online.de> 
wrote:

> Hi,
>
> while reading the definition of `key-parse' I noticed, that the `kbd'
> function converts strings enclosed in double angled brackets into a
> the key strokes for an `execute-extended-command'.
>
> (equal (kbd "<<my-command>>")
>        (kbd "M-x my-command\r"))
> -> t
>
> I wonder, what is the use-case for these double angled brackets?

They're used when editing keyboard macros, cf. this bit of the doc
string of edmacro-mode: "Double angle brackets enclose command names:
<<next-line>> is shorthand for M-x next-line RET."

Steve Berman



reply via email to

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