[7176] in Athena Bugs

home help back first fref pref prev next nref lref last post

vax 7.2R: emacs

daemon@ATHENA.MIT.EDU (daemon@ATHENA.MIT.EDU)
Sun Feb 24 05:31:57 1991

To: bugs@ATHENA.MIT.EDU
Date: Sun, 24 Feb 91 05:31:39 EST
From: ------------------------jewell@athena.mit.edu-----------------KA2ZLZ------ <jewell@ATHENA.MIT.EDU>

System name:		walter-jon-williams
Type and version:	CVAXSTAR 7.2R (1 update(s) to same version)
Display type:		SM

What were you trying to do?
    use uncompress.el on a write protected file

What's wrong:
    it wouldn't uncompress it because it had to change the buffer
   to do so... and it was write prot...
    as a result.. it displayed an error like
   File mode specification error (buffer-read-only #(buffer filename.Z<

What should have happened:
   a viewable file should have appeared.. 

Please describe any relevant documentation references:
   well.. to fix the problem.. i took the default uncompress.el
   file (/usr/athena/lib/gnuemacs/lisp) and modified it:
  i took the line:
  (shell-command-on-region (point-min) (point-max) "uncompress" t))
and surrounded it with:
(let ((buffer-read-only nil))  ... )
.. it now appears to work fine
...(see /mit/jewell/elisp/uncompress.el)

------------------------jewell@athena.mit.edu-----------------KA2ZLZ------
Darrin Jewell | Massassachusetts Insttute of Technology | Darrin B. Jewell 
4 Ames Street |       Senior House -- Runkle 304        | 8 Thomaston Lane 
Cambridge, MA |                                         | Orchard Park, NY 
USA     02142 |  You're a person, that's good enough.   | USA   14127-2526 
(617)225-6771 |   --Elizabeth Thelen   Feb 20, 1991     | (716) 662-9440

home help back first fref pref prev next nref lref last post