* Binding C-x 8 commands to another prefix
@ 2021-11-08 15:04 T.V Raman
2021-11-08 15:20 ` Andreas Schwab
0 siblings, 1 reply; 11+ messages in thread
From: T.V Raman @ 2021-11-08 15:04 UTC (permalink / raw)
To: emacs-devel
I'd like to use hyper-i as the alternative for C-x 8. How?
I tried this:
(global-set-key (kbd "C-; i") 'iso-transl-ctl-x-8-map)
and this works except that whereas
Describe-key for the various C-x 8 <chars> shows those keys to run
self-insert-command,
Describe-key on C-; i <chars> shows they run kbd-macro.
--
Thanks,
--Raman(I Search, I Find, I Misplace, I Research)
♉ Id: kg:/m/0285kf1 🦮
--
Thanks,
--Raman(I Search, I Find, I Misplace, I Research)
♉ Id: kg:/m/0285kf1 🦮
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Binding C-x 8 commands to another prefix
2021-11-08 15:04 Binding C-x 8 commands to another prefix T.V Raman
@ 2021-11-08 15:20 ` Andreas Schwab
2021-11-08 15:27 ` T.V Raman
0 siblings, 1 reply; 11+ messages in thread
From: Andreas Schwab @ 2021-11-08 15:20 UTC (permalink / raw)
To: T.V Raman; +Cc: emacs-devel
On Nov 08 2021, T.V Raman wrote:
> I'd like to use hyper-i as the alternative for C-x 8. How?
>
> I tried this:
>
> (global-set-key (kbd "C-; i") 'iso-transl-ctl-x-8-map)
You need to bind it in the key-translation-map.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Binding C-x 8 commands to another prefix
2021-11-08 15:20 ` Andreas Schwab
@ 2021-11-08 15:27 ` T.V Raman
2021-11-08 15:40 ` T.V Raman
0 siblings, 1 reply; 11+ messages in thread
From: T.V Raman @ 2021-11-08 15:27 UTC (permalink / raw)
To: Andreas Schwab; +Cc: emacs-devel
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=gb18030, Size: 443 bytes --]
Andreas Schwab <schwab@linux-m68k.org> writes:
Slightly better, describe-key for <prefix>! now shows
>
>> I'd like to use hyper-i as the alternative for C-x 8. How?
>>
>> I tried this:
>>
>> (global-set-key (kbd "C-; i") 'iso-transl-ctl-x-8-map)
>
> You need to bind it in the key-translation-map.
>
> Andreas.
--
Thanks,
--Raman(I Search, I Find, I Misplace, I Research)
7©4 Id: kg:/m/0285kf1 0Ü8
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Binding C-x 8 commands to another prefix
2021-11-08 15:27 ` T.V Raman
@ 2021-11-08 15:40 ` T.V Raman
2021-11-08 16:07 ` Robert Pluim
0 siblings, 1 reply; 11+ messages in thread
From: T.V Raman @ 2021-11-08 15:40 UTC (permalink / raw)
To: Andreas Schwab; +Cc: emacs-devel
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=gb18030, Size: 719 bytes --]
"T.V Raman" <raman@google.com> writes:
Also, going through key-translation-map doesn't automatically get you
everything;
for example, the new emoji commands are available under C-x 8e -- but
the <custom-prefix>e doesn't get the emoji commands.
> Andreas Schwab <schwab@linux-m68k.org> writes:
>
>
> Slightly better, describe-key for <prefix>! now shows
>
>>
>>> I'd like to use hyper-i as the alternative for C-x 8. How?
>>>
>>> I tried this:
>>>
>>> (global-set-key (kbd "C-; i") 'iso-transl-ctl-x-8-map)
>>
>> You need to bind it in the key-translation-map.
>>
>> Andreas.
--
Thanks,
--Raman(I Search, I Find, I Misplace, I Research)
7©4 Id: kg:/m/0285kf1 0Ü8
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Binding C-x 8 commands to another prefix
2021-11-08 15:40 ` T.V Raman
@ 2021-11-08 16:07 ` Robert Pluim
2021-11-08 16:19 ` Andreas Schwab
2021-11-09 3:55 ` Lars Ingebrigtsen
0 siblings, 2 replies; 11+ messages in thread
From: Robert Pluim @ 2021-11-08 16:07 UTC (permalink / raw)
To: T.V Raman; +Cc: Andreas Schwab, emacs-devel
>>>>> On Mon, 08 Nov 2021 07:40:09 -0800, "T.V Raman" <raman@google.com> said:
T> "T.V Raman" <raman@google.com> writes:
T> Also, going through key-translation-map doesn't automatically get you
T> everything;
T> for example, the new emoji commands are available under C-x 8e -- but
T> the <custom-prefix>e doesn't get the emoji commands.
Thatʼs because theyʼre in the ctl-x-map for some reason. Lars, we
could move the binding code for emojis to iso-transl.el and put the
bindings in iso-transl-ctl-x-8-map?
Robert
--
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Binding C-x 8 commands to another prefix
2021-11-08 16:07 ` Robert Pluim
@ 2021-11-08 16:19 ` Andreas Schwab
2021-11-09 3:55 ` Lars Ingebrigtsen
1 sibling, 0 replies; 11+ messages in thread
From: Andreas Schwab @ 2021-11-08 16:19 UTC (permalink / raw)
To: Robert Pluim; +Cc: emacs-devel, T.V Raman
On Nov 08 2021, Robert Pluim wrote:
> Thatʼs because theyʼre in the ctl-x-map for some reason. Lars, we
> could move the binding code for emojis to iso-transl.el and put the
> bindings in iso-transl-ctl-x-8-map?
That would be wrong, because iso-transl-ctl-x-8-map can only contain key
translations.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Binding C-x 8 commands to another prefix
2021-11-08 16:07 ` Robert Pluim
2021-11-08 16:19 ` Andreas Schwab
@ 2021-11-09 3:55 ` Lars Ingebrigtsen
2021-11-09 14:37 ` T.V Raman
1 sibling, 1 reply; 11+ messages in thread
From: Lars Ingebrigtsen @ 2021-11-09 3:55 UTC (permalink / raw)
To: Robert Pluim; +Cc: emacs-devel, Andreas Schwab, T.V Raman
Robert Pluim <rpluim@gmail.com> writes:
> Thatʼs because theyʼre in the ctl-x-map for some reason. Lars, we
> could move the binding code for emojis to iso-transl.el and put the
> bindings in iso-transl-ctl-x-8-map?
They're defined the same as `insert-char', which seems appropriate, I
think? I.e.,
(define-key ctl-x-map "8\r" 'insert-char)
(define-key ctl-x-map "8e" ...
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Binding C-x 8 commands to another prefix
2021-11-09 3:55 ` Lars Ingebrigtsen
@ 2021-11-09 14:37 ` T.V Raman
2021-11-09 23:46 ` Lars Ingebrigtsen
0 siblings, 1 reply; 11+ messages in thread
From: T.V Raman @ 2021-11-09 14:37 UTC (permalink / raw)
To: larsi; +Cc: rpluim, raman, schwab, emacs-devel
The bigger question is why ctl-x-8-map goes through
key-translation-map rather than behaving like C-x 4 and friends?Lars Ingebrigtsen writes:
> Robert Pluim <rpluim@gmail.com> writes:
>
> > Thatʼs because theyʼre in the ctl-x-map for some reason. Lars, we
> > could move the binding code for emojis to iso-transl.el and put the
> > bindings in iso-transl-ctl-x-8-map?
>
> They're defined the same as `insert-char', which seems appropriate, I
> think? I.e.,
>
> (define-key ctl-x-map "8\r" 'insert-char)
> (define-key ctl-x-map "8e" ...
>
>
> --
> (domestic pets only, the antidote for overdose, milk.)
> bloggy blog: http://lars.ingebrigtsen.no
--
Thanks,
--Raman(I Search, I Find, I Misplace, I Research)
♉ Id: kg:/m/0285kf1 🦮
--
Thanks,
--Raman(I Search, I Find, I Misplace, I Research)
♉ Id: kg:/m/0285kf1 🦮
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Binding C-x 8 commands to another prefix
2021-11-09 14:37 ` T.V Raman
@ 2021-11-09 23:46 ` Lars Ingebrigtsen
2021-11-10 2:26 ` T.V Raman
2021-11-11 3:39 ` Richard Stallman
0 siblings, 2 replies; 11+ messages in thread
From: Lars Ingebrigtsen @ 2021-11-09 23:46 UTC (permalink / raw)
To: T.V Raman; +Cc: rpluim, schwab, emacs-devel
"T.V Raman" <raman@google.com> writes:
> The bigger question is why ctl-x-8-map goes through
> key-translation-map rather than behaving like C-x 4 and friends?
Hm... it's this bit, I guess?
(define-key key-translation-map "\C-x8" iso-transl-ctl-x-8-map)
Hm... I don't know? Anybody?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Binding C-x 8 commands to another prefix
2021-11-09 23:46 ` Lars Ingebrigtsen
@ 2021-11-10 2:26 ` T.V Raman
2021-11-11 3:39 ` Richard Stallman
1 sibling, 0 replies; 11+ messages in thread
From: T.V Raman @ 2021-11-10 2:26 UTC (permalink / raw)
To: larsi; +Cc: raman, rpluim, schwab, emacs-devel
yes, this is it -- wonder why it is so:-)
Likely legacy from way back
Lars Ingebrigtsen writes:
> "T.V Raman" <raman@google.com> writes:
>
> > The bigger question is why ctl-x-8-map goes through
> > key-translation-map rather than behaving like C-x 4 and friends?
>
> Hm... it's this bit, I guess?
>
> (define-key key-translation-map "\C-x8" iso-transl-ctl-x-8-map)
>
> Hm... I don't know? Anybody?
>
> --
> (domestic pets only, the antidote for overdose, milk.)
> bloggy blog: http://lars.ingebrigtsen.no
--
Thanks,
--Raman(I Search, I Find, I Misplace, I Research)
♉ Id: kg:/m/0285kf1 🦮
--
Thanks,
--Raman(I Search, I Find, I Misplace, I Research)
♉ Id: kg:/m/0285kf1 🦮
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Binding C-x 8 commands to another prefix
2021-11-09 23:46 ` Lars Ingebrigtsen
2021-11-10 2:26 ` T.V Raman
@ 2021-11-11 3:39 ` Richard Stallman
1 sibling, 0 replies; 11+ messages in thread
From: Richard Stallman @ 2021-11-11 3:39 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: rpluim, emacs-devel, schwab, raman
[[[ To any NSA and FBI agents reading my email: please consider ]]]
[[[ whether defending the US Constitution against all enemies, ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]
> > The bigger question is why ctl-x-8-map goes through
> > key-translation-map rather than behaving like C-x 4 and friends?
The motive may be so that it will work inside incremental search.
--
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2021-11-11 3:39 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-08 15:04 Binding C-x 8 commands to another prefix T.V Raman
2021-11-08 15:20 ` Andreas Schwab
2021-11-08 15:27 ` T.V Raman
2021-11-08 15:40 ` T.V Raman
2021-11-08 16:07 ` Robert Pluim
2021-11-08 16:19 ` Andreas Schwab
2021-11-09 3:55 ` Lars Ingebrigtsen
2021-11-09 14:37 ` T.V Raman
2021-11-09 23:46 ` Lars Ingebrigtsen
2021-11-10 2:26 ` T.V Raman
2021-11-11 3:39 ` Richard Stallman
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).