From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Aaron Zeng Newsgroups: gmane.emacs.bugs Subject: bug#47063: 27.1; Tramp customizations overridden by tramp-loaddefs.el Date: Thu, 11 Mar 2021 00:02:32 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26334"; mail-complaints-to="usenet@ciao.gmane.io" To: 47063@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 11 06:04:19 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lKDUh-0006hY-Mq for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 11 Mar 2021 06:04:19 +0100 Original-Received: from localhost ([::1]:44838 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKDUg-0002X4-IJ for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 11 Mar 2021 00:04:18 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57280) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKDUQ-0002Wr-Kq for bug-gnu-emacs@gnu.org; Thu, 11 Mar 2021 00:04:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40843) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lKDUQ-0000Es-DF for bug-gnu-emacs@gnu.org; Thu, 11 Mar 2021 00:04:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lKDUQ-0004uW-89 for bug-gnu-emacs@gnu.org; Thu, 11 Mar 2021 00:04:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Aaron Zeng Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Mar 2021 05:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 47063 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.161543899718821 (code B ref -1); Thu, 11 Mar 2021 05:04:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Mar 2021 05:03:17 +0000 Original-Received: from localhost ([127.0.0.1]:52389 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lKDTh-0004tV-60 for submit@debbugs.gnu.org; Thu, 11 Mar 2021 00:03:17 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:46436) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lKDTf-0004tN-42 for submit@debbugs.gnu.org; Thu, 11 Mar 2021 00:03:15 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56852) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKDTe-0002U7-Tp for bug-gnu-emacs@gnu.org; Thu, 11 Mar 2021 00:03:14 -0500 Original-Received: from mail-qv1-xf34.google.com ([2607:f8b0:4864:20::f34]:33698) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lKDTZ-0008BC-UQ for bug-gnu-emacs@gnu.org; Thu, 11 Mar 2021 00:03:14 -0500 Original-Received: by mail-qv1-xf34.google.com with SMTP id i15so2035561qvr.0 for ; Wed, 10 Mar 2021 21:03:08 -0800 (PST) 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=esdRWX5yCk0F11oVSmHI3pn6VxL2lc4g53eFieq+F18=; b=dm5e45gcliHgHzP4ZlVE1GYtAjKSporySKLLFoPGv64K16K2RjGgmb5LSiysZt9Xqf uugVPxYUMESMjG8EoLefdFAbnapFodewu5YQSsbXXpeL/iWAOfMC4KyitXRLO9xlezqk jMm70OJwy/1FADqPAMrS8/jSy2uxS7VFi9RUM+V4K5o9da+LrphUeL28WxSem5KPeR6A vpMfXyScTiWsd2Fiuz5ilXp4pvtgFXpLWNF7xWa5elaGMKySVJNVgJ1MtEa+ToCkS1TN lFEWaG2H09z+NZ7WJ/QQ1EX1Bkk4+OTzz8PLRD7OLiK3w4aWYKtUWWX1XtunTShj1mCP rlog== 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=esdRWX5yCk0F11oVSmHI3pn6VxL2lc4g53eFieq+F18=; b=YBR/W3saLfuQ7vCuY36mnTUR16wYFRffchrR8as7YyD5ioViNkaqHLCq7bZJh46L53 3aC2eFKmuho6AeRZ8qwtDsVOINfZoHu5e/N+iJRR4qfNpRSNGdYtVA3zWxR38w/3x3Xn AMaq8khWNf9C9yxi8K4OPQRW2vXsJVy55zE16KG9bOt9eY5J02uR9VER6ennnqm94xTh pda3OLVhDSnChXqPEJTtYSRUz4QLylV28ipw6JHdEygQWZssdGEB/10Uo8SzXlAVaX3N 9ZLPDmnUFifvEX+tjxrPkHWbOzVEVqqRdFg/hWam8UQz1I0T9u2pK1FFX5aB4lYyECY7 +5hA== X-Gm-Message-State: AOAM530KBWajgn3iSXiDwJeUVPRZVbO4mKBELOsZS8y6sFk9fnh502uP C2zaKo5VZAb/YZ1pgW9fjHvFW+rVLNmtIymr3baPmahEj0AJxQ== X-Google-Smtp-Source: ABdhPJy2ZQRjiMEaaclOSMOJXDsCHuPXVyVxuVZDa00yWsugKKsHaqecMlzsKEtp9f+XN8vqB7tQEb8Dy9eFg+UuWOo= X-Received: by 2002:a0c:b66c:: with SMTP id q44mr6175850qvf.3.1615438987483; Wed, 10 Mar 2021 21:03:07 -0800 (PST) Received-SPF: pass client-ip=2607:f8b0:4864:20::f34; envelope-from=zeng.aaron.l@gmail.com; helo=mail-qv1-xf34.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:202051 Archived-At: Hello there, I noticed that my M-x customize settings were not being applied for some TRAMP defcustoms, namely, tramp-use-ssh-controlmaster-options. With the following barebones ~/.emacs: (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(tramp-use-ssh-controlmaster-options nil)) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. ) I found that connecting to `/ssh::/' (localhost) ended up using TRAMP's ControlMaster options despite the customization. I also noticed that `tramp-use-ssh-controlmaster-options' was set to t. Furthermore, if the following line is prepended to the init file: (debug-watch 'tramp-use-ssh-controlmaster-options) It is clear that the defvar in tramp-loaddefs.el is where the variable gets set to t. I'm not familiar with the purpose of the *-loaddefs.el files and why they are different from regular generated autoload files, but it would seem that it's preventing customizations from being applied properly. My current workaround is to add the NOW argument in `custom-set-variables', like so: (custom-set-variables '(tramp-use-ssh-controlmaster-options nil t)) Which seems to apply the customization corectly. But this argument is not saved automatically by the M-x customize interface. In GNU Emacs 27.1 (build 1, x86_64-apple-darwin17.7.0, NS appkit-1561.60 Version 10.13.6 (Build 17G65)) System Description: macOS 11.2.2 Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Configured using: 'configure --prefix=/nix/store/94vgwpfys6y08ri6p2czzy35i24inc5n-emacs-27.1 --disable-build-details --with-modules --with-ns --disable-ns-self-contained CFLAGS=-DMAC_OS_X_VERSION_MAX_ALLOWED=101200' Configured features: RSVG GLIB NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS JSON PDUMPER GMP Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Fundamental Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-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: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search time-date subr-x mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils term/xterm xterm seq byte-opt gv bytecomp byte-compile cconv tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer 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 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 threads kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 48799 7025) (symbols 48 6052 1) (strings 32 15746 994) (string-bytes 1 519667) (vectors 16 7304) (vector-slots 8 78007 5350) (floats 8 22 253) (intervals 56 176 0) (buffers 1000 12))