[GRASSLIST:6223] d.zoom not to change region

Is there any way to force d.zoom not to modify the current region?
I found the frequent changes of region by d.zoom is annoying.

Daehyok Shin

This was discussed before
http://grass.itc.it/pipermail/grass5/2002-July/003517.html
Supposedly there is d.zoom.last.sh which would solve the problem but I
can't find it on my system....

On Thu, 8 May 2003, Shin, Daehyok wrote:

Is there any way to force d.zoom not to modify the current region?
I found the frequent changes of region by d.zoom is annoying.

Daehyok Shin

I can't find the d.zoom.last.sh, either.
Any other solution?

Daehyok Shin

-----Original Message-----
From: Paul Kelly [mailto:paul-grass@stjohnspoint.co.uk]
Sent: Thursday, May 08, 2003 PM 5:12
To: Shin, Daehyok
Cc: GRASS LIST
Subject: Re: [GRASSLIST:6223] d.zoom not to change region

This was discussed before
http://grass.itc.it/pipermail/grass5/2002-July/003517.html
Supposedly there is d.zoom.last.sh which would solve the problem but I
can't find it on my system....

On Thu, 8 May 2003, Shin, Daehyok wrote:

> Is there any way to force d.zoom not to modify the current region?
> I found the frequent changes of region by d.zoom is annoying.
>
> Daehyok Shin
>
>

I can't find the d.zoom.last.sh, either.
Any other solution?

d.zoom.last.sh might just be something simple like:

#!/bin/sh
g.region save=preZoom_region
d.zoom
g.region preZoom_region
g.remove region=preZoom_region
d.redraw

Make that preZoom_region.$$ if you want to get all fancy.

good luck,
Hamish