Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!hsdndev!bbn.com!gateway!CUNYVM.CUNY.EDU!Debande%smd.ucl.ac.be From: Debande%smd.ucl.ac.be@CUNYVM.CUNY.EDU ("B. Debande") Newsgroups: comp.emacs Subject: strange behavior of ALT-graph key on SUN Type4-KBD Message-ID: <4701@archive.BBN.COM> Date: 19 Feb 91 18:36:30 GMT Sender: news@bbn.com Organization: BBN news/mail gateway Lines: 44 Hello all, This is a strange and very annoying problem. The machine : I'm running GNU emacs 18.57 on a SUN-IPC / SUNOS 4.1 with a type 4 Keyboard (european settings), all under Xwindows (X11R4) twm. The problem : On my keyboard, some characters as @ # must be issued by pushing a modifier key + another key. I had to set the Alt-graph (keycode = 126, keysym = Mode_switch) as modifier mod1 with xmodmap, so typing Alt_graph + '-' gives '#', and so on. All runs well except in emacs ! There, the Alt-graph key produces the sequence [[-1z , so I can't issue @ # .... What I've already done : I tried to map [[-1z to 'ignore-key : I works but I can't issue my @ # etc... As I'm not (yet) a lisp hacker, I stayed there. I don't know if there is a function that allow combining keys to produce an effect. I tried to map another key to the Mode_switch, but unfortunately the new key mapped to Mode_switch produces the ]]-1z .... So I suppose that somewhere in emacs the keysym Mode_switch is mapped to ]]-1z . The question : Can someone help me ? -- =============================================================================== Dr. Benoit DEBANDE E-MAIL : debande@smd.ucl.ac.be School of Medicine debande@buclln11.bitnet Catholic University of Louvain FAX : 32-2-7645322 Av. Hippocrate 50 (50.20) PHONE : 32-2-7645268 B-1200 BRUXELLES (BELGIUM) =============================================================================== Theory : it doesn't work an you know why Practice : it works an you don't know why C programming : it doesn't work and you don't know why ===============================================================================