home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.emacs
- Path: sparky!uunet!math.fu-berlin.de!pbinfo!joost
- From: joost@cadlab.de (Michael Joosten)
- Subject: Re: setting up function key for X windows Gnu emacs?
- In-Reply-To: pd@x.co.uk's message of 4 Sep 92 12:10:57 GMT
- Message-ID: <JOOST.92Sep5170428@ori.cadlab.de>
- Sender: news@uni-paderborn.de (News Uni-Paderborn)
- Nntp-Posting-Host: ori.cadlab.uni-paderborn.de
- Reply-To: joost@cadlab.uni-paderborn.de
- Organization: CADLAB, Paderborn, FRG
- References: <1992Sep1.222158.7993@ccu1.aukuni.ac.nz> <HARDY.92Sep1214404@golem.ps.uci.edu>
- <ALANB.92Sep2114728@sdlhpp2.sdl.mdcbbs.com>
- <PD.92Sep4121057@herts.x.co.uk>
- Date: Sat, 5 Sep 1992 16:04:28 GMT
- Lines: 63
-
- In article <PD.92Sep4121057@herts.x.co.uk> pd@x.co.uk (Paul Davey) writes:
-
- What would be useful would be a display (type) dependant mapping, so
- that you can have different bindings for function keys on different
- displays.
-
- Then bindings could be specified in a directory of .el files called
- lisp/display (cf lisp/term).
-
- We might have
-
- ncd.el
- sunk4.el
- sunk3.el
- hp.el
- etc.
-
- A local database could map display name to display type.
-
- Maybe V19 has something like this?
-
- A few weeks ago I made some experiments in order to achieve that automatic
- function key mapping. I'm currently using emacs-18.58 (hacked with epoch's
- rebind-key), epoch-4.0 and Lucid Emacs 19.2.
-
- The big show-stopper is that X11 doesn't reveal you the sort of keyboard your
- machine has. Sure, you could query the vendor-string in the Display structure,
- but that doesn't give you much if you're using a plain MIT server (as wee do
- it on Suns and Apollo DNs). The only way I think is to have a server-specific
- .xsession or .xinitrc, which loads a special resource via xrdb in the server's
- database. (say: *KeyboardType: Sun4) Then you could query the 'rdb' in Lucid-Emacs
- (x-get-resource "keyboardType" "KeyboardType" 'string) or epoch (epoch::get-default
- "KeyboardType"). Since plain emacs-18 has no way to extract X11 resources in
- EmacsLisp, you would have to hack 'just another trick' in the sources. All
- pretty nasty and unelegant....
-
- I posted this idea on help-lucid-emacs, and the answer I got from Jamie
- Zawinski (one of Lucid's emacs hackers and author of a program called
- "xkeycaps" that tries to "guess" what keyboard you have (it's a front-end for
- xmodmap and really nice, too)) showed his opinion about the whole keyboard
- concept of X11: "Add this to the list of Really Stupid Things that X Left
- Out." plus a few further comments about the misdesign of
- keycode/keysym/modifier, the confusion about function key names in MIT's X11R4/5
- and the vendors (Sun,HP,DEC) and so on.
-
- Sad, but true: There seems to be no good/easy way to have an automatic
- mapping. But, of course, I would like to hear if anybody has found a better
- way..
-
- Michael
-
-
-
- --
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- | Michael Joosten | Tel. : (+49) (+) 5251-284 120 |
- | CADLAB | Fax : (+49) (+) 5251-284 140 |
- | Bahnhofstr. 32 | E-Mail: joost@cadlab.de |
- | D-4790 Paderborn | ...!uunet!unido!cadlab!joost |
- | FRG | Mass mail to: joost@pbinfo.uni-paderborn.de |
- |--------------------------------------------------------------------------|
- | CADLAB is a cooperation between Uni-GH Paderborn & SNI AG |
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-