Path: utzoo!attcan!uunet!husc6!rutgers!mcnc!rti!talos!kjones From: kjones@talos.UUCP (Kyle Jones) Newsgroups: comp.emacs Subject: Re: Automatically uncompress files when finding them Message-ID: <356@talos.UUCP> Date: 16 Nov 88 13:50:31 GMT References: <42453@yale-celray.yale.UUCP> <2166@bucsb.UUCP> <63190@ti-csl.CSNET> Reply-To: kjones@talos.UUCP (Kyle Jones) Organization: Philip Morris Research Center, Richmond, VA Lines: 17 In article <63190@ti-csl.CSNET> pf@csc.ti.com (Paul Fuqua) writes: [re: uncompress.el] >I use it, and I like it, but it has trouble with write-protected files: the >buffer comes up read-only, and the uncompress barfs, leaving it empty. The >obvious first choice, binding buffer-read-only to nil around the call to >shell-command-on-region, doesn't seem to fix the problem. (let (buffer-read-only) (shell-command-on-region ...)) worked here. Perhaps you meant read-protected when you wrote write-protected above. I say this because when I tried to duplicate the error you mentioned, the buffer did not come up empty, it contained the compressed file. Oddly, the buffer was marked as modified, but there was no undo information available.