Hi Stephen,
>>>> "Stephen" == Stephen J Turnbull
<stephen(a)xemacs.org> writes:
Stephen> Caveat Emacsers. I have no idea whether this is correct
Stephen> for GNU Emacs.
As I've mentioned in a previous message, your patch caused problems on
GNU Emacs when revert-buffer was used interactively. I also couldn't
make it work with XEmacs (but that may just be stupidity on my part).
The patch below, courtesy of RMS, seems to stop the problem happening
on both GNU Emacs and XEmacs. It doesn't seem to address some of the
other issues that your patch did...
peace & happiness,
martin
--------8<---------8<-------- CUT HERE --------8<---------8<--------
From: Richard Stallman <rms(a)gnu.org>
To: Martin Schwenke <martin(a)meltin.net>
Subject: Re: Buffer corruption with jka-compr.el and revert-buffer
Date: Tue, 27 May 2003 08:45:32 -0400
This change works for me. Does it work for you?
*** jka-compr.el.~1.75.~ Tue Feb 4 06:46:00 2003
--- jka-compr.el Mon May 26 17:34:38 2003
***************
*** 573,582 ****
uncompress-args)))
(setq size (- (point) start))
(if replace
! (let* ((del-beg (point))
! (del-end (+ del-beg size)))
! (delete-region del-beg
! (min del-end (point-max)))))
(goto-char start))
(error
(if (and (eq (car error-code) 'file-error)
--- 573,579 ----
uncompress-args)))
(setq size (- (point) start))
(if replace
! (delete-region (point) (point-max)))
(goto-char start))
(error
(if (and (eq (car error-code) 'file-error)