GNU bug report logs - #35495
27.0.50; Untarring an archive with a keyring.gpg inside

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Stefan Monnier <monnier@HIDDEN>; dated Mon, 29 Apr 2019 20:04:03 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 35495 <at> debbugs.gnu.org:


Received: (at 35495) by debbugs.gnu.org; 11 May 2019 14:10:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat May 11 10:10:47 2019
Received: from localhost ([127.0.0.1]:40752 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hPSi6-0007y2-PD
	for submit <at> debbugs.gnu.org; Sat, 11 May 2019 10:10:47 -0400
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:59133)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1hPSi5-0007xp-BC
 for 35495 <at> debbugs.gnu.org; Sat, 11 May 2019 10:10:45 -0400
Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1])
 by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id CD6A98107A;
 Sat, 11 May 2019 10:10:39 -0400 (EDT)
Received: from mail02.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 74903809F2;
 Sat, 11 May 2019 10:10:38 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1557583838;
 bh=AmC6JqsRrNqWyFsca5O+gqgNAE80Cdwb0+vZlObktLc=;
 h=From:To:Cc:Subject:References:Date:In-Reply-To:From;
 b=KsG/yIB6xr1oT6cNps9UmTmqD3Rk8vf/yckSHc7rVidMoOBBOR45xtfAF+D/MWyFB
 JjRuyDBwRIblbD53XwM2ayOyHtlXSiUDTPXssuxNlpmzCjGy6uMGGORSiNY6JV/SmL
 Fz8hwpeho46TNu7395oV2htZbtwH5wv8bvsncy+ojOYcNUUyX+bCOdw4lmjgrge9P3
 pMqqkKZOjj4gPY5jkYfmtMbK0uXFIrC8YB4MEWg0o9ov677a54VyLjoKAW+nVRTe6y
 m7GYWAcVjw25o+y2G2lOKh4D1q7s3irNHs7CZdDc70vHnmcYeVxdSXRwYN7sUHIlg5
 IT6gl9/GhIbaQ==
Received: from pastel (69-196-155-191.dsl.teksavvy.com [69.196.155.191])
 by mail02.iro.umontreal.ca (Postfix) with ESMTPSA id 0C25C12001E;
 Sat, 11 May 2019 10:10:38 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#35495: 27.0.50; Untarring an archive with a keyring.gpg inside
Message-ID: <jwv8svd6qh6.fsf-monnier+emacs@HIDDEN>
References: <jwvtveg4m1a.fsf@HIDDEN> <87imuk4m7u.fsf@HIDDEN>
 <jwvv9yktpo3.fsf-monnier+emacs@HIDDEN> <871s179qsl.fsf@HIDDEN>
 <jwvh8a3b1wh.fsf-monnier+emacs@HIDDEN> <83imuhebb4.fsf@HIDDEN>
 <jwvh8a1881y.fsf-monnier+emacs@HIDDEN> <83y33dcf9a.fsf@HIDDEN>
