[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to test if command is assigned any key by any loaded library?
From: |
Stephen Berman |
Subject: |
Re: How to test if command is assigned any key by any loaded library? |
Date: |
Mon, 04 Nov 2024 11:07:56 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
On Mon, 4 Nov 2024 10:38:57 +0300 Jean Louis <bugs@gnu.support> wrote:
> * W. Greenhouse" via Users list for the GNU Emacs text editor
> <help-gnu-emacs@gnu.org> [2024-11-04 08:38]:
>> Jean Louis <bugs@gnu.support> writes:
>>
>> > How to test if command is assigned any key by any loaded library?
>>
>> (where-is-internal 'some-command)
>
> Good solution, thanks.
That answers the question but not in the most user-friendly way, e.g.:
(where-is-internal 'set-mark-command)
==> ([0] [67108896])
Compare:
(mapcar 'key-description (where-is-internal 'set-mark-command))
==> ("C-@" "C-SPC")
Steve Berman