From xemacs-m  Thu Sep  4 15:46:38 1997
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by xemacs.org (8.8.5/8.8.5) with SMTP id PAA08111
	for <xemacs-beta@xemacs.org>; Thu, 4 Sep 1997 15:46:38 -0500 (CDT)
Received: from Eng.Sun.COM ([129.146.1.25]) by mercury.Sun.COM (SMI-8.6/mail.byaddr) with SMTP id NAA25811; Thu, 4 Sep 1997 13:45:16 -0700
Received: from kindra.eng.sun.com by Eng.Sun.COM (SMI-8.6/SMI-5.3)
	id NAA08874; Thu, 4 Sep 1997 13:45:10 -0700
Received: from xemacs.eng.sun.com by kindra.eng.sun.com (SMI-8.6/SMI-SVR4)
	id NAA24024; Thu, 4 Sep 1997 13:45:10 -0700
Received: by xemacs.eng.sun.com (SMI-8.6/SMI-SVR4)
	id NAA21444; Thu, 4 Sep 1997 13:45:10 -0700
Date: Thu, 4 Sep 1997 13:45:10 -0700
Message-Id: <199709042045.NAA21444@xemacs.eng.sun.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
From: Martin Buchholz <mrb@Eng.Sun.COM>
To: Jan Vroonhof <vroonhof@math.ethz.ch>
Cc: xemacs-beta@xemacs.org
Subject: x-compose weirdness in Kyiv
In-Reply-To: <by3enlwkd0.fsf@midget.math.ethz.ch>
References: <by3enlwkd0.fsf@midget.math.ethz.ch>
X-Mailer: VM 6.33 under 20.3 "Vienna" XEmacs  Lucid (beta14)
Reply-To: Martin Buchholz <mrb@Eng.Sun.COM>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by xemacs.org id PAA08112

>>>>> "Jan" == Jan Vroonhof <vroonhof@math.ethz.ch> writes:

Jan> xmodmap -e "keycode 95 = dead_circumflex" (used to be F11)

Jan> there were no errors and "F11 a" now gave  as it should.

Jan> Filed up kyiv again:

Jan> Now typing "F11" gives "dead_circumflex not defined" :-(

Jan> Here is where the trouble starts:

Jan> I tried to investigate and tried

Jan> (x-keysym-on-keyboard-p "dead_circumflex")
Jan> nil

Jan> :-(

Jan> and now for the grand finale:

Jan> (x-valid-keysym-name-p "dead_circumflex")
Jan> nil

Jan> :-(


Jan> Jan

Jan> P.S. I tried debugging the C code of the function but it seems gcc has
Jan> optimized some intermediate variables away (at least gdb couldn't find
Jan> them) which makes it difficult.

Jan> P.P.S. XK_dead_cirumflex is in X11/keysyms.h


Sounds like a "-" vs "_" problem.

From lisp/x11/x-init.el:


  ;; Xfree86 seems to use lower case and a hyphen
  (when (x-valid-keysym-name-p "dead-acute")
    (x-define-dead-key dead-acute		compose-acute-map)
    (x-define-dead-key dead-grave		compose-grave-map)
    (x-define-dead-key dead-cedilla		compose-cedilla-map)
    (x-define-dead-key dead-diaeresis		compose-diaeresis-map)
    (x-define-dead-key dead-circum		compose-circumflex-map)
    (x-define-dead-key dead-tilde		compose-tilde-map))

  ;;  and AIX uses underscore, sigh....
  (when (x-valid-keysym-name-p "dead_acute")
    (x-define-dead-key dead_acute		compose-acute-map)
    (x-define-dead-key dead_grave		compose-grave-map)
    (x-define-dead-key dead_cedilla		compose-cedilla-map)
    (x-define-dead-key dead_diaeresis		compose-diaeresis-map)
    (x-define-dead-key dead_circum		compose-circumflex-map)
    (x-define-dead-key dead_tilde		compose-tilde-map))

Martin

