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

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

french keyboard / encoded-kbd-mode


From: David Reitter
Subject: french keyboard / encoded-kbd-mode
Date: Sun, 7 May 2006 22:30:17 +0100

There is a problem with reducing keyboard events with certain modifiers.
E.g. in the Carbon port, set mac-option-modifier to 'meta and select a french keyboard layout.
Here, the - key (US keyboard) is normally ).

)               ->  )
S-)             ->  °   (degree sign - correct)
Opt-)   ->  M-) (correct)
S-Opt-)         ->  M-¡   (incorrect, should be M-°)

I had a look at the code, but couldn't immediately make out the culprit.

Yamamoto M. pointed out that...

(encode-coding-string "¡" 'iso-8859-1)
=> "\241"
(encode-coding-string "°" 'mac-roman)
=> "\241"

When encoded-kbd-mode is turned off, Opt-) gives the incorrect ¡.

In a similar context:

The code of ¤(0xA4) corresponds to that of § in mac-roman encoding.
So it seems that back-translation itself does work, but
encoded-kbd-mode does not translate a key input with modifiers.

If I can help debug this in some way, please let me know.




In GNU Emacs 22.0.50.3 (powerpc-apple-darwin8.6.0)
of 2006-05-07 on lucy
X server distributor `Apple Computers', version 10.4.6
configured using `configure '--enable-carbon-app''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: nil
  locale-coding-system: iso-8859-1
  default-enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
  encoded-kbd-mode: t
  tooltip-mode: t
  auto-compression-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  line-number-mode: t





reply via email to

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