From: Michael Albinus <michael.albinus@gmx.de>
To: Chong Yidong <cyd@stupidchicken.com>
Cc: 5414@debbugs.gnu.org, jidanni@jidanni.org, Miles Bader <miles@gnu.org>
Subject: bug#5414: 23.1.91; /sys/devices files trigger loading tramp
Date: Wed, 20 Jan 2010 20:05:31 +0100 [thread overview]
Message-ID: <873a20ha10.fsf@gmx.de> (raw)
In-Reply-To: <87k4vcemu1.fsf@stupidchicken.com> (Chong Yidong's message of "Wed, 20 Jan 2010 11:57:10 -0500")
Chong Yidong <cyd@stupidchicken.com> writes:
> Here's a proper recipe for reproducing this (the previous recipe does
> not do it, maybe it was untested):
>
> emacs -Q
> C-x C-f
> C-a C-k
> /sys/devices/pc [TAB]
> => Tramp will be loaded
Thanks, I can reproduce it as well.
Tramp is loaded due to `rfn-eshadow-update-overlay'. In the loop
commented with "Binary search ...", it recomputes `mid', and calls
`rfn-eshadow-sifn-equal'. This function applies
`substitute-in-file-name' for a part of the the whole file name, which
looks like a remote file name, accidently. Bingo!
See the backtrace:
tramp-file-name-handler(substitute-in-file-name "/pci0000:00/")
substitute-in-file-name("/pci0000:00/")
byte-code("ÁÂ\bd\"!" [pos substitute-in-file-name buffer-substring-no-properties] 4)
byte-code("ÆÇ !È\b!É d\x19\x1a^[\x1c\v;\0\v ='\0\f\vT\x1d\x1cÊËÌ*;\0\v
=\0\f\v\x1d\x1cÊËÌ*\0
T Wa\0 TdW\0\f T\x1d\x1cÊËÌ*\0 T\x12d\x11\0
\\Í¥\x13\f\v\x1d\x1cÊËÌ*{\0\v\x12<\0\v\x11;\0Î\bÉ
#ÏÐ!," [rfn-eshadow-overlay end start mid goal pos substitute-in-file-name minibuffer-contents overlay-end minibuffer-prompt-end nil (byte-code "ÁÂ\bd\"!" [pos substitute-in-file-name buffer-substring-no-properties] 4) ((error)) 2 move-overlay run-hooks rfn-eshadow-update-overlay-hook] 5)
rfn-eshadow-update-overlay()
run-hooks(post-command-hook)
I wouldn't regard it as a bug. One could argue, that rfn-shadow should
deactivate file name handlers for its work, but this might result in
collateral damages.
Best regards, Michael.
next prev parent reply other threads:[~2010-01-20 19:05 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-18 1:38 bug#5414: 23.1.91; /sys/devices files trigger loading tramp jidanni
2010-01-19 13:59 ` Michael Albinus
2010-01-20 2:41 ` jidanni
2010-01-20 4:59 ` Michael Albinus
2010-01-20 5:08 ` jidanni
2010-01-20 16:57 ` Chong Yidong
2010-01-20 19:05 ` Michael Albinus [this message]
2010-01-21 1:40 ` Chong Yidong
2010-01-20 17:20 ` jidanni
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=873a20ha10.fsf@gmx.de \
--to=michael.albinus@gmx.de \
--cc=5414@debbugs.gnu.org \
--cc=cyd@stupidchicken.com \
--cc=jidanni@jidanni.org \
--cc=miles@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.