[Top][All Lists]

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

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

From: Stefan Monnier
Subject: Re: Euro sign bound, Pound sign not bound. (Bug?)
Date: Sun, 06 May 2007 10:18:24 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux)

> The following strikes me as strange:

> (key-binding "€") ;; (Euro character) returns 'self-insert-command, but
> (key-binding "£") ;; (Pound character) returns nil

> Is this a bug?

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)))
   (let ((str "£"))
     (list (multibyte-string-p str) (string-to-char str) (key-binding str)))

-- Stefan

reply via email to

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