From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#52451: 27.1; jka-compr-write-region produces wrong type argument error Date: Tue, 14 Dec 2021 14:52:35 +0100 Message-ID: <87r1afpa3g.fsf@gnus.org> References: <3230961.nYHENnkMsn@gabor> <83ilvtoq2u.fsf@gnu.org> <2994285.8uZclO0mQ2@gabor> <83h7bcmzdl.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19972"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 52451@debbugs.gnu.org, Braun =?UTF-8?Q?G=C3=A1bor?= To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 14 15:04:35 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mx8Pw-0004iz-M7 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 14 Dec 2021 15:04:32 +0100 Original-Received: from localhost ([::1]:57974 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mx8Pv-0008LL-G7 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 14 Dec 2021 09:04:31 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57752) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mx8Eo-000503-Eb for bug-gnu-emacs@gnu.org; Tue, 14 Dec 2021 08:53:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46308) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mx8Eo-0007Dl-5X for bug-gnu-emacs@gnu.org; Tue, 14 Dec 2021 08:53:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mx8Eo-00030n-14 for bug-gnu-emacs@gnu.org; Tue, 14 Dec 2021 08:53:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 14 Dec 2021 13:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52451 X-GNU-PR-Package: emacs Original-Received: via spool by 52451-submit@debbugs.gnu.org id=B52451.163948997411564 (code B ref 52451); Tue, 14 Dec 2021 13:53:01 +0000 Original-Received: (at 52451) by debbugs.gnu.org; 14 Dec 2021 13:52:54 +0000 Original-Received: from localhost ([127.0.0.1]:57854 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mx8Ef-00030S-Ty for submit@debbugs.gnu.org; Tue, 14 Dec 2021 08:52:54 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:41054) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mx8Ed-00030E-Gy for 52451@debbugs.gnu.org; Tue, 14 Dec 2021 08:52:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=6EVOk/8BNAa1SdLKKQ3CeaQyiJcIzbzPwVYN7/4fepQ=; b=G1VoaYZko4wKzt1oVJWfkvkbZK xcNDsydHfOkBDvxrQ9lrHpohsUdleDqIsyVJNdkrPmR7QgLRFp62QlIR1rPE0HsJxa7l/CeHodaki B+vsXgmXTrcYsCu2jdqqTvUkehvCWa3sOrfsr7BepEPeV7xhS1XgxbgDGYB0TZqjA+mI=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mx8ET-00012j-OH; Tue, 14 Dec 2021 14:52:44 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACVBMVEUwKCOfkID///+p RWBfAAAAAWJLR0QCZgt8ZAAAAAd0SU1FB+UMDg0zNpx72VkAAAEqSURBVCjPPZFbigUxCERLSP57 oN2PwuTfQNz/VqY0904TQk77LqF6XjVJUzM8AAh+BgZ4YUy4oeAFpomZnAfxlhtiqAeSbgEYdAUW LRLYmB8YwbAGpp4HE/LLhx5Z6nxs/h5HmF6Yk9mQcaqNBs2dJyoyYPO1OCeLeFI1ZH9gZXrFFEhm jAYtt4x+P7TkB4YpVqpXHdFQluZMVhbGhMXeB/dLj22tSl22s7zwtk3yW6Ucc/6D7NvAdfMz0RJK K9CWqEZZ9IIJhmfpSO3EoZl7NkzjBLHH1Y4SOy7kTb8K9FgN/jNvHxwxn1esgXO8zyObFHlK/phe 20oKKW4NnLHyiXhr0OqLVW3WSd6r22UHCeXefyp1rQolB48LYahdWaad9r8L4ebEvmD4A1eHPsJv VNQxAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIxLTEyLTE0VDEzOjUxOjU0KzAwOjAwWw/Y8gAAACV0 RVh0ZGF0ZTptb2RpZnkAMjAyMS0xMi0xNFQxMzo1MTo1NCswMDowMCpSYE4AAAAASUVORK5CYII= X-Now-Playing: David Bowie's _Tonight_: "Loving The Alien" In-Reply-To: <83h7bcmzdl.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 13 Dec 2021 15:02:30 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:222372 Archived-At: Eli Zaretskii 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