wolfgang@BBN.COM (09/27/89)
In GNU Emacs 18.55.1 of Wed Aug 23 1989 on sun3 (berkeley-unix)
Uncompressing a file that was unwritable fails due to the buffer
being marked as read-only.
cd $EMACS/lisp/
diff -c uncompress.el.~1~ uncompress.el
*** uncompress.el.~1~ Wed Jul 20 14:23:55 1988
--- uncompress.el Tue Sep 26 16:33:13 1989
***************
*** 6,12 ****
(set-visited-file-name
(substring buffer-file-name 0 (match-beginning 0))))
(message "Uncompressing...")
! (shell-command-on-region (point-min) (point-max) "uncompress" t)
(message "Uncompressing...done")
(set-buffer-modified-p nil)
(normal-mode))
--- 6,13 ----
(set-visited-file-name
(substring buffer-file-name 0 (match-beginning 0))))
(message "Uncompressing...")
! (let ((buffer-read-only nil))
! (shell-command-on-region (point-min) (point-max) "uncompress" t))
(message "Uncompressing...done")
---
Wolfgang Rupprecht ARPA: wolfgang@mgm.mit.edu (IP 18.82.0.114)
TEL: (703) 768-2640 UUCP: mit-eddie!mgm.mit.edu!wolfgang