From xemacs-m  Sat May  3 03:01:55 1997
Received: from jagor.srce.hr (hniksic@jagor.srce.hr [161.53.2.130])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id DAA29186
	for <xemacs-beta@xemacs.org>; Sat, 3 May 1997 03:01:54 -0500 (CDT)
Received: (from hniksic@localhost)
          by jagor.srce.hr (8.8.5/8.8.4)
	  id KAA09840; Sat, 3 May 1997 10:01:51 +0200 (MET DST)
To: XEmacs Developers <xemacs-beta@xemacs.org>
Subject: Re: Why does C-x C-s kill the zmacs region?
References: <m2k9lhau1l.fsf@altair.xemacs.org>
X-Save-Project-Gutenberg: <URL:http://www.promo.net/pg/nl/pgny_nov96.html>
X-Attribution: Hrv
X-Face: Mie8:rOV<\c/~z{s.X4A{!?vY7{drJ([U]0O=W/<W*SMo/Mv:58:*_y~ki>xDi&N7XG
        KV^$k0m3Oe/)'e%3=$PCR&3ITUXH,cK>]bci&<qQ>Ff%x_>1`T(+M2Gg/fgndU%k*ft
        [(7._6e0n-V%|%'[c|q:;}td$#INd+;?!-V=c8Pqf}3J
From: Hrvoje Niksic <hniksic@srce.hr>
Date: 03 May 1997 10:01:51 +0200
In-Reply-To: Steven L Baur's message of 03 May 1997 00:33:58 -0700
Message-ID: <kigzpudm1ao.fsf@jagor.srce.hr>
Lines: 28
X-Mailer: Gnus v5.4.50/XEmacs 19.15

Steven L Baur <steve@miranova.com> writes:

> Subject says all.

All the interactive commands kill the zmacs region, unless you tell
them otherwise using the `zmacs-region-stays' variable, or the `_'
character in `interactive' form.

This patch should make `save-buffer' not kill the region, for example:

--- lisp/prim/files.el.orig	Sat May  3 09:59:48 1997
+++ lisp/prim/files.el	Sat May  3 10:00:06 1997
@@ -1957,7 +1957,7 @@
 `dired-kept-versions' controls dired's clean-directory (.) command.
 If `delete-old-versions' is nil, system will query user
  before trimming versions.  Otherwise it does it silently."
-  (interactive "p")
+  (interactive "_p")
   (let ((modp (buffer-modified-p))
 	(large (> (buffer-size) 50000))
 	(make-backup-files (or (and make-backup-files (not (eq args 0)))


-- 
Hrvoje Niksic <hniksic@srce.hr> | Student at FER Zagreb, Croatia
--------------------------------+--------------------------------
* Q: What is an experienced Emacs user?
* A: A person who wishes that the terminal had pedals.