Date: Sat, 11 May 2019 10:10:37 -0400
In-Reply-To: <83y33dcf9a.fsf@HIDDEN> (Eli Zaretskii's message of "Sat, 11 May
 2019 16:06:09 +0300")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-SPAM-INFO: Spam detection results:  0
 ALL_TRUSTED                -1 Passed through trusted hosts only via SMTP
 BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
 DKIM_SIGNED               0.1 Message has a DKIM or DK signature,
 not necessarily valid
 DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature
 DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's
 domain
X-SPAM-LEVEL: 
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 35495
Cc: 35495 <at> debbugs.gnu.org, ueno@HIDDEN, federicotedin@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>> > It isn't clear to me how you distinguish between the file-name
>> > handlers that should and shouldn't be disabled here.
>> Each file-name handler will make that decision on its own.
> Will each handler also write code to implement that decision?

Well, the handler will execute code rather than write it, but yes,
someone will have to change jka and epa to implement this new behavior
of write-region.

> If so, we can stop being bothered by that issue.  But if someone of us
> will have to implement that decision, the question still stands,
> doesn't it?

Hmm... I think you're referring to the question of what this new
"write-region-provides-raw-file-contents" should precisely mean, so that
maintainers of file-name-handlers can decide how to implement it.

Here's one attempt: "the data provided to write-region reflects the actual
bytes that should be placed into the file rather than the data returned
by `insert-file-contents`".

Maybe another way to define it would be: "the data provided to
write-region reflects the data one would like to get from
`insert-file-contents-literally` rather than that returned by
`insert-file-contents`"

And that made me discover that we have another occurrence of the same
problem in `insert-file-contents-literally`:

    (defun insert-file-contents-literally (filename &optional visit beg end replace)
      "Like `insert-file-contents', but only reads in the file literally.
    See `insert-file-contents' for an explanation of the parameters.
    A buffer may be modified in several ways after reading into the buffer,
    due to Emacs features such as format decoding, character code
    conversion, `find-file-hook', automatic uncompression, etc.
    
    This function ensures that none of these modifications will take place."
      (let ((format-alist nil)
            (after-insert-file-functions nil)
            (coding-system-for-read 'no-conversion)
            (coding-system-for-write 'no-conversion)
            (inhibit-file-name-handlers
             ;; FIXME: Yuck!!  We should turn insert-file-contents-literally
             ;; into a file operation instead!
             (append '(jka-compr-handler image-file-handler epa-file-handler)
                     (and (eq inhibit-file-name-operation 'insert-file-contents)
                          inhibit-file-name-handlers)))
            (inhibit-file-name-operation 'insert-file-contents))
        (insert-file-contents filename visit beg end replace)))

So this FIXME suggests maybe we should introduce a new file operation
`write-region-literally`?


        Stefan





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#35495; Package emacs. Full text available.

Message received at 35495 <at> debbugs.gnu.org:


Received: (at 35495) by debbugs.gnu.org; 11 May 2019 13:06:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat May 11 09:06:30 2019
Received: from localhost ([127.0.0.1]:40053 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hPRht-0006Hr-PE
	for submit <at> debbugs.gnu.org; Sat, 11 May 2019 09:06:30 -0400
Received: from eggs.gnu.org ([209.51.188.92]:38967)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1hPRhs-0006Hf-7k
 for 35495 <at> debbugs.gnu.org; Sat, 11 May 2019 09:06:28 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:39062)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1hPRhm-0001ca-CZ; Sat, 11 May 2019 09:06:23 -0400
Received: from [176.228.60.248] (port=2518 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1hPRhe-00006v-IR; Sat, 11 May 2019 09:06:18 -0400
Date: Sat, 11 May 2019 16:06:09 +0300
Message-Id: <83y33dcf9a.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
In-reply-to: <jwvh8a1881y.fsf-monnier+emacs@HIDDEN> (message from Stefan
 Monnier on Sat, 11 May 2019 08:55:55 -0400)
Subject: Re: bug#35495: 27.0.50; Untarring an archive with a keyring.gpg inside
References: <jwvtveg4m1a.fsf@HIDDEN> <87imuk4m7u.fsf@HIDDEN>
 <jwvv9yktpo3.fsf-monnier+emacs@HIDDEN> <871s179qsl.fsf@HIDDEN>
 <jwvh8a3b1wh.fsf-monnier+emacs@HIDDEN> <83imuhebb4.fsf@HIDDEN>
 <jwvh8a1881y.fsf-monnier+emacs@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 35495
Cc: 35495 <at> debbugs.gnu.org, ueno@HIDDEN, federicotedin@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Stefan Monnier <monnier@HIDDEN>
> Cc: federicotedin@HIDDEN,  35495 <at> debbugs.gnu.org,  ueno@HIDDEN
> Date: Sat, 11 May 2019 08:55:55 -0400
> 
> > It isn't clear to me how you distinguish between the file-name
> > handlers that should and shouldn't be disabled here.
> 
> Each file-name handler will make that decision on its own.

Will each handler also write code to implement that decision?  If so,
we can stop being bothered by that issue.  But if someone of us will
have to implement that decision, the question still stands, doesn't
it?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#35495; Package emacs. Full text available.

Message received at 35495 <at> debbugs.gnu.org:


Received: (at 35495) by debbugs.gnu.org; 11 May 2019 12:56:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat May 11 08:56:05 2019
Received: from localhost ([127.0.0.1]:40045 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hPRXp-00060k-9f
	for submit <at> debbugs.gnu.org; Sat, 11 May 2019 08:56:05 -0400
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:19195)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1hPRXn-00060K-97
 for 35495 <at> debbugs.gnu.org; Sat, 11 May 2019 08:56:03 -0400
Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1])
 by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id F1A314421D4;
 Sat, 11 May 2019 08:55:57 -0400 (EDT)
Received: from mail02.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 0B1844421D1;
 Sat, 11 May 2019 08:55:57 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1557579357;
 bh=+BvK79WykkqXisnHSGdfsydu1MUx4My/u/SoJy6VSSU=;
 h=From:To:Cc:Subject:References:Date:In-Reply-To:From;
 b=aEmuo8svEaZ8gqV6VZ7xEpCTUEEXzw3sc02O7vaGU1EwjG8MPZ2wy7jPQSfebLib+
 m9cHYCNnoQZBA+79H6VpC2MV/c/vCsoEEF9bteZiRWldcc7Q0KmmJUGakz5/7oCCvx
 Qf++OTZ+6GpjjxYq9tWu6U44eRPk05ZF2YFH8txMkKvgy6lcgK8Y4KR2Y5RLpcB05S
 YY6m6kqt4hRIP1jbZ7pMYNa+He8g1p1bGZpUTSEaeRk1boteQD1YsaIiUbETwA6iAg
 gPOkI7LtzqNvt2R0e8JTLn5bvKiHbX3hO75OlQBRq0Y8yW4PSA4AbfcRO+oTIonFwW
 4SSQP+QUIAvDA==
Received: from pastel (69-196-155-191.dsl.teksavvy.com [69.196.155.191])
 by mail02.iro.umontreal.ca (Postfix) with ESMTPSA id A34AE120AC4;
 Sat, 11 May 2019 08:55:56 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#35495: 27.0.50; Untarring an archive with a keyring.gpg inside
Message-ID: <jwvh8a1881y.fsf-monnier+emacs@HIDDEN>
References: <jwvtveg4m1a.fsf@HIDDEN> <87imuk4m7u.fsf@HIDDEN>
 <jwvv9yktpo3.fsf-monnier+emacs@HIDDEN> <871s179qsl.fsf@HIDDEN>
 <jwvh8a3b1wh.fsf-monnier+emacs@HIDDEN> <83imuhebb4.fsf@HIDDEN>
Date: Sat, 11 May 2019 08:55:55 -0400
In-Reply-To: <83imuhebb4.fsf@HIDDEN> (Eli Zaretskii's message of "Sat, 11 May
 2019 09:48:31 +0300")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-SPAM-INFO: Spam detection results:  0
 ALL_TRUSTED                -1 Passed through trusted hosts only via SMTP
 BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
 DKIM_SIGNED               0.1 Message has a DKIM or DK signature,
 not necessarily valid
 DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature
 DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's
 domain
X-SPAM-LEVEL: 
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 35495
Cc: 35495 <at> debbugs.gnu.org, ueno@HIDDEN, federicotedin@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

> It isn't clear to me how you distinguish between the file-name
> handlers that should and shouldn't be disabled here.

Each file-name handler will make that decision on its own.


        Stefan





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#35495; Package emacs. Full text available.

Message received at 35495 <at> debbugs.gnu.org:


Received: (at 35495) by debbugs.gnu.org; 11 May 2019 12:55:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat May 11 08:55:03 2019
Received: from localhost ([127.0.0.1]:40039 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hPRWo-0005zB-OU
	for submit <at> debbugs.gnu.org; Sat, 11 May 2019 08:55:03 -0400
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:54897)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1hPRWm-0005yj-HQ
 for 35495 <at> debbugs.gnu.org; Sat, 11 May 2019 08:55:01 -0400
Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1])
 by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id C63C28107A;
 Sat, 11 May 2019 08:54:54 -0400 (EDT)
Received: from mail02.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 6FD6E80BB5;
 Sat, 11 May 2019 08:54:49 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1557579289;
 bh=4FdHOOSsVj0UynGyshEdU7VcVjdbmDRFeCc+pAJwn8c=;
 h=From:To:Cc:Subject:References:Date:In-Reply-To:From;
 b=GXZhvsMUc9CI3leUQFw+1DxdXiorxFsQis4Y7u1xE11PF2DhnavmsRtG2SWKyQ1u0
 GmUHGqo9eX5Umnzl3KVi+vnAkORig+C6hYDcVid1byV0b4xvJBEdQGZfGJ353yJoXi
 hL6vQFVNoMkgx6FzWLJMLYBSi07Q2k/l3RY7f52DrdQ9dC+jZCRzm9MsITn49chQlh
 S9ExLc1PLb6P11k1rhPfE31wOWx5BEcc9RbU6409wM0ZbaweLDAHnTreNJVpsuQShJ
 4Ly3axD/kFTYEK4dFAKN/mOAUXbPujOIaLgl/g43jleqs6Z3qitQPqxYDqRaCJHwnF
 pLY9C7xxSc1mQ==
Received: from pastel (69-196-155-191.dsl.teksavvy.com [69.196.155.191])
 by mail02.iro.umontreal.ca (Postfix) with ESMTPSA id 33896120B02;
 Sat, 11 May 2019 08:54:49 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Federico Tedin <federicotedin@HIDDEN>
Subject: Re: bug#35495: 27.0.50; Untarring an archive with a keyring.gpg inside
Message-ID: <jwvmujt88c7.fsf-monnier+emacs@HIDDEN>
References: <jwvtveg4m1a.fsf@HIDDEN> <87imuk4m7u.fsf@HIDDEN>
 <jwvv9yktpo3.fsf-monnier+emacs@HIDDEN> <871s179qsl.fsf@HIDDEN>
 <jwvh8a3b1wh.fsf-monnier+emacs@HIDDEN> <87tve196pi.fsf@HIDDEN>
 <jwv4l61akte.fsf-monnier+emacs@HIDDEN> <87mujt9368.fsf@HIDDEN>
 <jwvy33d92z7.fsf-monnier+emacs@HIDDEN> <87d0kp91fn.fsf@HIDDEN>
Date: Sat, 11 May 2019 08:54:47 -0400
In-Reply-To: <87d0kp91fn.fsf@HIDDEN> (Federico Tedin's message of "Fri, 10
 May 2019 23:20:44 -0300")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-SPAM-INFO: Spam detection results:  0
 ALL_TRUSTED                -1 Passed through trusted hosts only via SMTP
 BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
 DKIM_SIGNED               0.1 Message has a DKIM or DK signature,
 not necessarily valid
 DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature
 DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's
 domain
X-SPAM-LEVEL: 
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 35495
Cc: 35495 <at> debbugs.gnu.org, Daiki Ueno <ueno@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>> Instead, you should state the property you want, and then let each
>> file-name-handler decide how to handle that property.  E.g.:
>>
>>     (let ((write-region-provides-raw-file-contents t))
>>       (write-region ...))
>>
>> Of course, the problem here is that by using dynamic scoping, this var
>> will affect all write-regions that will take place during this call,
>> which might lead to more problems.
>
> I see, I hadn't realized that tar-mode still used dynamic scoping (I
> imagine converting it to lexical is a lot of work).

All files use dynamically scoped variables.  `lexical-binding` only
determines the scoping to use for those vars that aren't declared as
dynamically scoped.  The fact that tar-mode.el hasn't (yet) been
converted to use lexical-binding has no effect on the above example
(because I presume there that write-region-provides-raw-file-contents
would be a variable declared somewhere in files.el as being dynamically
scoped, like file-name-handler-alist).

>> Maybe it would be better to have it as an argument to `write-region`, or
>> to introduce a new function?
>>
>> Or maybe, not use `write-region` but `copy-file` instead (which already
>> provides the expected semantics (i.e. it doesn't (un)compress or
>> (en/de)crypt, IIUC).
>
> It looks like `copy-file` only deals with files and not buffers, so we
> would need to find a way to use it from tar-mode.

I know.  Maybe we can extend it to allow the source to be a buffer?

> Looking at the source in fileio.c, it also seems like it uses
> `find-file-name-handler` for `FILE` or `NEWNAME`, so it's possible it
> won't be useful for us.

Not sure why you think that could make it not useful.

> If we added a new argument to `write-region` like you mentioned, say
> `RAW`, could we then use symbol properties to decide whether the found
> file name handler can be used or not?

No, no: we do want the file-name-handler to be called.
We just want it to receive enough info to determine how it will do its
job (e.g. whether it needs to compress/encrypt the data or not).


        Stefan





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#35495; Package emacs. Full text available.

Message received at 35495 <at> debbugs.gnu.org:


Received: (at 35495) by debbugs.gnu.org; 11 May 2019 06:48:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat May 11 02:48:44 2019
Received: from localhost ([127.0.0.1]:39747 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hPLoK-0003GO-5A
	for submit <at> debbugs.gnu.org; Sat, 11 May 2019 02:48:44 -0400
Received: from eggs.gnu.org ([209.51.188.92]:47756)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1hPLoJ-0003GB-0B
 for 35495 <at> debbugs.gnu.org; Sat, 11 May 2019 02:48:43 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:35780)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1hPLoD-0006Gc-HH; Sat, 11 May 2019 02:48:37 -0400
Received: from [176.228.60.248] (port=2034 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1hPLoD-0000ka-0r; Sat, 11 May 2019 02:48:37 -0400
Date: Sat, 11 May 2019 09:48:31 +0300
Message-Id: <83imuhebb4.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
In-reply-to: <jwvh8a3b1wh.fsf-monnier+emacs@HIDDEN> (message from Stefan
 Monnier on Thu, 09 May 2019 20:24:02 -0400)
Subject: Re: bug#35495: 27.0.50; Untarring an archive with a keyring.gpg inside
References: <jwvtveg4m1a.fsf@HIDDEN> <87imuk4m7u.fsf@HIDDEN>
 <jwvv9yktpo3.fsf-monnier+emacs@HIDDEN> <871s179qsl.fsf@HIDDEN>
 <jwvh8a3b1wh.fsf-monnier+emacs@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 35495
Cc: 35495 <at> debbugs.gnu.org, ueno@HIDDEN, federicotedin@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Stefan Monnier <monnier@HIDDEN>
> Date: Thu, 09 May 2019 20:24:02 -0400
> Cc: 35495 <at> debbugs.gnu.org, Daiki Ueno <ueno@HIDDEN>
> 
> I think there should be a way to tell `write-region` that the content
> should be written as-is into the file (and hence override jka-compr and
> epa but not tramp).

It isn't clear to me how you distinguish between the file-name
handlers that should and shouldn't be disabled here.  I assume you are
aware that Tramp doesn't necessarily send the file's contents verbatim
over the wire?

One way of teaching find-file-name-handler to distinguish between
various handlers is to have some properties on the handlers' symbols.
Then we could bind some variable to the list of properties to filter
out "unwanted" handlers.  But we should come up with a useful list of
properties first, and for that we need a clear distinction I ask about
above.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#35495; Package emacs. Full text available.

Message received at 35495 <at> debbugs.gnu.org:


Received: (at 35495) by debbugs.gnu.org; 11 May 2019 02:20:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 10 22:20:55 2019
Received: from localhost ([127.0.0.1]:39550 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hPHd9-0004C3-IB
	for submit <at> debbugs.gnu.org; Fri, 10 May 2019 22:20:55 -0400
Received: from mail-qk1-f170.google.com ([209.85.222.170]:41651)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <federicotedin@HIDDEN>) id 1hPHd8-0004Br-9o
 for 35495 <at> debbugs.gnu.org; Fri, 10 May 2019 22:20:54 -0400
Received: by mail-qk1-f170.google.com with SMTP id g190so2771254qkf.8
 for <35495 <at> debbugs.gnu.org>; Fri, 10 May 2019 19:20:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=3udSzVPUcFtyssG6ADQP+mFKgqOxgHQxAuhlKz0YzRY=;
 b=svaWbUmzfOUm4MI2if7OHoNkhxac9/Dy9HTrmN5uuOr1jhoIuJPLL3WUORzBiH2DZn
 s/XnA4PSRk8neR6rPLnWSyqEGxHuCAHF1ZVcKTt0QwEcX4cCbUTXpVBGFct8oRIuVS3L
 gyzfcOABwGWuviGRdyXeigM6wOi3BQaC8jHMTjRyNwT1mmnYhybFQdOWI3qXwCGLCoB1
 Ntsq4j+ZoMPi0BvHvDB6a6rRKLUkBa8mDwJkG9LThcOHURoznu8eKK/+DKAaFeymikOR
 OvpzYjBam9tza2PxxQmJYrGLgaoMvjeS5XjbzLsCd9lpZ0Zi2sNWd1kJTKfQ/osWmO7V
 jRrw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=3udSzVPUcFtyssG6ADQP+mFKgqOxgHQxAuhlKz0YzRY=;
 b=MpsXM4rYtgz6yvib6vlzBHEEjizqhnoYbHaaNsoqJvWvwgP+GGs5vgoIu9QT8o484i
 H816R4QSbmOJ6Pr6SaBR9pAKuA8HburiTnNdjn4m4VoKjRDe9R3xfGTRoKsUmoFgty9e
 ++x5Id6JLauqiDyrCmkO4QrCeFYnOPQQRD7FrJ2ksuho9IvG0+3EHOjMbKRUpxCBG3gl
 JIIkvy/TliuJklDVi90KFAvCoiE5tCk1RqS7XaKwdgpCxMrvo+qFrYMI2aB/CYZO0LZQ
 cmvlXY+i5QA+cohl5lFimx/KhEmTAMSbKwqyuxQCBDBGWnbcxpl0ay7d//QqUkqSmiPl
 qb1A==
X-Gm-Message-State: APjAAAVA97eHQKS9PUUB0B7ww51JJ8wUnqYocMba/CBMntXho8qBmdlv
 tr7f5Tf2dRaTGod1ufwnBkM=
X-Google-Smtp-Source: APXvYqzEdnKz1pcVbaY74CNkVslI9hEjZaVJ0SHLazFLcweWuHc43iNHguFHRY9Jc5z760IsASbn9w==
X-Received: by 2002:a37:a5d3:: with SMTP id
 o202mr12264852qke.301.1557541247743; 
 Fri, 10 May 2019 19:20:47 -0700 (PDT)
Received: from hideo ([181.170.211.157])
 by smtp.gmail.com with ESMTPSA id k127sm3666111qkb.96.2019.05.10.19.20.45
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Fri, 10 May 2019 19:20:46 -0700 (PDT)
From: Federico Tedin <federicotedin@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#35495: 27.0.50; Untarring an archive with a keyring.gpg inside
References: <jwvtveg4m1a.fsf@HIDDEN> <87imuk4m7u.fsf@HIDDEN>
 <jwvv9yktpo3.fsf-monnier+emacs@HIDDEN> <871s179qsl.fsf@HIDDEN>
 <jwvh8a3b1wh.fsf-monnier+emacs@HIDDEN> <87tve196pi.fsf@HIDDEN>
 <jwv4l61akte.fsf-monnier+emacs@HIDDEN> <87mujt9368.fsf@HIDDEN>
 <jwvy33d92z7.fsf-monnier+emacs@HIDDEN>
Date: Fri, 10 May 2019 23:20:44 -0300
In-Reply-To: <jwvy33d92z7.fsf-monnier+emacs@HIDDEN> (Stefan Monnier's message
 of "Fri, 10 May 2019 21:54:03 -0400")
Message-ID: <87d0kp91fn.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 35495
Cc: 35495 <at> debbugs.gnu.org, Daiki Ueno <ueno@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Stefan Monnier <monnier@HIDDEN> writes:

>> I realize that in this case I'm hard-coding the specific
>> file name handlers that *can* be used.
>
> Exactly, it's no better.
>
>> I'm not sure how to express "only use these file handlers" without
>> explicitly mentioning them.
>
> Instead, you should state the property you want, and then let each
> file-name-handler decide how to handle that property.  E.g.:
>
>     (let ((write-region-provides-raw-file-contents t))
>       (write-region ...))
>
> Of course, the problem here is that by using dynamic scoping, this var
> will affect all write-regions that will take place during this call,
> which might lead to more problems.

I see, I hadn't realized that tar-mode still used dynamic scoping (I
imagine converting it to lexical is a lot of work).

> Maybe it would be better to have it as an argument to `write-region`, or
> to introduce a new function?
>
> Or maybe, not use `write-region` but `copy-file` instead (which already
> provides the expected semantics (i.e. it doesn't (un)compress or
> (en/de)crypt, IIUC).

It looks like `copy-file` only deals with files and not buffers, so we
would need to find a way to use it from tar-mode. Looking at the source
in fileio.c, it also seems like it uses `find-file-name-handler` for
`FILE` or `NEWNAME`, so it's possible it won't be useful for us.

If we added a new argument to `write-region` like you mentioned, say
`RAW`, could we then use symbol properties to decide whether the found
file name handler can be used or not? Like so:

(put 'jka-compr-handler 'provides-raw-file-contents nil)
(put 'epa-file-handler 'provides-raw-file-contents nil)

(put 'tramp-file-name-handler 'provides-raw-file-contents t)
(put 'tramp-completion-file-name-handler 'provides-raw-file-contents t)
(put 'file-name-non-special 'provides-raw-file-contents t)

The downside being that anyone adding a new file name handler must
remember to set the property to t if needed.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#35495; Package emacs. Full text available.

Message received at 35495 <at> debbugs.gnu.org:


Received: (at 35495) by debbugs.gnu.org; 11 May 2019 01:54:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 10 21:54:14 2019
Received: from localhost ([127.0.0.1]:39526 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hPHDJ-0003QT-Qg
	for submit <at> debbugs.gnu.org; Fri, 10 May 2019 21:54:14 -0400
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:27653)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1hPHDI-0003QE-2e
 for 35495 <at> debbugs.gnu.org; Fri, 10 May 2019 21:54:12 -0400
Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1])
 by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 4884581159;
 Fri, 10 May 2019 21:54:06 -0400 (EDT)
Received: from mail02.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id F28CC80BCF;
 Fri, 10 May 2019 21:54:04 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1557539645;
 bh=/LLlLT3/txKv2/bN/mrF0nrOqgkxNZynkuwQiaHfRCI=;
 h=From:To:Cc:Subject:References:Date:In-Reply-To:From;
 b=de3WpzqkicnsQY/0r8sDZEqlUPe7zKOvqpq4Fh3z8uUINBcFNkOMbNVhwIiJVMEBP
 dUD8ju0xrqlEGwTf+5/SpdLCk8k+bOGLIP/+d6i69s7poADAF3BtKb8Yojg4CS3+0Z
 EItclZPBvW38p919EkHTFTANFc5r5riKc6ZFbUd7IPhTC5L+8fbGq+c1EKlZ1iUO8y
 w8jdL+ofFi19ooq9rQgp2SGy6bZQAbHOkb6LbnMzgt5rzsc1zptOvLC6usvf3zWScQ
 ah8S8pm1J5MvfFFPPJSwJy4ncB5RDF2rFUP7e6pHCYMIkqk/GeVdyt/QEXVmhwpfc/
 xxFj6NmIKpmeA==
Received: from pastel (69-196-155-191.dsl.teksavvy.com [69.196.155.191])
 by mail02.iro.umontreal.ca (Postfix) with ESMTPSA id B2E8F120D79;
 Fri, 10 May 2019 21:54:04 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Federico Tedin <federicotedin@HIDDEN>
Subject: Re: bug#35495: 27.0.50; Untarring an archive with a keyring.gpg inside
Message-ID: <jwvy33d92z7.fsf-monnier+emacs@HIDDEN>
References: <jwvtveg4m1a.fsf@HIDDEN> <87imuk4m7u.fsf@HIDDEN>
 <jwvv9yktpo3.fsf-monnier+emacs@HIDDEN> <871s179qsl.fsf@HIDDEN>
 <jwvh8a3b1wh.fsf-monnier+emacs@HIDDEN> <87tve196pi.fsf@HIDDEN>
 <jwv4l61akte.fsf-monnier+emacs@HIDDEN> <87mujt9368.fsf@HIDDEN>
Date: Fri, 10 May 2019 21:54:03 -0400
In-Reply-To: <87mujt9368.fsf@HIDDEN> (Federico Tedin's message of "Fri, 10
 May 2019 22:43:11 -0300")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-SPAM-INFO: Spam detection results:  0
 ALL_TRUSTED                -1 Passed through trusted hosts only via SMTP
 BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
 DKIM_SIGNED               0.1 Message has a DKIM or DK signature,
 not necessarily valid
 DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature
 DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's
 domain
X-SPAM-LEVEL: 
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 35495
Cc: 35495 <at> debbugs.gnu.org, Daiki Ueno <ueno@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

> I realize that in this case I'm hard-coding the specific
> file name handlers that *can* be used.

Exactly, it's no better.

> I'm not sure how to express "only use these file handlers" without
> explicitly mentioning them.

Instead, you should state the property you want, and then let each
file-name-handler decide how to handle that property.  E.g.:

    (let ((write-region-provides-raw-file-contents t))
      (write-region ...))

Of course, the problem here is that by using dynamic scoping, this var
will affect all write-regions that will take place during this call,
which might lead to more problems.

Maybe it would be better to have it as an argument to `write-region`, or
to introduce a new function?

Or maybe, not use `write-region` but `copy-file` instead (which already
provides the expected semantics (i.e. it doesn't (un)compress or
(en/de)crypt, IIUC).


        Stefan





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#35495; Package emacs. Full text available.

Message received at 35495 <at> debbugs.gnu.org:


Received: (at 35495) by debbugs.gnu.org; 11 May 2019 01:43:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 10 21:43:21 2019
Received: from localhost ([127.0.0.1]:39516 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hPH2n-00037Q-Mj
	for submit <at> debbugs.gnu.org; Fri, 10 May 2019 21:43:21 -0400
Received: from mail-qt1-f176.google.com ([209.85.160.176]:39657)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <federicotedin@HIDDEN>) id 1hPH2m-00037F-7Y
 for 35495 <at> debbugs.gnu.org; Fri, 10 May 2019 21:43:20 -0400
Received: by mail-qt1-f176.google.com with SMTP id y42so8803768qtk.6
 for <35495 <at> debbugs.gnu.org>; Fri, 10 May 2019 18:43:20 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=Awmw5Io/wi3gtQUAA3iMAivDbmkuvK69usaV3Pjb/9w=;
 b=PxSDL7/sAkYHM3XmGqOFAA7u/kwQE0LxYFxvVttTwkpqo8BCUIk5f+PN6eWjw8T0w7
 mOJG28CaoHNr5CWtMzZCyPBloemDW9lvJ0veB+VYemPSBnqpYYMvyLbXe2fNWh4XSNER
 +saGlYoa8/akaUD0KI6qGctqE4P0LEGjwiqqr331To3CF4UAZSg2EFihE5ZtD3nsT6jg
 zutT3izm736wpwvRJownEodGXsmZuMMBbF7QizcY0+gdwKW+ZrwEt2DuSHzu5gm4oaSy
 53GZ4IY8EeBfOgspHwnhCOA0dM+xiTGAHk4hj0ItMqLEbfIf2r41V0WHErRzteajc16b
 cXKg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=Awmw5Io/wi3gtQUAA3iMAivDbmkuvK69usaV3Pjb/9w=;
 b=BJAbPekPw14r133l8F55OY+gT1jwL/3OwfwNU9F89qmGr8UynGqhkSY5mwpIIdvem0
 9jX3Nkr3TcbwfSTGfFZsbOicinfl8u+qt4n0uz9YQMHFZfraIS8XM7nLwpVyJIBpZSde
 zaClB+OgkNgdhlJ4YGUHfUydFNwJNf+TxG9FAn/eXOUClzMoDAosJTup68h6TStKPj1T
 semrRb31QuQyWFXPHdyAfW6SydVvGXco8rBmzgBjQu/xMrq/iA8EJrsdAIUrJJhtXfcu
 hNfR06CjzRSb3rgOVk+bR2H2B60fYCeFnyUsh/N15QtT4pfilE6S+uE85bTgzb8todb7
 qEwQ==
X-Gm-Message-State: APjAAAXABU+jLhCRVbY7iZUYQ5oNr1I7gzZa+hEZiWZnYPvlr07+JiNT
 +DtM94hOv2vA+SlKhUU7iVU=
X-Google-Smtp-Source: APXvYqzGarPxuDaCmmX8pfeh1A5M1O0i0CsJYB7EC8xcuupocyVsxcEdfKm5aX29nQD7/xEIDmk/gA==
X-Received: by 2002:ac8:7544:: with SMTP id b4mr12778039qtr.134.1557538994590; 
 Fri, 10 May 2019 18:43:14 -0700 (PDT)
Received: from hideo ([181.170.211.157])
 by smtp.gmail.com with ESMTPSA id p27sm4032646qte.25.2019.05.10.18.43.12
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Fri, 10 May 2019 18:43:13 -0700 (PDT)
From: Federico Tedin <federicotedin@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#35495: 27.0.50; Untarring an archive with a keyring.gpg inside
References: <jwvtveg4m1a.fsf@HIDDEN> <87imuk4m7u.fsf@HIDDEN>
 <jwvv9yktpo3.fsf-monnier+emacs@HIDDEN> <871s179qsl.fsf@HIDDEN>
 <jwvh8a3b1wh.fsf-monnier+emacs@HIDDEN> <87tve196pi.fsf@HIDDEN>
 <jwv4l61akte.fsf-monnier+emacs@HIDDEN>
Date: Fri, 10 May 2019 22:43:11 -0300
In-Reply-To: <jwv4l61akte.fsf-monnier+emacs@HIDDEN> (Stefan Monnier's message
 of "Fri, 10 May 2019 20:37:46 -0400")
Message-ID: <87mujt9368.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 35495
Cc: 35495 <at> debbugs.gnu.org, Daiki Ueno <ueno@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Stefan Monnier <monnier@HIDDEN> writes:

>> (let ((inhibit-file-name-handlers '(jka-compr-handler epa-file-handler))
>
> I don't like hard-coding a specific set of file-name-handler names.

Ok, I see. How about:

(defmacro with-literal-file-name-handlers (&rest body)
  `(let* ((allowed-file-name-handlers '(tramp-completion-file-name-handler
					tramp-file-name-handler
					file-name-non-special))
	  (file-name-handler-alist
	   (seq-filter (lambda (c) (memq (cdr c) allowed-file-name-handlers))
		       file-name-handler-alist)))
     ,@body))

I realize that in this case I'm hard-coding the specific
file name handlers that *can* be used. I'm not sure how to express "only
use these file handlers" without explicitly mentioning them. I'm also
not sure if we only care for `tramp-file-name-handler`, or for the three
I listed above.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#35495; Package emacs. Full text available.

Message received at 35495 <at> debbugs.gnu.org:


Received: (at 35495) by debbugs.gnu.org; 11 May 2019 00:37:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 10 20:37:57 2019
Received: from localhost ([127.0.0.1]:39482 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hPG1V-0001El-JI
	for submit <at> debbugs.gnu.org; Fri, 10 May 2019 20:37:57 -0400
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:36196)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1hPG1T-0001EX-2y
 for 35495 <at> debbugs.gnu.org; Fri, 10 May 2019 20:37:56 -0400
Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1])
 by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 025784421A0;
 Fri, 10 May 2019 20:37:49 -0400 (EDT)
Received: from mail02.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id D245744217C;
 Fri, 10 May 2019 20:37:47 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1557535067;
 bh=q8sMi9cmSvW8qWmakr10cOs9JJrv5RUZ49l1DUdabwM=;
 h=From:To:Cc:Subject:References:Date:In-Reply-To:From;
 b=juXowWNtSGnKm8SDfmThhE8dW2iMGljO/zhewovTMeJqJQ5KtK/rDc04qzYre5YYi
 0wajZmuEFLqbXL1fQ0eJpoMYhVJjRmpeCcESijdqbUhaiRvt0e5xl0t6quJeOOcckr
 ESXKG4xZrHjD1rH8Fb2LaidqWHzgLaUt1OBzKEJxO/euDr8bYSs1OcevYh9O6ImCN6
 yFFKPTR+99lk/lb9OcWujG0LMafA1h2tLfT3tMEaBrqe8aa+T361s3Qj3XuuquMSwS
 tW/lyzzfD6DG/3F4GUE5qPuFhWTa3akjjji0hLaT9tgVLmjhX2hqOv1xqjQtjBOM5Q
 kSR8aHdjU0hng==
Received: from pastel (69-196-155-191.dsl.teksavvy.com [69.196.155.191])
 by mail02.iro.umontreal.ca (Postfix) with ESMTPSA id A15C0120900;
 Fri, 10 May 2019 20:37:47 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Federico Tedin <federicotedin@HIDDEN>
Subject: Re: bug#35495: 27.0.50; Untarring an archive with a keyring.gpg inside
Message-ID: <jwv4l61akte.fsf-monnier+emacs@HIDDEN>
References: <jwvtveg4m1a.fsf@HIDDEN> <87imuk4m7u.fsf@HIDDEN>
 <jwvv9yktpo3.fsf-monnier+emacs@HIDDEN> <871s179qsl.fsf@HIDDEN>
 <jwvh8a3b1wh.fsf-monnier+emacs@HIDDEN> <87tve196pi.fsf@HIDDEN>
Date: Fri, 10 May 2019 20:37:46 -0400
In-Reply-To: <87tve196pi.fsf@HIDDEN> (Federico Tedin's message of "Fri, 10
 May 2019 21:26:49 -0300")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-SPAM-INFO: Spam detection results:  0
 ALL_TRUSTED                -1 Passed through trusted hosts only via SMTP
 BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
 DKIM_SIGNED               0.1 Message has a DKIM or DK signature,
 not necessarily valid
 DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature
 DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's
 domain
X-SPAM-LEVEL: 
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 35495
Cc: 35495 <at> debbugs.gnu.org, Daiki Ueno <ueno@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

> (let ((inhibit-file-name-handlers '(jka-compr-handler epa-file-handler))

I don't like hard-coding a specific set of file-name-handler names.


        Stefan





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#35495; Package emacs. Full text available.

Message received at 35495 <at> debbugs.gnu.org:


Received: (at 35495) by debbugs.gnu.org; 11 May 2019 00:27:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 10 20:27:01 2019
Received: from localhost ([127.0.0.1]:39472 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hPFqv-0000xu-Ho
	for submit <at> debbugs.gnu.org; Fri, 10 May 2019 20:27:01 -0400
Received: from mail-qt1-f170.google.com ([209.85.160.170]:38527)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <federicotedin@HIDDEN>) id 1hPFqt-0000xh-UX
 for 35495 <at> debbugs.gnu.org; Fri, 10 May 2019 20:27:00 -0400
Received: by mail-qt1-f170.google.com with SMTP id d13so1561243qth.5
 for <35495 <at> debbugs.gnu.org>; Fri, 10 May 2019 17:26:59 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=qOGEv8poJ84ZQ8jfdA21fUDFX6G1+SjqI4D9Ys3L5uI=;
 b=oHh23CEwTCY3v8Ic4HfRC1goKMedyQoKNB7lp7TXRomhunh70eeI7d3+h5yALS43TN
 o95AP4105visu2n2RhL3gUgnrx6z8SHlj11kVk37iu7CxkVtEcmJL6h2WbpKvTN9Mj44
 VUCfMuF7shdD3uv8SzqfUt2lkgIE3nvzmPXXgBaI93baB9XiBFwCdhN+C9JXFespHiJe
 04Ns5cspQmjzCG39CvdK5BMHo801JP0WcvfSLw9lQnaqQXTKOw2Gh3TNGpImmkL+8aZy
 wA9mTwjSD6vK7GgEs/0HXUXNODrrG/Pc8SgFheZALJfiEccKDDGD8lSrLfOHSceFunP8
 Yntg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=qOGEv8poJ84ZQ8jfdA21fUDFX6G1+SjqI4D9Ys3L5uI=;
 b=tteTI8TyN4LdioFsL50pGauAhbZjyYAHS8E1xuqMjHjUwVjshyZXUxcIR5/VI+HeVG
 kq9mSCDPlBNWZRLnCpWMZRjZPjz14UVtMYAYnkYvlWOWoi0IbafDmlcwOiyvUZgmw7Oc
 6T6b+OG+WFBc8aRVZMMn6bpOxQDmAw2AO+mmqkO4/XBltZi1Mfbf5YyJ5KBoafvuCkGg
 CkdHwoPQ7iKsX2s8er8bqTJJXgZ9EV3lCcc4NlmtecKTctWkYe2jQH/pSxG414bsAJ0u
 a4VdyjgTs7vdhy6ujISTQaozjAktNzb1TVkt8FGRV1ft+roGRIvUOvLjs9AtADuZ0GhY
 ALGA==
X-Gm-Message-State: APjAAAXCcudRGauiWWAzWm1WuYZkhh7ydv53x7KCmsxdE8Zj0mxM1cVB
 cUzNEdt2PVsXXKaUJ6ibvxQ=
X-Google-Smtp-Source: APXvYqylkyTcyHhF8x/c9HmNh2pJdVsGSQFwvJ6mgVUm4hGnGyOD2EYt8Jbrzhm3sRzvpFJfGFun+w==
X-Received: by 2002:aed:2314:: with SMTP id h20mr12736848qtc.24.1557534414300; 
 Fri, 10 May 2019 17:26:54 -0700 (PDT)
Received: from hideo ([181.170.211.157])
 by smtp.gmail.com with ESMTPSA id s7sm3848099qkg.70.2019.05.10.17.26.51
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Fri, 10 May 2019 17:26:52 -0700 (PDT)
From: Federico Tedin <federicotedin@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#35495: 27.0.50; Untarring an archive with a keyring.gpg inside
References: <jwvtveg4m1a.fsf@HIDDEN> <87imuk4m7u.fsf@HIDDEN>
 <jwvv9yktpo3.fsf-monnier+emacs@HIDDEN> <871s179qsl.fsf@HIDDEN>
 <jwvh8a3b1wh.fsf-monnier+emacs@HIDDEN>
Date: Fri, 10 May 2019 21:26:49 -0300
In-Reply-To: <jwvh8a3b1wh.fsf-monnier+emacs@HIDDEN> (Stefan Monnier's message
 of "Thu, 09 May 2019 20:24:02 -0400")
Message-ID: <87tve196pi.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 35495
Cc: 35495 <at> debbugs.gnu.org, Daiki Ueno <ueno@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

> I think there should be a way to tell `write-region` that the content
> should be written as-is into the file (and hence override jka-compr and
> epa but not tramp).  I don't think there is such a thing yet, tho, so
> we'll have to invent it.

Could this be achieved by doing:

(let ((inhibit-file-name-handlers '(jka-compr-handler epa-file-handler))
      (inhibit-file-name-operation 'write-region))
  ...)

or is there a reason why a specific mechanism for this is needed?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#35495; Package emacs. Full text available.

Message received at 35495 <at> debbugs.gnu.org:


Received: (at 35495) by debbugs.gnu.org; 10 May 2019 00:24:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 09 20:24:08 2019
Received: from localhost ([127.0.0.1]:36725 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hOtKa-000671-BC
	for submit <at> debbugs.gnu.org; Thu, 09 May 2019 20:24:08 -0400
Received: from chene.dit.umontreal.ca ([132.204.246.20]:43238)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1hOtKX-00066s-LK
 for 35495 <at> debbugs.gnu.org; Thu, 09 May 2019 20:24:07 -0400
Received: from ceviche.home (lechon.iro.umontreal.ca [132.204.27.242])
 by chene.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id x4A0O3u6027193;
 Thu, 9 May 2019 20:24:03 -0400
Received: by ceviche.home (Postfix, from userid 20848)
 id B790266259; Thu,  9 May 2019 20:24:02 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Federico Tedin <federicotedin@HIDDEN>
Subject: Re: bug#35495: 27.0.50; Untarring an archive with a keyring.gpg inside
Message-ID: <jwvh8a3b1wh.fsf-monnier+emacs@HIDDEN>
References: <jwvtveg4m1a.fsf@HIDDEN> <87imuk4m7u.fsf@HIDDEN>
 <jwvv9yktpo3.fsf-monnier+emacs@HIDDEN> <871s179qsl.fsf@HIDDEN>
Date: Thu, 09 May 2019 20:24:02 -0400
In-Reply-To: <871s179qsl.fsf@HIDDEN> (Federico Tedin's message of "Thu, 09
 May 2019 20:00:42 -0300")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-NAI-Spam-Flag: NO
X-NAI-Spam-Threshold: 5
X-NAI-Spam-Score: 0
X-NAI-Spam-Rules: 2 Rules triggered
	EDT_SA_DN_PASS=0, RV6543=0
X-NAI-Spam-Version: 2.3.0.9418 : core <6543> : inlines <7074> : streams
 <1821069> : uri <2842518>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 35495
Cc: 35495 <at> debbugs.gnu.org, Daiki Ueno <ueno@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> It looks like `jka-compr-write-region` does not do any compression if
> `file`'s extension does not match any of the extensions defined in
> `jka-compr-compression-info-list`. Writing to a file ending in ".gpg"
> just uses `epa-file-handler`, then.

Yes, of course, but the question is what it does when the tar's content
has a name that ends in `.gz` or something like that.  I now see that it
has a hack in write-region which looks at the contents to detect if it's
already compressed.

[ I guess this can lead to problem in odd cases such as when you
  manipulate a file of type "foo.mypkg" where mypkg is defined as
  a format that is always gz-compressed: if you save it as
  "foo.mypkg.gz" jka-compr won't re-compress it, but then when you open
  it, it will uncompress it before trying to handle it as a ".mypkg" at
  which point the mypkg tool might signal an error because it expected
  the ".mypkg" to be compressed.  If this will ever happen is
  anyone's guess, but it look sufficiently contrived that I'm not
  too worried.  ]

> I found that `tar-copy` has the same problem that `tar-untar-buffer`
> has. However, `tar-copy` has a small check where if the source file is
> compressed and the destination file should be compressed, the jka-compr
> file handler is disabled, as no conversion needs to be done. Maybe
> something similar could be done for .gpg files. If the file inside the
> tarfile is already encrypted and it is being extracted to
> <somewhere>.gpg, then the regular `write-region` should be used
> (i.e. just copy bytes from one place to another).

I think there should be a way to tell `write-region` that the content
should be written as-is into the file (and hence override jka-compr and
epa but not tramp).  I don't think there is such a thing yet, tho, so
we'll have to invent it.


        Stefan




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#35495; Package emacs. Full text available.

Message received at 35495 <at> debbugs.gnu.org:


Received: (at 35495) by debbugs.gnu.org; 9 May 2019 23:00:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 09 19:00:54 2019
Received: from localhost ([127.0.0.1]:36669 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hOs22-000478-Dl
	for submit <at> debbugs.gnu.org; Thu, 09 May 2019 19:00:54 -0400
Received: from mail-qt1-f170.google.com ([209.85.160.170]:39205)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <federicotedin@HIDDEN>) id 1hOs21-00046v-2Z
 for 35495 <at> debbugs.gnu.org; Thu, 09 May 2019 19:00:53 -0400
Received: by mail-qt1-f170.google.com with SMTP id y42so4527838qtk.6
 for <35495 <at> debbugs.gnu.org>; Thu, 09 May 2019 16:00:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=1N6HnbsA2pdwWda35lOnjKZ1DWJmEE8GWTjTz43lwmg=;
 b=Q+w0Ig+gipVBWIg0kbzZVrApa+pkL9hm1VV12CWu1W2Og1PP+9MaZeQnm79TbMJK5q
 jQtyLEZ0yhiDEBXZ68VwmIlKRfXctDCgL0g89a7/G8vBRHKVrE7lDgyI6eL7d/d48tc3
 rD3VHI/fW/5IFiL4VJmereYxedE3TrTgPryiLJpvJqGKS6T7GS9W/7v2K2ZzRVK9EeR1
 TrpdX3N8L4dzc/UCezZgrfJ73uXaOUKhh/CMhLqf/csqDA8HGKbIBTruncg4FubudCwo
 limqOosw5GIV8rP+dx5bobL8pcGicfu7XnTowaFH9z6tAlabFi8zDa/nY1GNLe7fG6nf
 9DvQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=1N6HnbsA2pdwWda35lOnjKZ1DWJmEE8GWTjTz43lwmg=;
 b=E3qIoX3W1bNK7cB4Zwgavz/mqCysw/9yX8OYDbiDaJITFe0qP5ykRYzVnasyyJfjiF
 8aZtX/hZJqPwNVdhYgdDZzivriPGxmB8n1SepevbE5utR6EBm3SDLFph68t2zDnqu/3L
 YsPhAchmw/lYYdruu/wam27cgz7jhX/uEYDk0gUkGjU7wcRJSx7wZ0/Z4GsODhzxU1Wv
 6b5CbpLgDLxUy6VHUd5SQC5AlyFv1+KbgaRlOoeCNe1SKnlaSGdkj191XlsKNtDqnzSy
 26YRGSPVfgjWSbV984JYgz/Qr4sBFb5gATOOcmTIiovV8blFwYnCicVL71eyx4O2t6gJ
 +Zsg==
X-Gm-Message-State: APjAAAUBg022JhA5Icz1gfMzTJ+3KWPutiH5GweJIwK1KH5z4KBp/vom
 uSZrPvk3dkd0ZfyyKkjs/ao=
X-Google-Smtp-Source: APXvYqz6XzEv4/l9x4wQHAtLPxMe64M0yN+4UCC+axOEg2QkGfwCIEND9ihOSbZfOppyzm7UN2r21g==
X-Received: by 2002:a0c:ea43:: with SMTP id u3mr6077721qvp.28.1557442846338;
 Thu, 09 May 2019 16:00:46 -0700 (PDT)
Received: from hideo ([181.170.211.157])
 by smtp.gmail.com with ESMTPSA id y189sm1761681qke.34.2019.05.09.16.00.44
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Thu, 09 May 2019 16:00:45 -0700 (PDT)
From: Federico Tedin <federicotedin@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#35495: 27.0.50; Untarring an archive with a keyring.gpg inside
References: <jwvtveg4m1a.fsf@HIDDEN> <87imuk4m7u.fsf@HIDDEN>
 <jwvv9yktpo3.fsf-monnier+emacs@HIDDEN>
Date: Thu, 09 May 2019 20:00:42 -0300
In-Reply-To: <jwvv9yktpo3.fsf-monnier+emacs@HIDDEN> (Stefan Monnier's message
 of "Wed, 08 May 2019 20:53:18 -0400")
Message-ID: <871s179qsl.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 35495
Cc: 35495 <at> debbugs.gnu.org, Daiki Ueno <ueno@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Stefan Monnier <monnier@HIDDEN> writes:

>> Would it be OK to just remove the `epa-file-handler` from
>> `file-name-handler-alist` while extracting?
>
> I don't like this idea.  How does jka-compr do it?
>
>
>         Stefan

(My attempt at understanding what's causing the issue)

It looks like `jka-compr-write-region` does not do any compression if
`file`'s extension does not match any of the extensions defined in
`jka-compr-compression-info-list`. Writing to a file ending in ".gpg"
just uses `epa-file-handler`, then.

I found that `tar-copy` has the same problem that `tar-untar-buffer`
has. However, `tar-copy` has a small check where if the source file is
compressed and the destination file should be compressed, the jka-compr
file handler is disabled, as no conversion needs to be done. Maybe
something similar could be done for .gpg files. If the file inside the
tarfile is already encrypted and it is being extracted to
<somewhere>.gpg, then the regular `write-region` should be used
(i.e. just copy bytes from one place to another).




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#35495; Package emacs. Full text available.

Message received at 35495 <at> debbugs.gnu.org:


Received: (at 35495) by debbugs.gnu.org; 9 May 2019 00:53:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 08 20:53:28 2019
Received: from localhost ([127.0.0.1]:34347 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hOXJQ-0007YL-Dp
	for submit <at> debbugs.gnu.org; Wed, 08 May 2019 20:53:28 -0400
Received: from chene.dit.umontreal.ca ([132.204.246.20]:34820)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1hOXJO-0007YC-LJ
 for 35495 <at> debbugs.gnu.org; Wed, 08 May 2019 20:53:27 -0400
Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242])
 by chene.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id x490rOOS022303;
 Wed, 8 May 2019 20:53:24 -0400
Received: by pastel.home (Postfix, from userid 20848)
 id 788DF6AD8D; Wed,  8 May 2019 20:53:18 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Federico Tedin <federicotedin@HIDDEN>
Subject: Re: bug#35495: 27.0.50; Untarring an archive with a keyring.gpg inside
Message-ID: <jwvv9yktpo3.fsf-monnier+emacs@HIDDEN>
References: <jwvtveg4m1a.fsf@HIDDEN> <87imuk4m7u.fsf@HIDDEN>
Date: Wed, 08 May 2019 20:53:18 -0400
In-Reply-To: <87imuk4m7u.fsf@HIDDEN> (Federico Tedin's message of "Wed, 08
 May 2019 19:26:13 -0300")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-NAI-Spam-Flag: NO
X-NAI-Spam-Level: 
X-NAI-Spam-Threshold: 5
X-NAI-Spam-Score: 0.1
X-NAI-Spam-Rules: 3 Rules triggered
 GEN_SPAM_FEATRE=0.1, EDT_SA_DN_PASS=0, RV6542=0
X-NAI-Spam-Version: 2.3.0.9418 : core <6542> : inlines <7074> : streams
 <1820976> : uri <2842149>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 35495
Cc: 35495 <at> debbugs.gnu.org, Daiki Ueno <ueno@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Would it be OK to just remove the `epa-file-handler` from
> `file-name-handler-alist` while extracting?

I don't like this idea.  How does jka-compr do it?


        Stefan




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#35495; Package emacs. Full text available.

Message received at 35495 <at> debbugs.gnu.org:


Received: (at 35495) by debbugs.gnu.org; 8 May 2019 22:26:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 08 18:26:27 2019
Received: from localhost ([127.0.0.1]:34223 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hOV18-00027z-A0
	for submit <at> debbugs.gnu.org; Wed, 08 May 2019 18:26:27 -0400
Received: from mail-qt1-f193.google.com ([209.85.160.193]:40281)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <federicotedin@HIDDEN>) id 1hOV15-00027h-Vh
 for 35495 <at> debbugs.gnu.org; Wed, 08 May 2019 18:26:24 -0400
Received: by mail-qt1-f193.google.com with SMTP id k24so328827qtq.7
 for <35495 <at> debbugs.gnu.org>; Wed, 08 May 2019 15:26:23 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=Gz/HxiJET2OXD8Ek9m1Q5zAVykDRFQTMqdW0qirMtaY=;
 b=TgKHcbX2GI967JoyYMsikHVN+IOJsE0xYb4lbMNmadmRicIpud+zbU/Ubrc7j2v8fR
 cRajatyL5KfZRGH+tcB0iphyaCNZ7BfnwUO5AiOSymbfZLBnrw9w+UdELKoeSbetQLk2
 QLbYGVppuX9IQtatRpz87tS9phjQUQlhd0armAxt3Fc7HVi5pZtEBsDb0rPsunzY0unx
 3w7okyZNrAcscmeYITS7Tlw1/k7rMXU6EMnlgESE/JZ6oBS3+rZw/GCjt5JWfH0Oyib+
 Un66bbOYu06EohuMdues0kodtZeE2ljVj+bYHtmP5qztm4wZMCDH+G4YguWcqVvUjOOS
 9afA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=Gz/HxiJET2OXD8Ek9m1Q5zAVykDRFQTMqdW0qirMtaY=;
 b=bDN4y/o8EPzg0HjcTDgIPivZdajfi/1sOQ0ixbn+obhIPDkMIAKPkvwOJU12/cvaZ4
 DItcR6EQ3v7cvB1Lzf5QYOZ9vr0h+uPpfidae6U01SRJ2/FSs2BuwgYflKNkoQD0JM/P
 AKhrOb7dR/agjnlkAuz/1O81BhZ17xX0mXFyPzSJFzPpvWmH993y9vXm9JzqpyPmfBry
 DUPSzXo0qmvoULn6cAS1FN9nQpds7V3KcYq9Hckq3P56saaM1BdBH7/wa0cw2KGzJfLn
 GwyxB1hkZgNpijvmMwUd97+z/0ph5UzmdnznhTyjQaMkpFfN/HL90dtFXRMAwCI6x1S6
 O4nQ==
X-Gm-Message-State: APjAAAW9ZCXyhR0MsVTWv3Sp4Cc2lhrZkrfmv7VBf15f2lkOHIHif6SV
 8TKM9WlDfJF1/3LWeC3Xmtw=
X-Google-Smtp-Source: APXvYqykg7hoEca72F2at4bUpS/SPZn7tTzHo3C6iUOE8QONMhJk7vR+5U91JkUkwesLDRnSYMqRTQ==
X-Received: by 2002:aed:23ca:: with SMTP id k10mr501917qtc.224.1557354377913; 
 Wed, 08 May 2019 15:26:17 -0700 (PDT)
Received: from hideo ([181.170.211.157])
 by smtp.gmail.com with ESMTPSA id 3sm120383qtm.37.2019.05.08.15.26.15
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Wed, 08 May 2019 15:26:17 -0700 (PDT)
From: Federico Tedin <federicotedin@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#35495: 27.0.50; Untarring an archive with a keyring.gpg inside
References: <jwvtveg4m1a.fsf@HIDDEN>
Date: Wed, 08 May 2019 19:26:13 -0300
In-Reply-To: <jwvtveg4m1a.fsf@HIDDEN> (Stefan Monnier's message of
 "Mon, 29 Apr 2019 16:02:57 -0400")
Message-ID: <87imuk4m7u.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 35495
Cc: 35495 <at> debbugs.gnu.org, Daiki Ueno <ueno@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Stefan Monnier <monnier@HIDDEN> writes:

> Package: Emacs
> Version: 27.0.50
>
>
> When untarring a file whose contents include a GPG keyring named with
> a `.gpg` extension, `tar-untar-buffer` ends up trying to encrypt the
> keyring because the `write-region` call for this file gets handed to
> `epa-file-write-region`.
>
>
>         Stefan
>
>
>
> In GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
>  of 2019-04-18 built on pastel
> Repository revision: 058df7a477bfd9798fc96332dd9a7adcd4a7c2b0
> Repository branch: work
> Windowing system distributor 'The X.Org Foundation', version 11.0.11902000
> System Description: Debian GNU/Linux 9 (stretch)
>
> Recent messages:
> user-error: No cross-reference here
> Warning: hide-sublevels is obsolete!
> Mark saved where search started [3 times]
> Making completion list...
> Warning: hide-sublevels is obsolete!
> Mark saved where search started
> Mark set
> Mark saved where search started
> <nil> <down-mouse-3> is undefined
> <nil> <mouse-3> is undefined

I've tried wrapping the call to `write-region` with `(let
(file-name-handler-alist) ...)` in tar-mode.el:548 and it fixes the
problem. On the other hand, it breaks TRAMP support. Would it be OK to
just remove the `epa-file-handler` from `file-name-handler-alist` while extracting?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#35495; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 29 Apr 2019 20:03:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 29 16:03:08 2019
Received: from localhost ([127.0.0.1]:39818 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hLCUW-0006dT-7R
	for submit <at> debbugs.gnu.org; Mon, 29 Apr 2019 16:03:08 -0400
Received: from eggs.gnu.org ([209.51.188.92]:56511)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1hLCUT-0006cW-Sz
 for submit <at> debbugs.gnu.org; Mon, 29 Apr 2019 16:03:06 -0400
Received: from lists.gnu.org ([209.51.188.17]:55818)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <monnier@HIDDEN>)
 id 1hLCUO-0002Cp-Pc
 for submit <at> debbugs.gnu.org; Mon, 29 Apr 2019 16:03:00 -0400
Received: from eggs.gnu.org ([209.51.188.92]:42655)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <monnier@HIDDEN>) id 1hLCUN-0003q1-QH
 for bug-gnu-emacs@HIDDEN; Mon, 29 Apr 2019 16:03:00 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_MED,
 URIBL_BLOCKED autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <monnier@HIDDEN>) id 1hLCUM-0002Bm-Uj
 for bug-gnu-emacs@HIDDEN; Mon, 29 Apr 2019 16:02:59 -0400
Received: from chene.dit.umontreal.ca ([132.204.246.20]:50259)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <monnier@HIDDEN>) id 1hLCUM-0002Ap-Pl
 for bug-gnu-emacs@HIDDEN; Mon, 29 Apr 2019 16:02:58 -0400
Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242])
 by chene.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id x3TK2vvC030027
 for <bug-gnu-emacs@HIDDEN>; Mon, 29 Apr 2019 16:02:57 -0400
Received: by pastel.home (Postfix, from userid 20848)
 id 2B3F26AD2C; Mon, 29 Apr 2019 16:02:57 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 27.0.50; Untarring an archive with a keyring.gpg inside
X-Debbugs-Cc: Daiki Ueno <ueno@HIDDEN>
Date: Mon, 29 Apr 2019 16:02:57 -0400
Message-ID: <jwvtveg4m1a.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-NAI-Spam-Flag: NO
X-NAI-Spam-Level: 
X-NAI-Spam-Threshold: 5
X-NAI-Spam-Score: 0.9
X-NAI-Spam-Rules: 5 Rules triggered
 BEC_TRC1=0.4, BEC_TRC1_W_GEN_SPAM_FEATRE=0.4, GEN_SPAM_FEATRE=0.1, 
 EDT_SA_DN_PASS=0, RV6535=0
X-NAI-Spam-Version: 2.3.0.9418 : core <6535> : inlines <7062> : streams
 <1820097> : uri <2838602>
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-Received-From: 132.204.246.20
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

Package: Emacs
Version: 27.0.50


When untarring a file whose contents include a GPG keyring named with
a `.gpg` extension, `tar-untar-buffer` ends up trying to encrypt the
keyring because the `write-region` call for this file gets handed to
`epa-file-write-region`.


        Stefan



In GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2019-04-18 built on pastel
Repository revision: 058df7a477bfd9798fc96332dd9a7adcd4a7c2b0
Repository branch: work
Windowing system distributor 'The X.Org Foundation', version 11.0.11902000
System Description: Debian GNU/Linux 9 (stretch)

Recent messages:
user-error: No cross-reference here
Warning: hide-sublevels is obsolete!
Mark saved where search started [3 times]
Making completion list...
Warning: hide-sublevels is obsolete!
Mark saved where search started
Mark set
Mark saved where search started
<nil> <down-mouse-3> is undefined
<nil> <mouse-3> is undefined




Acknowledgement sent to Stefan Monnier <monnier@HIDDEN>:
New bug report received and forwarded. Copy sent to ueno@HIDDEN, bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to ueno@HIDDEN, bug-gnu-emacs@HIDDEN:
bug#35495; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 11 May 2019 14:15:01 UTC

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