From owner-ntemacs-users@june  Mon Sep  2 04:06:26 1996
X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil]
	[nil "Mon" " 2" "September" "1996" "12:13:32" "+0200" "Ulrich Beyer" "uli@wossolit.teles.de" nil "42" "Re: Global-set-key" "^From:" nil nil "9" nil nil nil nil]
	nil)
Received: from joker.cs.washington.edu (joker.cs.washington.edu [128.95.1.42]) by june.cs.washington.edu (8.7.5/7.2ju) with SMTP id EAA22543 for <voelker@june.cs.washington.edu>; Mon, 2 Sep 1996 04:06:26 -0700
Received: from june.cs.washington.edu (june.cs.washington.edu [128.95.1.4]) by joker.cs.washington.edu (8.6.12/7.2ws+) with ESMTP id EAA38743 for <voelker@joker.cs.washington.edu>; Mon, 2 Sep 1996 04:06:25 -0700
Received: from mail.roka.net (mail.roka.NET [194.97.3.4]) by june.cs.washington.edu (8.7.5/7.2ju) with SMTP id DAA21338 for <ntemacs-users@cs.washington.edu>; Mon, 2 Sep 1996 03:26:09 -0700
Received: from wossolit.teles.de by mail.roka.net with SMTP (PP)            id <16049-0@mail.roka.net>; Mon, 2 Sep 1996 12:25:11 +0200
Received: from egelbrut.teles.de (dhcp22)            by teles.de (5.0/TELES-MAILER-04-04-96) id AA05949;           Mon, 2 Sep 1996 12:17:47 +0000
Message-Id: <9609021217.AA05949@ teles.de>
X-Msmail-Priority: Normal
X-Priority: 3
X-Mailer: Microsoft Internet Mail 4.70.1155
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
From: Ulrich Beyer <uli@wossolit.teles.de>
To: "Howard B. Reubenstein" <hbr@mail50.mitretek.org>,         "'ntemacs-users'" <ntemacs-users@cs.washington.edu>
Cc: hbr <hbr@concept5.com>
Subject: Re: Global-set-key
Date: Mon, 2 Sep 1996 12:13:32 +0200

Hi,

A good way to carry out a global-set-key for a key whose symbol you don't
know is this:

* First perform the key assignment via M-x global-set-key <press key> <type
command name>
* Next do M-x repeat-complex-command (or C-x ESC ESC on my system)
* browse through the sequence of the last complex commands with C-p/C-n
until you find the global-set-key command. It should look like this:
	(global-set-key (quote [up]) (quote previous-line-nomark))
You may change things lile (quote [up]) to '[up] if you like.
* Move the whole command from the mini-buffer to the kill buffer (C-a C-k)
* Abort the repeat-complex-command with C-g
* Edit your .emacs file and insert the command at a proper place with C-y.

This works even on different emacsen (XEmacs) under different operating
systems.

Regards
=uli=

----------
> From: Howard B. Reubenstein <hbr@mail50.mitretek.org>
> To: 'ntemacs-users' <ntemacs-users@cs.washington.edu>
> Cc: hbr@concept5.com
> Subject: Global-set-key
> Date: Freitag, 30. August 1996 20:24
> 
> Hi,
> 
> How can I find the proper syntax for doing a global-set-key to assign
> functionality to up and down arrow keys (running under Windows 95 on a HP
> Vectra)?  C-hc calls the keys "down" and "up" but I cannot figure out how
to
> pass that to global-set-key?  Thanks.
> 
> Cheers,
> Howard
> 
> hbr@concept5.com
> 

From owner-ntemacs-users@june  Mon Sep  2 15:08:43 1996
X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil]
	[nil "Mon" " 2" "September" "1996" "14:32:00" "PDT" "George V. Reilly" "georger@microcrafts.com" nil "13" "RE: Global-set-key" "^From:" nil nil "9" nil nil nil nil]
	nil)
Received: from joker.cs.washington.edu (joker.cs.washington.edu [128.95.1.42]) by june.cs.washington.edu (8.7.5/7.2ju) with SMTP id PAA24583 for <voelker@june.cs.washington.edu>; Mon, 2 Sep 1996 15:08:43 -0700
Received: from june.cs.washington.edu (june.cs.washington.edu [128.95.1.4]) by joker.cs.washington.edu (8.6.12/7.2ws+) with ESMTP id PAA38909 for <voelker@joker.cs.washington.edu>; Mon, 2 Sep 1996 15:08:42 -0700
Received: from halcyon.com (smtp2.halcyon.com [198.137.231.18]) by june.cs.washington.edu (8.7.5/7.2ju) with SMTP id OAA22535 for <ntemacs-users@cs.washington.edu>; Mon, 2 Sep 1996 14:35:44 -0700
Received: from ms-smtp.wa.com by halcyon.com with SMTP id AA20661   (5.65c/IDA-1.4.4 for <ntemacs-users@cs.washington.edu>); Mon, 2 Sep 1996 14:35:43 -0700
Received: by ms-smtp.wa.com with Microsoft Mail 	id <322B5377@ms-smtp.wa.com>; Mon, 02 Sep 96 14:36:55 PDT
Message-Id: <322B5377@ms-smtp.wa.com>
Encoding: 13 TEXT
X-Mailer: Microsoft Mail V3.0
From: "George V. Reilly" <georger@microcrafts.com>
To: "'ntemacs-users'" <ntemacs-users@cs.washington.edu>
Subject: RE: Global-set-key
Date: Mon, 02 Sep 96 14:32:00 PDT


