* How to test if command is assigned any key by any loaded library?
@ 2024-11-03 9:52 Jean Louis
2024-11-04 5:37 ` W. Greenhouse via Users list for the GNU Emacs text editor
0 siblings, 1 reply; 8+ messages in thread
From: Jean Louis @ 2024-11-03 9:52 UTC (permalink / raw)
To: Help GNU Emacs
How to test if command is assigned any key by any loaded library?
Jean
Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns
In support of Richard M. Stallman
https://stallmansupport.org/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: How to test if command is assigned any key by any loaded library?
2024-11-03 9:52 How to test if command is assigned any key by any loaded library? Jean Louis
@ 2024-11-04 5:37 ` W. Greenhouse via Users list for the GNU Emacs text editor
2024-11-04 7:38 ` Jean Louis
0 siblings, 1 reply; 8+ messages in thread
From: W. Greenhouse via Users list for the GNU Emacs text editor @ 2024-11-04 5:37 UTC (permalink / raw)
To: help-gnu-emacs
Jean Louis <bugs@gnu.support> writes:
> How to test if command is assigned any key by any loaded library?
(where-is-internal 'some-command)
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: How to test if command is assigned any key by any loaded library?
2024-11-04 5:37 ` W. Greenhouse via Users list for the GNU Emacs text editor
@ 2024-11-04 7:38 ` Jean Louis
2024-11-04 10:07 ` Stephen Berman
0 siblings, 1 reply; 8+ messages in thread
From: Jean Louis @ 2024-11-04 7:38 UTC (permalink / raw)
To: W. Greenhouse; +Cc: help-gnu-emacs
* 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.
--
Jean
Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns
✡️🛡️ Proudly standing with Israel, a nation rooted in history and culture. Let's condemn hatred and promote understanding.
In support of Richard M. Stallman
https://stallmansupport.org/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: How to test if command is assigned any key by any loaded library?
2024-11-04 7:38 ` Jean Louis
@ 2024-11-04 10:07 ` Stephen Berman
2024-11-04 10:16 ` Stephen Berman
0 siblings, 1 reply; 8+ messages in thread
From: Stephen Berman @ 2024-11-04 10:07 UTC (permalink / raw)
To: W. Greenhouse; +Cc: help-gnu-emacs
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: How to test if command is assigned any key by any loaded library?
2024-11-04 10:07 ` Stephen Berman
@ 2024-11-04 10:16 ` Stephen Berman
2024-11-04 10:33 ` Stephen Berman
0 siblings, 1 reply; 8+ messages in thread
From: Stephen Berman @ 2024-11-04 10:16 UTC (permalink / raw)
To: W. Greenhouse; +Cc: help-gnu-emacs
On Mon, 04 Nov 2024 11:07:56 +0100 Stephen Berman <stephen.berman@gmx.net> wrote:
> 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")
Of course, there's also just `where-is':
M-x where-is RET set-mark-command
==> set-mark-command is on C-@, C-SPC
Steve Berman
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: How to test if command is assigned any key by any loaded library?
2024-11-04 10:16 ` Stephen Berman
@ 2024-11-04 10:33 ` Stephen Berman
2024-11-04 16:11 ` Jean Louis
0 siblings, 1 reply; 8+ messages in thread
From: Stephen Berman @ 2024-11-04 10:33 UTC (permalink / raw)
To: W. Greenhouse; +Cc: help-gnu-emacs
On Mon, 04 Nov 2024 11:16:32 +0100 Stephen Berman <stephen.berman@gmx.net> wrote:
> On Mon, 04 Nov 2024 11:07:56 +0100 Stephen Berman <stephen.berman@gmx.net> wrote:
>
>> 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.:
[...]
Oh, the question was about a test, not getting the key bindings. I
should read more carefully before deciding to reply...
Steve Berman
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: How to test if command is assigned any key by any loaded library?
2024-11-04 10:33 ` Stephen Berman
@ 2024-11-04 16:11 ` Jean Louis
2024-11-05 0:14 ` W. Greenhouse via Users list for the GNU Emacs text editor
0 siblings, 1 reply; 8+ messages in thread
From: Jean Louis @ 2024-11-04 16:11 UTC (permalink / raw)
To: Stephen Berman; +Cc: W. Greenhouse, help-gnu-emacs
* Stephen Berman <stephen.berman@gmx.net> [2024-11-04 13:35]:
> On Mon, 04 Nov 2024 11:16:32 +0100 Stephen Berman <stephen.berman@gmx.net> wrote:
>
> > On Mon, 04 Nov 2024 11:07:56 +0100 Stephen Berman <stephen.berman@gmx.net> wrote:
> >
> >> 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.:
> [...]
>
> Oh, the question was about a test, not getting the key bindings. I
> should read more carefully before deciding to reply...
No, not just test, question was meant to be so that it fit to your answer, thanks.
--
Jean Louis
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: How to test if command is assigned any key by any loaded library?
2024-11-04 16:11 ` Jean Louis
@ 2024-11-05 0:14 ` W. Greenhouse via Users list for the GNU Emacs text editor
0 siblings, 0 replies; 8+ messages in thread
From: W. Greenhouse via Users list for the GNU Emacs text editor @ 2024-11-05 0:14 UTC (permalink / raw)
To: help-gnu-emacs
Jean Louis <bugs@gnu.support> writes:
> * Stephen Berman <stephen.berman@gmx.net> [2024-11-04 13:35]:
>> On Mon, 04 Nov 2024 11:16:32 +0100 Stephen Berman <stephen.berman@gmx.net> wrote:
>>
>> > On Mon, 04 Nov 2024 11:07:56 +0100 Stephen Berman <stephen.berman@gmx.net> wrote:
>> >
>> >> 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.:
>> [...]
>>
>> Oh, the question was about a test, not getting the key bindings. I
>> should read more carefully before deciding to reply...
>
> No, not just test, question was meant to be so that it fit to your answer, thanks.
It's not without reason that most of the body of `where-is' is dealing
with the proper formatting of keys, including all remappings. :)
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2024-11-05 0:14 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-03 9:52 How to test if command is assigned any key by any loaded library? Jean Louis
2024-11-04 5:37 ` W. Greenhouse via Users list for the GNU Emacs text editor
2024-11-04 7:38 ` Jean Louis
2024-11-04 10:07 ` Stephen Berman
2024-11-04 10:16 ` Stephen Berman
2024-11-04 10:33 ` Stephen Berman
2024-11-04 16:11 ` Jean Louis
2024-11-05 0:14 ` W. Greenhouse via Users list for the GNU Emacs text editor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).