* Re: Euro sign bound, Pound sign not bound. (Bug?)
[not found] <48757C73-0262-43AC-B2CB-84ECA7642727@gmail.com>
@ 2007-05-04 21:17 ` Richard Stallman
2007-05-05 6:57 ` David Reitter
0 siblings, 1 reply; 4+ messages in thread
From: Richard Stallman @ 2007-05-04 21:17 UTC (permalink / raw)
To: David Reitter; +Cc: handa, emacs-devel
The following strikes me as strange:
(key-binding "=80") ;; (Euro character) returns 'self-insert-command, =
but
(key-binding "=A3") ;; (Pound character) returns nil
Is this a bug?
Maybe. Can you type these two characters on your keyboard?
If so, what happens? Do they insert themselves?
I note that these two characters came out in different character sets
in my Rmail buffer:
character: £ (2211, #o4243, #x8a3, U+00A3)
character: ⬠(342604, #o1235114, #x53a4c, U+20AC)
I am not sure why that happened. Handa, can you clear this up?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Euro sign bound, Pound sign not bound. (Bug?)
2007-05-04 21:17 ` Euro sign bound, Pound sign not bound. (Bug?) Richard Stallman
@ 2007-05-05 6:57 ` David Reitter
2007-05-05 7:14 ` Eli Zaretskii
2007-05-05 23:19 ` Richard Stallman
0 siblings, 2 replies; 4+ messages in thread
From: David Reitter @ 2007-05-05 6:57 UTC (permalink / raw)
To: emacs- devel
On 4 May 2007, at 22:17, Richard Stallman wrote:
> The following strikes me as strange:
>
> (key-binding "=80") ;; (Euro character) returns 'self-insert-
> command, =
> but
> (key-binding "=A3") ;; (Pound character) returns nil
>
> Is this a bug?
>
> Maybe. Can you type these two characters on your keyboard?
Yes.
> If so, what happens? Do they insert themselves?
Yes.
C-h k tells me, for both of them, that they are bound to `self-insert-
command'.
The character descriptions are as follows:
Euro sign:
character: € (342604, #o1235114, #x53a4c, U+20AC)
charset: mule-unicode-0100-24ff
(Unicode characters of the range U+0100..U+24FF.)
code point: #x74 #x4C
syntax: w which means: word
buffer code: #x9C #xF4 #xF4 #xCC
file code: not encodable by coding system nil
Pound sign:
character: £ (2211, #o4243, #x8a3, U+00A3)
charset: latin-iso8859-1
(Right-Hand Part of Latin Alphabet 1 (ISO/IEC 8859-1): ISO-
IR-100.)
code point: #x23
syntax: w which means: word
category: l:Latin
buffer code: #x81 #xA3
file code: not encodable by coding system nil
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Euro sign bound, Pound sign not bound. (Bug?)
2007-05-05 6:57 ` David Reitter
@ 2007-05-05 7:14 ` Eli Zaretskii
2007-05-05 23:19 ` Richard Stallman
1 sibling, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2007-05-05 7:14 UTC (permalink / raw)
To: David Reitter; +Cc: emacs-devel
> From: David Reitter <david.reitter@gmail.com>
> Date: Sat, 5 May 2007 07:57:59 +0100
>
> On 4 May 2007, at 22:17, Richard Stallman wrote:
>
> > The following strikes me as strange:
> >
> > (key-binding "=80") ;; (Euro character) returns 'self-insert-
> > command, =
> > but
> > (key-binding "=A3") ;; (Pound character) returns nil
> >
> > Is this a bug?
> >
> > Maybe. Can you type these two characters on your keyboard?
>
> Yes.
>
> > If so, what happens? Do they insert themselves?
>
> Yes.
>
> C-h k tells me, for both of them, that they are bound to `self-insert-
> command'.
Yes, but what gets inserted is not A3 hex. Observe:
> Pound sign:
> character: £ (2211, #o4243, #x8a3, U+00A3)
> [...]
> buffer code: #x81 #xA3
So as you see, that character is 8A3 hex, not A3 hex. The latter is
its Latin-1 encoding, but inside Emacs it is known under a different
code.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Euro sign bound, Pound sign not bound. (Bug?)
2007-05-05 6:57 ` David Reitter
2007-05-05 7:14 ` Eli Zaretskii
@ 2007-05-05 23:19 ` Richard Stallman
1 sibling, 0 replies; 4+ messages in thread
From: Richard Stallman @ 2007-05-05 23:19 UTC (permalink / raw)
To: David Reitter; +Cc: emacs-devel
> If so, what happens? Do they insert themselves?
Yes.
C-h k tells me, for both of them, that they are bound to `self-insert-
command'.
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?
You could try typing the euro sign and stepping thru the code in
read_key_sequence, to see where it gets the binding from.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-05-05 23:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <48757C73-0262-43AC-B2CB-84ECA7642727@gmail.com>
2007-05-04 21:17 ` Euro sign bound, Pound sign not bound. (Bug?) Richard Stallman
2007-05-05 6:57 ` David Reitter
2007-05-05 7:14 ` Eli Zaretskii
2007-05-05 23:19 ` 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).