GNU bug report logs - #52451
27.1; jka-compr-write-region produces wrong type argument error

Previous Next

Package: emacs;

Reported by: Braun Gábor <braungb88 <at> gmail.com>

Date: Sun, 12 Dec 2021 14:10:02 UTC

Severity: normal

Found in version 27.1

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 52451 <at> debbugs.gnu.org, Braun Gábor <braungb88 <at> gmail.com>
Subject: bug#52451: 27.1; jka-compr-write-region produces wrong type argument error
Date: Tue, 14 Dec 2021 14:52:35 +0100
Eli Zaretskii <eliz <at> gnu.org> writes:

>> $ echo FOO >test
>> $ gzip test
>> $ emacs -Q --batch -l jka-compr.el --eval '(let ((debug-on-error t))
>> (find-file
>> "test.gz") (write-region "foo" nil "foo.gz"))'                     
>
> I'm not sure jka-compr is for supporting such use cases.  jka-compr is
> a package for transparently visiting and editing compressed files, it
> is not supposed to provide methods for writing arbitrary compressed
> data to files that didn't exist.
>
> Does anyone else have an opinion about this?

It's certainly an odd use case, but `write-region' is documented to work
that way, so I think we should support it.  (If possible.)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 3 years and 183 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.