all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Perry Smith <pedzsan@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Turn Tramp off
Date: Sun, 3 Apr 2011 10:11:34 -0500	[thread overview]
Message-ID: <316BC6C2-7795-462A-8C91-AC643928B9BA@gmail.com> (raw)
In-Reply-To: <87oc4nh31b.fsf@gmx.de>

[-- Attachment #1: Type: text/plain, Size: 3643 bytes --]


On Apr 3, 2011, at 8:34 AM, Michael Albinus wrote:

> Perry Smith <pedzsan@gmail.com> writes:
> 
>> How do I track down why its getting loaded?  I've grep'ed all my files
>> in .emacs.d and its not there.  It must be some other package I'm
>> using which is loading it.
> 
> Eval after Emacs' startup
> 
>  (setq debug-on-quit t)
> 
> When Tramp asks you for the password, enter "^G". This should produce a
> backtrace, which might tell us the reason why Tramp is invoked.

Sigh!  Finally.  If anyone is interested:

I tried the "advice" but for some reason, the advice didn't trigger when Tramp is loaded.  I assume that is because it is getting autoloaded which doesn't use load?  The ^G didn't give much of a clue.  The stack I got was:

> Debugger entered--entering a function:
> * tramp-file-name-handler(file-name-as-directory "/pedz@risc:")
>   file-name-as-directory("/pedz@risc:")
>   apply(file-name-as-directory "/pedz@risc:")
>   tramp-completion-run-real-handler(file-name-as-directory ("/pedz@risc:"))
>   tramp-completion-file-name-handler(file-name-as-directory "/pedz@risc:")
>   file-name-as-directory("/pedz@risc:")
>   cd-absolute("/pedz@risc:")
>   byte-code("\b\304=\203\x12\305	\306\n\307\260\x05\x13\310\v!\207\b?\206\x1c\310\v\311P!\207" [rlogin-directory-tracking-mode rlogin-remote-user rlogin-host comint-file-name-prefix t "/" "@" ":" cd-absolute "~/"] 5)
>   rlogin("risc -l pedz" nil)
>   call-interactively(rlogin t nil)
>   execute-extended-command(nil)
>   call-interactively(execute-extended-command nil nil)


But why was tramp loaded in the first place?  So, I ended up removing the rlogin.elc and the tramp.elc and added

(debug-on-entry 'tramp-register-file-name-handlers)

just after it was defined.  I didn't that a couple of different ways and got the same stack (below).  The stack seems like it left off the initial N frames.

>   (if (comint-check-proc buffer-name) nil (comint-exec buffer buffer-name rlogin-program nil args) (rlogin-mode) (make-local-variable (quote rlogin-host)) (setq rlogin-host host) (make-local-variable (quote rlogin-remote-user)) (setq rlogin-remote-user user) (condition-case nil (cond ... ... ...) (error nil)))
>   (unless (comint-check-proc buffer-name) (comint-exec buffer buffer-name rlogin-program nil args) (rlogin-mode) (make-local-variable (quote rlogin-host)) (setq rlogin-host host) (make-local-variable (quote rlogin-remote-user)) (setq rlogin-remote-user user) (condition-case nil (cond ... ... ...) (error nil)))
>   (let* ((process-connection-type rlogin-process-connection-type) (args ...) (host ...) (user ...) (buffer-name ...)) (cond (...) (... ...) (... ...) (... ...) (t ...)) (setq buffer (get-buffer-create buffer-name)) (pop-to-buffer buffer-name) (unless (comint-check-proc buffer-name) (comint-exec buffer buffer-name rlogin-program nil args) (rlogin-mode) (make-local-variable ...) (setq rlogin-host host) (make-local-variable ...) (setq rlogin-remote-user user) (condition-case nil ... ...)))
>   rlogin("risc -l pedz" nil)
>   call-interactively(rlogin t nil)
>   execute-extended-command(nil)
>   call-interactively(execute-extended-command nil nil)


But I finally figured out that it was because rlogin-directory-tracking-mode was set.  I found that set in one of my older init files.  So, I cleared that.  That solved the initial problem of starting emacs and immediately doing the rlogin.  But I also have ido set and I was sure that it called tramp too.  So, I triggered ido to load tramp and found that there is ido-enable-tramp-completion.  I think I'm not tramp-less :-)

Thanks guys.

pedz


[-- Attachment #2: Type: text/html, Size: 6034 bytes --]

  reply	other threads:[~2011-04-03 15:11 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.8.1301419752.30204.help-gnu-emacs@gnu.org>
2011-03-30  1:34 ` Turn Tramp off Stefan Monnier
2011-03-30  2:43   ` Perry Smith
2011-03-30 14:33     ` Stefan Monnier
     [not found]     ` <mailman.10.1301495607.15752.help-gnu-emacs@gnu.org>
2011-03-30 16:13       ` nospam
2011-04-02 13:16     ` Michael Albinus
2011-04-03  1:16       ` Perry Smith
2011-04-03  8:25         ` Peter Dyballa
2011-04-03 12:47           ` Perry Smith
2011-04-03 13:34         ` Michael Albinus
2011-04-03 15:11           ` Perry Smith [this message]
2011-04-03 18:22             ` Michael Albinus
2011-03-29 17:29 Perry Smith
2011-03-29 19:11 ` Deniz Dogan
2011-03-29 19:19   ` Perry Smith
     [not found]   ` <mailman.2.1301426395.26885.help-gnu-emacs@gnu.org>
2011-03-29 21:33     ` Tim X
2011-03-29 21:51       ` Perry Smith
2011-03-30  0:10         ` Leo

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=316BC6C2-7795-462A-8C91-AC643928B9BA@gmail.com \
    --to=pedzsan@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.