From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Federico Tedin Newsgroups: gmane.emacs.bugs Subject: bug#35495: 27.0.50; Untarring an archive with a keyring.gpg inside Date: Sat, 11 May 2019 13:24:36 -0300 Message-ID: <878svd7yd7.fsf@gmail.com> References: <87imuk4m7u.fsf@gmail.com> <871s179qsl.fsf@gmail.com> <87tve196pi.fsf@gmail.com> <87mujt9368.fsf@gmail.com> <87d0kp91fn.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="23133"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) Cc: 35495@debbugs.gnu.org, Daiki Ueno To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 11 18:25:12 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hPUoC-0005s0-93 for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 May 2019 18:25:12 +0200 Original-Received: from localhost ([127.0.0.1]:33012 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hPUoB-0000Da-5c for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 May 2019 12:25:11 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:54299) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hPUo4-0000DD-1t for bug-gnu-emacs@gnu.org; Sat, 11 May 2019 12:25:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hPUo3-0003zx-3H for bug-gnu-emacs@gnu.org; Sat, 11 May 2019 12:25:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55571) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hPUo2-0003zb-QS for bug-gnu-emacs@gnu.org; Sat, 11 May 2019 12:25:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hPUo2-0006ya-GV for bug-gnu-emacs@gnu.org; Sat, 11 May 2019 12:25:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Federico Tedin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 May 2019 16:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35495 X-GNU-PR-Package: emacs Original-Received: via spool by 35495-submit@debbugs.gnu.org id=B35495.155759188826794 (code B ref 35495); Sat, 11 May 2019 16:25:02 +0000 Original-Received: (at 35495) by debbugs.gnu.org; 11 May 2019 16:24:48 +0000 Original-Received: from localhost ([127.0.0.1]:40882 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hPUno-0006y5-8M for submit@debbugs.gnu.org; Sat, 11 May 2019 12:24:48 -0400 Original-Received: from mail-qt1-f182.google.com ([209.85.160.182]:40025) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hPUnm-0006xq-Ck for 35495@debbugs.gnu.org; Sat, 11 May 2019 12:24:46 -0400 Original-Received: by mail-qt1-f182.google.com with SMTP id k24so5215830qtq.7 for <35495@debbugs.gnu.org>; Sat, 11 May 2019 09:24:46 -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=eOpslDAG99fw4mqRDmqbmR0G4xO3FEG/5fepDh16sFs=; b=tUOzvEWm2gw8D33LLz1g3Zx2D4elVDNcA6C1KNg4PvpsL83hv2gAodGrib2OliKiHB lQHkBRammfPw8RI6K14ocQX6OdNDRnlr+QoRYfN1Drg0tZt5hqWdw/Xpjv3SdH0Qzo5L 7B7oLEhSl6DdA3IxiE9RWMZKLSEtlEwiNF2Vxt6aMd6u042HszG/i4Q3mWtgJjNNfeZB KtXXDmfBsew7ppopp38ilnqC2SrP28ZHKPewo1/5OOiJC7OydCO1aUAXO6PkwP+ygw02 5whjoJNRiEoH8ClP6ABcmpaaEnVb7hXDZwodkjEpA8KpzG6hUxSVGvGWrt6Y8phif5Ny PuBA== 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=eOpslDAG99fw4mqRDmqbmR0G4xO3FEG/5fepDh16sFs=; b=oYu2AMOe/+6jmmQ6ygJRfu1oczx6PIOE+Kwmga7BXV63B1AJNrfQ9YH+9IIWKYWbWF jlH64cj2+rpphzlas8uPEJvK3GA1tXeGPYHS2MULdhQUxBwD7EXofITgr9e+2eHFEgAA 5N/7IWKr049elkMQaaXFRDcuTMCaB8mmexEFUz07BYqfKB1L3FmE56Ppw3uRx3XKUC/h rdZIL2bJlyxCrm4OEuOfwtJG0DXDxLIBXG5suj8wfTCUOXZijTIMIx4epSZeOaHONFlS b03JXHwe2uJhSSl5SnGuWtEAeHXPUojhXnV9jdwCuO2Egrpownw1rNjHZ56vmAEEXB/s Du4Q== X-Gm-Message-State: APjAAAWneQhoNSG+54OJ13MmXC6cR4IjPsOMI8RH4VC+iYXCmYNYMSn5 bQPAu73E97TIapLwGeF16PU= X-Google-Smtp-Source: APXvYqyu2JXQHiwF8RiEDDbyUbsKHoIkvkXD+0othqjna99rWLJdMQD7RrwdZqn6JQvSoqSz+Wl9aQ== X-Received: by 2002:ac8:23d0:: with SMTP id r16mr4812367qtr.247.1557591880797; Sat, 11 May 2019 09:24:40 -0700 (PDT) Original-Received: from hideo ([181.170.211.157]) by smtp.gmail.com with ESMTPSA id t58sm5014546qtj.4.2019.05.11.09.24.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 11 May 2019 09:24:39 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Sat, 11 May 2019 08:54:47 -0400") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:159093 Archived-At: Stefan Monnier writes: > 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). Ok, didn't know this. I have some reading to do regarding the specifics of `lexical-binding` and how it affects (or not) defvar, defcustom, etc. > 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). Both my points were made assuming that we didn't want the file-name-handlers to be called; but now that you mention that we do want them to be called, they no longer apply.