From: Lars Ingebrigtsen <larsi@gnus.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 52451@debbugs.gnu.org, "Braun Gábor" <braungb88@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 [thread overview]
Message-ID: <87r1afpa3g.fsf@gnus.org> (raw)
In-Reply-To: <83h7bcmzdl.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 13 Dec 2021 15:02:30 +0200")
Eli Zaretskii <eliz@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
prev parent reply other threads:[~2021-12-14 13:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-12 14:09 bug#52451: 27.1; jka-compr-write-region produces wrong type argument error Braun Gábor
2021-12-12 14:28 ` Eli Zaretskii
2021-12-12 18:53 ` Braun Gábor
2021-12-13 13:02 ` Eli Zaretskii
2021-12-14 13:52 ` Lars Ingebrigtsen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r1afpa3g.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=52451@debbugs.gnu.org \
--cc=braungb88@gmail.com \
--cc=eliz@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).