From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Christopher Cooper Newsgroups: gmane.emacs.bugs Subject: bug#32090: 26.1; connection-local-variables do not match as described Date: Sun, 8 Jul 2018 00:10:48 -0400 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1531023006 11511 195.159.176.226 (8 Jul 2018 04:10:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 8 Jul 2018 04:10:06 +0000 (UTC) To: 32090@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 08 06:10:02 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 1fc11N-0002so-VY for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Jul 2018 06:10:02 +0200 Original-Received: from localhost ([::1]:35859 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fc13U-0007Oj-TF for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Jul 2018 00:12:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56664) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fc13M-0007OQ-Vv for bug-gnu-emacs@gnu.org; Sun, 08 Jul 2018 00:12:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fc13L-0001pw-0K for bug-gnu-emacs@gnu.org; Sun, 08 Jul 2018 00:12:04 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42701) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fc13K-0001po-Qr for bug-gnu-emacs@gnu.org; Sun, 08 Jul 2018 00:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fc13K-0007zE-Id for bug-gnu-emacs@gnu.org; Sun, 08 Jul 2018 00:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Christopher Cooper Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 Jul 2018 04:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 32090 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.153102306230610 (code B ref -1); Sun, 08 Jul 2018 04:12:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Jul 2018 04:11:02 +0000 Original-Received: from localhost ([127.0.0.1]:50598 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fc12L-0007xX-KG for submit@debbugs.gnu.org; Sun, 08 Jul 2018 00:11:02 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37410) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fc12K-0007xJ-DX for submit@debbugs.gnu.org; Sun, 08 Jul 2018 00:11:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fc12D-0001LQ-IN for submit@debbugs.gnu.org; Sun, 08 Jul 2018 00:10:55 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:42034) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fc12D-0001LM-EG for submit@debbugs.gnu.org; Sun, 08 Jul 2018 00:10:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56614) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fc12B-0007LR-Mg for bug-gnu-emacs@gnu.org; Sun, 08 Jul 2018 00:10:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fc12A-0001KX-5P for bug-gnu-emacs@gnu.org; Sun, 08 Jul 2018 00:10:51 -0400 Original-Received: from mail-ua0-x232.google.com ([2607:f8b0:400c:c08::232]:43005) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fc129-0001KF-T8 for bug-gnu-emacs@gnu.org; Sun, 08 Jul 2018 00:10:50 -0400 Original-Received: by mail-ua0-x232.google.com with SMTP id x18-v6so9833497uaj.9 for ; Sat, 07 Jul 2018 21:10:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=InsttSorr0AMLOFchvwm1HQauimCdfOgpFng01inPz0=; b=IsluyKkgVBhFvP2bvBQivd1E0ID7T8ZL8FJmiI4xryU8uZnB93Hl07y0z3NKhqBiwG xP8Wrj+dtlUwq3Q5Auj9XRhDfJtIwfcuwPsGevdtfF//ZuwYCIwJNzbBjc3dRHWfWvBG 0S5eOhF49LoJDsiLvysdEzOYKkf3W2yLL5tl3PbX6NGGjmkNXh6W/Z0vihry8B9azOw+ zqnk+gYE0tZLxG5x57EFJA61RKO2gNYUBflMeFRg6hxMjBnHfOltGgHE0W/eeStKEEl3 z7MtpUOByIxw/p2MllyOkcoxVyQ0SvPblTNFduQsSPtLQl9vqj5w3I+HN5AjS/+TdCJr 0EOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=InsttSorr0AMLOFchvwm1HQauimCdfOgpFng01inPz0=; b=DyN+nHRxA6Yd+8yfhursmSKoFiFGNEkKhAxKf8n642cJjjj7Jp1nwki7MJgfyNdC+H XxDJYcySJzz6PRcUIUlAP3Hz9JqFlaESVo2BzcG7YureO1gkY6hfuNH+lTs6kb3tBJlP cjC1ov2tgzjiUIwy5bDFzM4EqQJJdbDBMBgv8s6wCZHw5Z7tkV4cacdBMH42IVs2o8xk 2VdAkBENmgug6VeQDSfk+ICD1LuVwWZlnk0OXG4qknuIxk9wCeZNbYjJQXRX20QKvyc4 cArEjHQ2vhZfDZuyroM3Y0PbCKwyMNIh2ek9ehnYZfSc1HOUAQ+cc1JraOlQjzqaL+tA 2TcQ== X-Gm-Message-State: APt69E2kCA+9KzCFN3/Ea8vc+wP1x2bfrwW7ztc4Qx8vI0heNu4IBeiq Gad4SYmDmw0jSaPs5oOJpZxV6ZRBzqKO+xRcF1u6yUHJ X-Google-Smtp-Source: AAOMgpeQJK8eK4tlBeF9I6eeH2BK6T4tpFrV+BCt44bBnDEZhq1k65YqgdRFx+KuWAmPSOZySBoFebrqzT+1ZihCocg= X-Received: by 2002:ab0:10c:: with SMTP id 12-v6mr9873427uak.39.1531023048529; Sat, 07 Jul 2018 21:10:48 -0700 (PDT) Original-Received: by 2002:a67:3a4a:0:0:0:0:0 with HTTP; Sat, 7 Jul 2018 21:10:48 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:148326 Archived-At: According to the docstring for 'connection-local-criteria-alist', "CRITERIA is a plist identifying a connection and the application using this connection. ... All properties are optional; if CRITERIA is nil, it always applies." This does not appear to be true. In fact, this is plainly evident by simple visual inspection of 'connection-local-get-profiles'. Only :application seems to be optional. Reproduction is quite simple. Run emacs -Q and eval the following elisp: (defvar test--var nil) (setf enable-connection-local-variables t) (connection-local-set-profile-variables 'test-profile '((test--var . t))) (connection-local-set-profiles nil 'test-profile) Now open any TRAMP connection. Switch to the TRAMP buffer (where connection-local-variables should have taken effect) and do M-: test--var. The result is nil. If you conduct the same test, but specify the :protocol, :user, and :machine as part of the criteria in the 'connection-local-set-profiles' call, test--var will evaluate to t, which is correct. At best this is a case of misleading documentation, and at worst it is a feature that never got implemented. Connection-local variables would be very useful to me if they worked as described. I am glad to provide more info or help in any capacity. In GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) of 2018-07-05 built on juergen Windowing system distributor 'The X.Org Foundation', version 11.0.12000000 System -e Description: Arch Linux Configured using: 'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --with-x-toolkit=gtk3 --with-xft --with-modules 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt' CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 MODULES THREADS LIBSYSTEMD LCMS2 Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Magit Minor modes in effect: erc-truncate-mode: t erc-spelling-mode: t erc-notify-mode: t erc-list-mode: t erc-menu-mode: t erc-autojoin-mode: t erc-ring-mode: t erc-networks-mode: t erc-pcomplete-mode: t erc-track-mode: t erc-track-minor-mode: t erc-match-mode: t erc-button-mode: t erc-fill-mode: t erc-stamp-mode: t erc-netsplit-mode: t erc-irccontrols-mode: t erc-noncommands-mode: t erc-move-to-prompt-mode: t erc-readonly-mode: t global-magit-file-mode: t magit-auto-revert-mode: t global-git-commit-mode: t async-bytecomp-package-mode: t ido-vertical-mode: t smartparens-global-mode: t editorconfig-mode: t global-auto-complete-mode: t counsel-mode: t ivy-mode: t show-paren-mode: t global-anzu-mode: t anzu-mode: t volatile-highlights-mode: t global-linum-mode: t shell-dirtrack-mode: t recentf-mode: t diff-auto-refine-mode: t tooltip-mode: t global-eldoc-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Load-path shadows: /home/cooperc/.emacs.d/elpa/git-commit-2.13.0/git-commit hides /home/cooperc/.emacs.d/elpa/magit-2.13.0/git-commit Features: (sort mail-extr emacsbug sendmail shr svg xml dom cus-edit pcase avy browse-url jka-compr erc-truncate erc-autoaway erc-spelling flyspell ispell erc-log eieio-opt speedbar sb-image ezimage dframe help-fns cl-print cus-start cus-load erc-notify apropos two-column iso-transl erc-list erc-menu erc-join erc-ring erc-networks erc-pcomplete erc-track erc-match erc-button erc-fill erc-stamp erc-netsplit erc-goodies erc erc-backend erc-compat mm-archive network-stream starttls url-cache smex magit-bookmark bookmark vc vc-dispatcher windmove misearch multi-isearch bug-reference git-rebase editorconfig-core editorconfig-core-handle editorconfig-fnmatch magit-version magit-obsolete magit-blame magit-stash magit-bisect magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-collab ghub let-alist magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log which-func imenu magit-diff smerge-mode magit-core magit-autorevert autorevert filenotify magit-process magit-margin magit-mode git-commit magit-git magit-section magit-utils crm magit-popup log-edit message rfc822 mml mml-sec epa derived epg gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log with-editor async-bytecomp async colir color material-theme server paredit hl-todo highlight-symbol time dot-tests buttercup ert pp ewoc debug buttercup-compat shadow kotct-loaddefs user-hub machine-local user-config-system cg505-hub ido-vertical-mode system-hub darwin code-hub language-hub tex go web-c sh java rust ruby fish fish-mode elixir smartparens-elixir elixir-mode pkg-info url-http tls gnutls url url-proxy url-privacy url-expand url-methods url-history mailcap url-auth mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr url-cookie url-domsuf url-util url-gw nsm rmc puny epl elixir-smie smie elisp csharp c smart-tabs-mode code-navigation indentation smartparens-c smartparens-config smartparens-text smartparens magit-c editorconfig-c editorconfig behavior-hub text window-management pane-management completion-c flycheck json map find-func rx subr-x dash flymake-proc flymake warnings auto-complete-config auto-complete edmacro kmacro popup ido-grid-mode ido counsel dired dired-loaddefs compile esh-util swiper ivy delsel ivy-overlay ffap visual-hub theme text-visuals paren anzu thingatpt etags xref project volatile-highlights frame-c startup-c linum-c linum-off linum file-hub file-content tramp-c recentf-c tramp-cache tramp-sh tramp tramp-compat tramp-loaddefs trampver ucs-normalize shell pcomplete comint ansi-color ring parse-time format-spec advice recentf tree-widget wid-edit backup package-hub cl-extra help-mode verification cl repositories dependencies vc-git diff-mode easy-mmode time-date elec-pair autoload radix-tree lisp-mnt finder-inf info package easymenu epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 1489394 166969) (symbols 48 46723 1) (miscs 40 4164 3342) (strings 32 243899 19322) (string-bytes 1 6360239) (vectors 16 100112) (vector-slots 8 2176130 110892) (floats 8 409 1000) (intervals 56 139320 3213) (buffers 992 46))