From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#47063: 27.1; Tramp customizations overridden by tramp-loaddefs.el Date: Thu, 11 Mar 2021 14:56:31 +0100 Message-ID: <87zgz9ssj4.fsf@gmx.de> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27536"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 47063@debbugs.gnu.org To: Aaron Zeng Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 11 15:10:50 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 1lKM1Y-0006zX-Uz for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 11 Mar 2021 15:10:48 +0100 Original-Received: from localhost ([::1]:45632 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKM1X-0003zp-Vl for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 11 Mar 2021 09:10:48 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49116) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKLoD-0003bG-RK for bug-gnu-emacs@gnu.org; Thu, 11 Mar 2021 08:57:01 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41276) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lKLoD-0003pE-Hq for bug-gnu-emacs@gnu.org; Thu, 11 Mar 2021 08:57:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lKLoD-0005xQ-H9 for bug-gnu-emacs@gnu.org; Thu, 11 Mar 2021 08:57:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Mar 2021 13:57: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.161547100022867 (code B ref 47063); Thu, 11 Mar 2021 13:57:01 +0000 Original-Received: (at 47063) by debbugs.gnu.org; 11 Mar 2021 13:56:40 +0000 Original-Received: from localhost ([127.0.0.1]:52822 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lKLns-0005wl-In for submit@debbugs.gnu.org; Thu, 11 Mar 2021 08:56:40 -0500 Original-Received: from mout.gmx.net ([212.227.15.18]:46743) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lKLnr-0005wW-6d for 47063@debbugs.gnu.org; Thu, 11 Mar 2021 08:56:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1615470992; bh=vfip+NoRrkJccn7i5T5cCXklZrSGAjxtVjZ5NoZEZbg=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=ccoD6Zh8lLO0cIIJvKfsb+QqLTL4xjyu8GTynKysZzW//kbW/8V7rwwPL0KjaGpNo RNsCdC8EtL7D2NtdEvE2BOpWSgRhRT0ASZQf80x6sraaFL0+0aWqUCGMqZ7q0o7dFo OqQvjrYyWGxaC3GYLg4EYFW+mLodc6Q3Wdg9LWco= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([212.91.243.52]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MTzay-1lB2Qc1Xak-00QyMT; Thu, 11 Mar 2021 14:56:32 +0100 In-Reply-To: (Aaron Zeng's message of "Thu, 11 Mar 2021 00:02:32 -0500") X-Provags-ID: V03:K1:vJF4wN293zZak03tfruclJ+3lIgBpE7BXZyovPHKHOGx6sgTjg4 g1Phnw9Lie9Ta2+veof1aBDWAbGWu4TL6kiS8iHy22e1SIUx+8cKFSrBMO+DD3E0HegurP/ VgrKsYdAoA+nUrYYxHcYqoJFuKsJFu3ZDV+ijVz2IPl0BmyQalO3gJX1VnnNqU6nz132kg8 RQKCoDyFoHWdy3ZLdlBFA== X-UI-Out-Filterresults: notjunk:1;V03:K0:hOy7mNwV1Uc=:KS4TVyaaXHfGElTW8b1v5k HTU8v701puHpSnJHnBaxlYYfPrfQXjJltOBbv8y6X9m07eJ+nUq4d8Kz0t6ubphbfKESRgGnw C4TCyHseWxHTLl7Nwgn/B3XsDM1DGhqLFNA1Pk53catWALfdmnqqpjEhLACMApP3BPlYEItxB fpC2SGdly6trmGxDpAl/U8AhYEVY4ohhwPHxPwdOfCE0HyNm01Pw5rsAiXpcgAQyTndtFYxwg NhxcDzbalMtO4Uw37Hvrc7mWqtumfXfXy5p3AxwszE0G5Cr1fTX0ZVpBPsxYr6UW7ULtqg3Q1 VKtRY1cfnv792JEz2u4iJOOZpoqoOutLcwdeBMQX/q9cUmgi/V5soL7PpwMXtLVgcry9LOcSs sMDH2BF2FOaPONAvSb0ccI95M4j/94W5LsBsoJ+Xj3QzNd3Af/EVb+6jXdOxObRCc7ZcJwQ51 eQlHC29MOkBCflraBwgCnHWN30KlsJMkC9HZBj2ZoL6w/ie6PBog7CCySJoKY4KBHjmF5TS3J tXWHnlObdErOwNN/Wk3D1N6COCXTDRV9ZJr3SBzfrsb4R0P2splCCtf4YDrqDi3OxcBiZxDI4 FfnLsi12L5wFLYFHM7N/MUPXaEbmgFPLweY7OMFRQQXVwC0WNEARhwxZOT7yKqpCRXEVY53Oo fDjWBNhsH6fU7UWeJSQdDXElRnPETAY7/8fs4tVlFpfBx1An0rRnwcNWf2O2wMGSKjJmIEQNd ryiqEs47VrAeDp7YSsuW6WeSs46uFbk7dy1l9WIQWGXun48azxyCnzBca+hI7rEbXMCIQpri 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:202058 Archived-At: 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.