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

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

Re: Proper way to add bindings under C-x 8


From: Robert Pluim
Subject: Re: Proper way to add bindings under C-x 8
Date: Tue, 30 Nov 2021 13:39:08 +0100

>>>>> On Tue, 30 Nov 2021 12:34:28 +0100, Michael Heerdegen 
>>>>> <michael_heerdegen@web.de> said:

    Michael> Howard Melman <hmelman@gmail.com> writes:
    >> I assume this is because these emoji use some more
    >> complicated encoding since C-x = tells me it's a composed
    >> form unlike the others.  Is there a way to include these as
    >> well?  I don't really want to have to know the different way
    >> different emoji are encoded but if necessary I can. 

    Michael> I don't know anything about it.  But I can see that these card 
emojis
    Michael> are not characters - wrapped into a string you get a length of 2:

    Michael>   (length "♠️") ==> 2

    Michael> Inserting the two consecutive characters seems to work:

    Michael>   (insert ?♠ 65039)  ;; inserts ♠️

    Michael> So iso-transl-define-keys doesn't seem to be usable for this task
    Michael> indeed.

I think youʼre right. Using the global map works fine if you use the
syntax

[?♠?️]

(where thereʼs a literal U+FE0F after that second "?")

but with the iso-transl-ctl-x-8-map it always inserts only the last
element of that vector.

Robert
-- 



reply via email to

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