Uli suggests a somewhat long-winded to do a global-set-key on
a key whose symbol you don't know using M-x repeat-complex-command.

If you just want to find out the key's symbol, there's a simpler way:
hit the key, then type C-h l (M-x view-lossage).  You should
be able to figure it out from there.
 --
/George V. Reilly   <georger@microcrafts.com>   <gvr@halcyon.com>
MicroCrafts, Inc., 17371 NE 67th Ct #205, Redmond, WA 98052, USA.
Tel: +1 206/250-0014  Fax: 206/250-0100  Web: www.microcrafts.com
Vim 4 (vi clone) for NT & Windows 95: http://www.halcyon.com/gvr/
pgp fingerprint: e2 b4 83 64 11 52 21 ea  bf d8 51 c2 11 00 78 fc  

From owner-ntemacs-users@june  Wed Sep  4 07:09:32 1996
X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil]
	[nil "Wed" " 4" "September" "1996" "15:22:17" "+0200" "Ulrich Beyer" "uli@wossolit.teles.de" nil "35" "Re: Global-set-key" "^From:" nil nil "9" nil nil nil nil]
	nil)
Received: from joker.cs.washington.edu (joker.cs.washington.edu [128.95.1.42]) by june.cs.washington.edu (8.7.5/7.2ju) with SMTP id HAA11425 for <voelker@june.cs.washington.edu>; Wed, 4 Sep 1996 07:09:32 -0700
Received: from june.cs.washington.edu (june.cs.washington.edu [128.95.1.4]) by joker.cs.washington.edu (8.6.12/7.2ws+) with ESMTP id HAA16527 for <voelker@joker.cs.washington.edu>; Wed, 4 Sep 1996 07:09:29 -0700
Received: from mail.roka.net (mail.roka.NET [194.97.3.4]) by june.cs.washington.edu (8.7.5/7.2ju) with SMTP id GAA09202 for <ntemacs-users@cs.washington.edu>; Wed, 4 Sep 1996 06:25:02 -0700
Received: from wossolit.teles.de by mail.roka.net with SMTP (PP)            id <14271-0@mail.roka.net>; Wed, 4 Sep 1996 15:24:10 +0200
Received: from egelbrut.teles.de (dhcp22)            by teles.de (5.0/TELES-MAILER-04-04-96) id AA08202;           Wed, 4 Sep 1996 15:16:40 +0000
Message-Id: <9609041516.AA08202@ teles.de>
X-Msmail-Priority: Normal
X-Priority: 3
X-Mailer: Microsoft Internet Mail 4.70.1155
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
From: Ulrich Beyer <uli@wossolit.teles.de>
To: "George V. Reilly" <georger@microcrafts.com>
Cc: "'ntemacs-users'" <ntemacs-users@cs.washington.edu>
Subject: Re: Global-set-key
Date: Wed, 4 Sep 1996 15:22:17 +0200

TNX George and all the others 
  for providing some lessons in modern English to an old german computer
scientist.

But back to the main thread:
  I prefer inserting 'global-set-key's into my .emacs file the way I
described, although it seems to be 'a bit long-winded' to some of you. 

Look at this:

M-x glo<TAB>s<TAB><Return>			8 keystrokes
<up>						1 keystroke
prev<TAB>l<TAB>-n<TAB><Return>		11 keystroke
<C-x ESC ESC><S-Home><C-Insert><C-g>	6 keystroke
<S-insert>					1 keystroke
						=========
						27 keystrokes
	**Note: I use (pc-selection-mode)

Inserting 
	(global-set-key '[up] 'previous-line) 
directly into .emacs would take 43 keystrokes plus two keystrokes for C-x
C-e (eval-last-sexp) so that you don't have to restart emacs to put changes
into effect.
And this works only, if you *know* the name of the key symbol. My way only
implies that you know the position of the desired key on your keyboard, in
other words that you've got eyes and can see ;-)

Regards
=uli=
> /George V. Reilly   <georger@microcrafts.com>   <gvr@halcyon.com>
> MicroCrafts, Inc., 17371 NE 67th Ct #205, Redmond, WA 98052, USA.

Beeing some thousand miles away, I always imagined that Redmond, WA is only
populated by Microsoft ;-)

