[comp.sys.amiga] Help with mg3bet4

bigbroth@cathedral.cerc.wvu.wvnet.edu (James M. Coleman) (10/21/90)

I am having no luck using a startup file to set key bindings.
The command {global-set-key "/F5" scroll-up} (directly from
the docs) does nothing as far as I can tell. I am sure that the
file is being read because if I place the "describe-bindings"
command in the .mg file mg starts up with the bindings listed in half
a window. Am I doing something wrong or is "global-set-key"
not supported from a startup file? 

Thanks for any help.


Jim Coleman


*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*

  If Commodore were to come out with a shirt-pocket, 100 MIPS Amiga
  with 20 megs of memory and 1 gig of disk, and sold it for $300,
  the first thing the industry would ask is "Is it IBM compatible?".

*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*

riley@batcomputer.tn.cornell.edu (Daniel S. Riley) (10/22/90)

In article <929@babcock.cerc.wvu.wvnet.edu> bigbroth@cathedral.cerc.wvu.wvnet.edu (James M. Coleman) writes:
>I am having no luck using a startup file to set key bindings.
>The command {global-set-key "/F5" scroll-up} (directly from
>the docs) does nothing as far as I can tell.

global-set-key does work.  I have a

global-set-key "\f5" scroll-up

in my mg-startup, and it works fine (i.e., it sets the shifted down
arrow to "scroll-up".

Two things to note...it's a backslash, not a slash, and the function
key names changed since mg2.  "F1" is key "\f8", shifted "F1" is key
"\f18".

-Dan Riley (riley@theory.tn.cornell.edu, cornell!batcomputer!riley)
-Wilson Lab, Cornell University

zinkv@azu22.informatik.uni-stuttgart.de (Volker Zink) (10/24/90)

In article <1990Oct22.010009.9492@batcomputer.tn.cornell.edu> riley@batcomputer.tn.cornell.edu (Daniel S. Riley) writes:
>In article <929@babcock.cerc.wvu.wvnet.edu> bigbroth@cathedral.cerc.wvu.wvnet.edu (James M. Coleman) writes:
>>I am having no luck using a startup file to set key bindings.
>>The command {global-set-key "/F5" scroll-up} (directly from
>>the docs) does nothing as far as I can tell.
>
>global-set-key does work.  I have a
>
>global-set-key "\f5" scroll-up
>
>in my mg-startup, and it works fine (i.e., it sets the shifted down
>arrow to "scroll-up".
>
>Two things to note...it's a backslash, not a slash, and the function
>key names changed since mg2.  "F1" is key "\f8", shifted "F1" is key
>"\f18".
>
>-Dan Riley (riley@theory.tn.cornell.edu, cornell!batcomputer!riley)
>-Wilson Lab, Cornell University

For all i know the function 'global-set-key' works. But i wanted to change
the BS-key, so that it is a BS, and the DEL-key to act like a DEL and not
like BS. (The funcions are delete-char and delete-backward-char i think).
But if i try to change them i must use ascii-code if i understand the
documentation. There stands: '\n' where n is a octal number changes the
the char with this number. But \7 alters the 7-key and \007 brings an
error.

Bye...
		Volker


-- 
---------------------------------------------------------------------------
Volker Zink               Email: zinkv@azu.informatik.uni-stuttgart.dbp.de
Student                   local: zinkv@azu
Universitaet Stuttgart

mwm@raven.relay.pa.dec.com (Mike (My Watch Has Windows) Meyer) (10/25/90)

In article <5467@ifi.informatik.uni-stuttgart.de> zinkv@azu22.informatik.uni-stuttgart.de (Volker Zink) writes:

   For all i know the function 'global-set-key' works. But i wanted to change
   the BS-key, so that it is a BS, and the DEL-key to act like a DEL and not
   like BS. (The funcions are delete-char and delete-backward-char i think).
   But if i try to change them i must use ascii-code if i understand the
   documentation. There stands: '\n' where n is a octal number changes the
   the char with this number. But \7 alters the 7-key and \007 brings an
   error.

You can't remap anything bound to a keymap, which includes C-h (it's
on the "to be fixed" list). Use bsmap-mode, which toggles C-h & DEL
before mg ever sees them. It's ugly, but it works.

	<mike
--