[comp.sys.amiga] request for mg3a help

plav@cup.portal.com (Rick M Plavnicky) (09/04/90)

I've been using Mg 3a beta 4 for a few days - wow!  Nice job!  But I'm
having a few minor problems and I'm hoping that someone can help. 

Like many others, I didn't like the default operation of the backspace
key so in my startup file I used the 'bsmap-mode 1' line.  Much
better, but now I'd like to bind the DEL key to delete-char (as in
^d).  Is there any way to do this?  It's not obvious what to call DEL
when you want to bind it... 

As far as I can see, the numeric keys on the '2000 keypad are treated
the same as the numerics on the top row.  Is this true?  I was hoping
to be able to be able to independently bind the PgUp, PgDn, etc. keys
but it doesn't seem to work. 

Okay, so I'm not a purist.  I'd like to set this up the way I'm
familiar with, but if I can't I'm certainly willing to change my ways.
This Mg is fine! 

Lastly, in exchange for the help I'm sure to get, here's a
write-region command I cobbled up in ARexx.  Nothin' fancy, but it
works.  Enjoy.  Add the following lines to your startup:

	fset write-region "\^[xrexx\^Mwriteregion.mg\^M"
	global-set-key "\^xw" write-region

-----cut here -----
/* writeregion.mg - write the mg region to a file */

options results

'rexx-region' theregion

if (theregion.0 == 0) then do /* no region to write! */
  'rexx-display "no region defined"'
  exit
  end

'rexx-request "write region to file: "'
if rc~ = 0 then exit
filespec = result

if exists(filespec) then do /* filespec exists - what is it? */
  sta = statef(filespec)
  parse var sta t .
  if t == 'DIR' then do
    'rexx-display "' || filespec 'is a directory - region not written"'
    exit
    end
  else if t == 'FILE' then do
    'rexx-display "' || filespec 'already exists - region not written"'
    exit
    end
  end

if ~(open(out, filespec, 'W')) then do
  'rexx-display "could not open' filespec '- region not written"'
  exit
  end

'rexx-display "writing..."'
do i=1 to theregion.0
  writech(out, theregion.i)
  end
'rexx-display "region written to' filespec '"'
exit
-----cut here -----

/* Rick Plavnicky ...!sun!cup.portal.com!plav  -or-  plav@cup.portal.com */

mwm@raven.pa.dec.com (Mike (Real Amigas have keyboard garages) Meyer) (09/05/90)

In article <1990Aug31.163855.10790@cbnewsk.att.com> ellson@cbnewsk.att.com (john.ellson) writes:

   For example I would really like backspace to delete-backward-char instead
   of calling help  (OK, so I'm not an emacs purist :-) ).

   Could somebody tell me how to remap the backspace key please?

In general, you can't (keymaps aren't up to snuff). However...

In article <33523@cup.portal.com> plav@cup.portal.com (Rick M Plavnicky) writes:
   Like many others, I didn't like the default operation of the backspace
   key so in my startup file I used the 'bsmap-mode 1' line.  Much
   better, but now I'd like to bind the DEL key to delete-char (as in
   ^d).  Is there any way to do this?  It's not obvious what to call DEL
   when you want to bind it... 

Now you've got the same problem as John Ellison had - rebinding things
bound to mgs keymaps isn't possible. That's one of the things on the
list of things to fix before mg3 comes out non-beta.

   As far as I can see, the numeric keys on the '2000 keypad are treated
   the same as the numerics on the top row.  Is this true?

Yes, this is true. Suggestion - create an Amiga keymap that makes them
mimic the function keys instead of the numerics, and use it instead.
mg uses the system default keymap, so if you never use your keypad,
you can just isntall that keymap.

	<mike
--
The road is full of dangerous curves			Mike Meyer
And we don't want to go too fast			mwm@relay.pa.dec.com
We may not make it first				decwrl!mwm
But I know we're going to make it last.