From: Aaron Zeng <zeng.aaron.l@gmail.com>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: 47063@debbugs.gnu.org
Subject: bug#47063: 27.1; Tramp customizations overridden by tramp-loaddefs.el
Date: Thu, 11 Mar 2021 12:05:56 -0500 [thread overview]
Message-ID: <CAFTimbW5mPP6DHBpBk000d5cnTvEh1m0H-AF3YmByqpqKCxYSA@mail.gmail.com> (raw)
In-Reply-To: <87zgz9ssj4.fsf@gmx.de>
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 <michael.albinus@gmx.de> wrote:
>
> Aaron Zeng <zeng.aaron.l@gmail.com> 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.
next prev parent reply other threads:[~2021-03-11 17:05 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-11 5:02 bug#47063: 27.1; Tramp customizations overridden by tramp-loaddefs.el Aaron Zeng
2021-03-11 13:56 ` Michael Albinus
2021-03-11 17:05 ` Aaron Zeng [this message]
2021-03-11 17:11 ` Michael Albinus
2021-03-11 17:19 ` Aaron Zeng
2021-03-13 13:44 ` Michael Albinus
2021-03-14 1:21 ` Aaron Zeng
2021-03-12 0:20 ` Glenn Morris
2021-03-13 13:37 ` Michael Albinus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAFTimbW5mPP6DHBpBk000d5cnTvEh1m0H-AF3YmByqpqKCxYSA@mail.gmail.com \
--to=zeng.aaron.l@gmail.com \
--cc=47063@debbugs.gnu.org \
--cc=michael.albinus@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).