emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: Euro sign bound, Pound sign not bound. (Bug?)


From: David Reitter
Subject: Re: Euro sign bound, Pound sign not bound. (Bug?)
Date: Mon, 7 May 2007 13:51:11 +0100

On 6 May 2007, at 15:18, Stefan Monnier wrote:

Depends. First and foremost it depends on what are "€" and "£", since there
are many different such values, all displayed identically.  Check the
multibyteness of those strings, as well as the result of string-to- char:

   (let ((str "€"))
(list (multibyte-string-p str) (string-to-char str) (key- binding str)))

(t 342604 self-insert-command)

   (let ((str "£"))
(list (multibyte-string-p str) (string-to-char str) (key- binding str)))

(t 2211 nil)

Interestingly:

(key-binding [2211] t)  -> self-insert-command
(key-binding [342604] t)  -> self-insert-command
or generically: (key-binding (vector (string-to-char "£")) t) -> self-insert-command
(key-binding "£" t)  -> nil

So, it seems to be a problem with the string specification of the key.

Richard Stallman wrote:

I guess this means there is some other map involved, which key-binding
does not check for.  Maybe key-translation-map?  Maybe a binding for a
generic character?

Neither key is defined in `key-translation-map', and I don't know how what defines a "generic character".



reply via email to

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