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 12:05:56 -0500 Message-ID: References: <87zgz9ssj4.fsf@gmx.de> 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="34682"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 47063@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 11 18:15:38 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 1lKOuP-0008uy-PZ for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 11 Mar 2021 18:15:37 +0100 Original-Received: from localhost ([::1]:58676 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKOuO-0002zb-Oe for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 11 Mar 2021 12:15:36 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58748) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKOm6-0001mB-3p for bug-gnu-emacs@gnu.org; Thu, 11 Mar 2021 12:07:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43217) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lKOm5-0003nK-Sa for bug-gnu-emacs@gnu.org; Thu, 11 Mar 2021 12:07:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lKOm5-0004nC-Lx for bug-gnu-emacs@gnu.org; Thu, 11 Mar 2021 12:07:01 -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 17:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47063 X-GNU-PR-Package: emacs Original-Received: via spool by 47063-submit@debbugs.gnu.org id=B47063.161548240118396 (code B ref 47063); Thu, 11 Mar 2021 17:07:01 +0000 Original-Received: (at 47063) by debbugs.gnu.org; 11 Mar 2021 17:06:41 +0000 Original-Received: from localhost ([127.0.0.1]:54763 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lKOll-0004md-Gf for submit@debbugs.gnu.org; Thu, 11 Mar 2021 12:06:41 -0500 Original-Received: from mail-qk1-f180.google.com ([209.85.222.180]:34278) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lKOlj-0004mR-Hj for 47063@debbugs.gnu.org; Thu, 11 Mar 2021 12:06:40 -0500 Original-Received: by mail-qk1-f180.google.com with SMTP id t4so21395258qkp.1 for <47063@debbugs.gnu.org>; Thu, 11 Mar 2021 09:06:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Cm2MF+doF/03bhxZv6RBklGA0hzTWg7sZ0ooKWAlXM4=; b=Cqj2ko7dD55EJGcyldwFngUNcswwHkCkeq4UnkUuyYpLhONX7U6aK4JERJWycKW9Hj M4KRq0KmEo+x5MLhcJ7VsJi5dUZxjMAlDmHSiqZJzcBif4tmRIEOMDtb4oVlU79/iAnm pD8cNFo4rNHYWYquVCVvPx/iEsastKDRwr1NFq3DQHyT8R09FSuOcplr4GWNgxAVCbt4 AGaELCT2Kt4rZ4Amrh+0R+PPadMFmDN8/Lkv9a906tLX7Dsw76LAg8U1u/MFUlFbxFiJ ulYef+Fw5Pz/CAHSYO13iVObIY7MMTQVbcVlpKE66RS1JI/jpz1XsWRjSBn7+LdHTIh7 Odvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Cm2MF+doF/03bhxZv6RBklGA0hzTWg7sZ0ooKWAlXM4=; b=L6OoQat/qfRUrM/Izltp2H/VNvwA06oqcI7fVoAY8a9BV1JlaculRuK9Xp6TGiK0Te ByexgHPxduJReqv1/0lfi7QBW4zLJ+C1O3GfF6AdWmxE8TPB9O/yIHtgz16VOIkLuwal bKZqTlt+Ih8Dt+hzuS/6VE8S2BpXuHbp5zk+v7aTMe/HnD66Rr2PZgZz3itnpS8wq3sC CsiEHLPn/+7b7bjNIuulhM9TUBDdlYRaOVg/NEpv7mCRVElhI5q3nhpAeiAKQRk04jHy ca9sScaxuPOtr5DovGqAzDmBMWF+srNpqT6UBxwzEqNRC5cSPVG7fpUVY650ui3XWoEC 5gHQ== X-Gm-Message-State: AOAM531ulpm3A1T6Z0sVifb/DutL0ikYFyJcZ/sirKHHx/QBKb4PEto8 5XuD6iQ8JDEueBa4Y5f0pmH4uuqHzCWpZgR3ohc= X-Google-Smtp-Source: ABdhPJz5U8R3sWTT0+T3Ue/0v13RA/MDvowIpkWYUSa8gUIn4ZGMcfXmbZ1B7h53WrQi6VUe8Fycg/JpqShMzIw3FSo= X-Received: by 2002:a05:620a:1017:: with SMTP id z23mr8829205qkj.23.1615482393727; Thu, 11 Mar 2021 09:06:33 -0800 (PST) In-Reply-To: <87zgz9ssj4.fsf@gmx.de> 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:202076 Archived-At: Hi Michael, Are you suggesting that I should add that to my .emacs? Or do you mean that I am inadvertently loading tramp.el somewhere in my .emacs? If the latter, I was able to see the issue when using a .emacs file consisting solely of the custom-set-variables call in my previous email and loading no other init files, so I don't think that's the culprit. Thanks, Aaron On Thu, Mar 11, 2021 at 8:56 AM Michael Albinus wrote: > > Aaron Zeng writes: > > > Hello there, > > Hi Aaron, > > > 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. > > Perhaps you add (require 'tramp) somewhere in your ~/.emacs? > > Best regards, Michael.