From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#32090: 26.1; connection-local-variables do not match as described Date: Mon, 09 Jul 2018 16:15:51 +0200 Message-ID: <87a7r0336w.fsf@gmx.de> References: <87tvpaawkw.fsf@gmx.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1531145648 13562 195.159.176.226 (9 Jul 2018 14:14:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 9 Jul 2018 14:14:08 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 32090@debbugs.gnu.org To: Christopher Cooper Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 09 16:14:04 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fcWvT-0003Qa-ST for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 Jul 2018 16:14:04 +0200 Original-Received: from localhost ([::1]:42340 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fcWxa-00021d-VD for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 Jul 2018 10:16:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53672) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fcWxT-00021A-Ld for bug-gnu-emacs@gnu.org; Mon, 09 Jul 2018 10:16:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fcWxO-0000t8-Lx for bug-gnu-emacs@gnu.org; Mon, 09 Jul 2018 10:16:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44642) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fcWxO-0000sx-Ib for bug-gnu-emacs@gnu.org; Mon, 09 Jul 2018 10:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fcWxO-0005LW-D8 for bug-gnu-emacs@gnu.org; Mon, 09 Jul 2018 10:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 Jul 2018 14:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32090 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 32090-submit@debbugs.gnu.org id=B32090.153114576120538 (code B ref 32090); Mon, 09 Jul 2018 14:16:02 +0000 Original-Received: (at 32090) by debbugs.gnu.org; 9 Jul 2018 14:16:01 +0000 Original-Received: from localhost ([127.0.0.1]:52539 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fcWxM-0005LC-ML for submit@debbugs.gnu.org; Mon, 09 Jul 2018 10:16:00 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:51319) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fcWxK-0005Ky-RM for 32090@debbugs.gnu.org; Mon, 09 Jul 2018 10:15:59 -0400 Original-Received: from detlef.gmx.de ([212.86.47.65]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MKHMk-1fd4ec0UZK-001eth; Mon, 09 Jul 2018 16:15:52 +0200 In-Reply-To: (Christopher Cooper's message of "Sun, 8 Jul 2018 09:09:59 -0400") X-Provags-ID: V03:K1:EvVLrzOhHhQ0ZekgeO9fjzjUmj/Xv6H3uMI1Foof/uxTYayaLee VVQBf2i0yfJ1hHMBRkvklVz+fTCmT86+IcvcAHY8dbWQVVXaVF6UK0OvuZujl+h9m3wc29c NTiPFPg9Kq4dzBCAYT54ufxB+s0OPSUvUS+D47ja27YeoJ6MzPJAklfOj7gcZ5we1qSG3io qW/FiEQSJ43bgAtpKGd6w== X-UI-Out-Filterresults: notjunk:1;V01:K0:skchuUlnuJk=:R2mH9mwCdSBsak3R9ETM3W j8x9BNOejiN6lXlMk8cWv25AFLtR4Nw+n0+ZavsksxQ0tIkx9JAI2UwrBcF/V8FVvZTjktyQ8 mqEQo4Ztscl3AG32icHKn9P7D3lGGe/OND+D+E6QIynrKDl2M04xT+IX7O3MESCAYTsuOz6xf NH8tz3NeQw7GY1kt0aiRuNa9i9qE/nT52nAP/5pw/0Sm7PwA1Jp3WvOsab4NayxQ94EF3DwCh tNU/gJ05axOReWt1FxvosZoOcJ4EewhM0lx8Pah++aVItqZeWudtXQQPu5XERp+V7M4A7t8Or AEpNT9bQQK2poOHLK7b/tEK852E7m8Rm3m7ZFPfxDMTAJ6VlB60ZhcKTR+8VtuzojPcGLXH4e ccYKS0A0b0M75qwqMCuehqDq1T+oeIIxK+M8d9Mr3jMmSDzf1dCW4lr7XWtJmmAkio8+Of+pa uEcys35RvcEe2iKGDxVh2cDvgG9q71LtAdneA7MwssXX0NnTIKvNvQA9T8JmQWdmICLjOs957 8aTgPpQQsX6hVbpf5Tm7bd8XzJnBZQEPGD91U0IObENUs/PWPlKPPCeSMID8KundDAWA7Owk/ /hPpxUbz7s1OGMa0rrRpkq20y1uMyxvLKJ0jvgcDJJzJti0QxNfzVGaA2MRwVsveAc8TKeg+0 9jQC7gxI+T6fzt8AeQVprgdZIyIIyG2GdTd8V/xkA7brokISY6y/osw5+Ka3TSGjYL369alTR kXoR1XpLuE2LvSycrBxH2dtpSHMtDu3fbdoRleoyy53wbNMDehn/ytcD6bypKv1sJBoIq1Nd 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: 208.118.235.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:148375 Archived-At: Christopher Cooper writes: Hi Christopher, >> That means, the Tramp implementation requires :application to be 'tramp >> or nil, *and* it requires setting of :protocol, :user and :machine in >> your criteria, which match the respective remote file name. > > This makes sense, except that I'm still confused on why :application > can be nil but :protocol, :user, and :machine cannot be. > > I think ultimately, it comes down to a confusion over what "optional" > means. I took it to mean: "It this property is provided, it will be > checked when matching. If not, we don't care about the value of this > property." And, as I stated earlier, I don't understand how the > sentence "If CRITERIA is 'nil', it always applies." is try in any > sense of those words. If the feature is working as intended, those are > the worst offenders as far as confusing documentation. Well, I've slept over this last night, and I've convinced myself that you are right. Every property shall be optional, not only :application. As documented. So I've committed a patch to the emacs-26 branch. Maybe you have a chance to check this out; otherwise the patch is accessible here: > Once again, I appreciate this feature and your explanation here. I > hope this is helpful in clarifying the documentation. If you want see some more examples for intended use, see file test/lisp/files-x-tests.el. Note, that I have adapted it as well for the patch. > Christopher Best regards, Michael.