[Top][All Lists]

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

Re: backtick as key

From: Yuri Khan
Subject: Re: backtick as key
Date: Thu, 28 Apr 2016 21:20:44 +0600

On Thu, Apr 28, 2016 at 3:28 PM, Andreas Röhler
<address@hidden> wrote:

> (global-set-key [(control \`)(control \})] 'ar-backticked2braced-atpt)
> sends error:
> <C-dead-grave> is undefined
> C-} is undefined

Your key marked as ` does not send the ` character immediately but is
set up as a dead key for grave accent. That is, if you follow it with
a vowel, that vowel is changed to a precomposed letter with a grave
accent. Otherwise, a ` character is produced retroactively, followed
by the character for the key you pressed next.

Dead keys are common in layouts for languages which heavily use
diacritics, such as French, and in the so-called US International
layout which is designed to let users enter letters with diacritics
from many languages while still retaining the core US layout.

Try this instead:

    (global-set-key (kbd "<C-dead-grave> C-}") 'ar-backticked2braced-atpt)

reply via email to

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