* bug#5414: 23.1.91; /sys/devices files trigger loading tramp
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
` (3 subsequent siblings)
4 siblings, 0 replies; 9+ messages in thread
From: Michael Albinus @ 2010-01-19 13:59 UTC (permalink / raw)
To: jidanni; +Cc: 5414
jidanni@jidanni.org writes:
> Finding files like
> /sys/devices/pci0000:00/0000:00:1e.0/0000:02:02.0
> triggers "Loading tramp...done".
> Maybe the regexps need to be tightened up.
I cannot reproduce it locally. Could you, please, start a fresh Emacs
via "emacs -Q", rerun the test, and create then a new message via "M-x
report-emacs-bug". This will show us the last keys you've entered.
You do not need to send the created message as-it-is; you might send it
to <5414@debbugs.gnu.org> in order to follow this bug's history.
Best regards, Michael.
^ permalink raw reply [flat|nested] 9+ messages in thread
* bug#5414: 23.1.91; /sys/devices files trigger loading tramp
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
` (2 subsequent siblings)
4 siblings, 1 reply; 9+ messages in thread
From: jidanni @ 2010-01-20 2:41 UTC (permalink / raw)
To: michael.albinus; +Cc: 5414
>>>>> "MA" == Michael Albinus <michael.albinus@gmx.de> writes:
MA> I cannot reproduce it locally. Could you, please, start a fresh Emacs
MA> via "emacs -Q", rerun the test, and create then a new message via "M-x
MA> report-emacs-bug". This will show us the last keys you've entered.
$ set /tmp/sys/devices/pci0000:00/0000:00:1e.0/0000:02:02.0
$ install -D /dev/null $@
$ emacs -Q $@
C-x C-f
See how it says "loading tramp"?
In GNU Emacs 23.1.91.1 (i486-pc-linux-gnu, GTK+ Version 2.18.6)
(emacs-snapshot package, version 1:20100118-1)
^ permalink raw reply [flat|nested] 9+ messages in thread
* bug#5414: 23.1.91; /sys/devices files trigger loading tramp
2010-01-20 2:41 ` jidanni
@ 2010-01-20 4:59 ` Michael Albinus
0 siblings, 0 replies; 9+ messages in thread
From: Michael Albinus @ 2010-01-20 4:59 UTC (permalink / raw)
To: jidanni; +Cc: 5414
jidanni@jidanni.org writes:
>>>>>> "MA" == Michael Albinus <michael.albinus@gmx.de> writes:
>
> $ set /tmp/sys/devices/pci0000:00/0000:00:1e.0/0000:02:02.0
> $ install -D /dev/null $@
> $ emacs -Q $@
> C-x C-f
> See how it says "loading tramp"?
Negative. I have applied exactly the commands; Tramp is not loaded.
> In GNU Emacs 23.1.91.1 (i486-pc-linux-gnu, GTK+ Version 2.18.6)
> (emacs-snapshot package, version 1:20100118-1)
Which emacs-snapshot is this? Debian?
Best regards, Michael.
^ permalink raw reply [flat|nested] 9+ messages in thread
* bug#5414: 23.1.91; /sys/devices files trigger loading tramp
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 5:08 ` jidanni
2010-01-20 16:57 ` Chong Yidong
2010-01-20 17:20 ` jidanni
4 siblings, 0 replies; 9+ messages in thread
From: jidanni @ 2010-01-20 5:08 UTC (permalink / raw)
To: michael.albinus; +Cc: 5414
>>>>> "MA" == Michael Albinus <michael.albinus@gmx.de> writes:
MA> Negative. I have applied exactly the commands; Tramp is not loaded.
MA> Which emacs-snapshot is this? Debian?
$ apt-cache policy emacs-snapshot
emacs-snapshot:
Installed: 1:20100118-1
Candidate: 1:20100118-1
Version table:
*** 1:20100118-1 0
500 http://emacs.orebokech.com sid/main Packages
100 /var/lib/dpkg/status
^ permalink raw reply [flat|nested] 9+ messages in thread
* bug#5414: 23.1.91; /sys/devices files trigger loading tramp
2010-01-18 1:38 bug#5414: 23.1.91; /sys/devices files trigger loading tramp jidanni
` (2 preceding siblings ...)
2010-01-20 5:08 ` jidanni
@ 2010-01-20 16:57 ` Chong Yidong
2010-01-20 19:05 ` Michael Albinus
2010-01-20 17:20 ` jidanni
4 siblings, 1 reply; 9+ messages in thread
From: Chong Yidong @ 2010-01-20 16:57 UTC (permalink / raw)
To: Michael Albinus; +Cc: 5414, jidanni
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
^ permalink raw reply [flat|nested] 9+ messages in thread
* bug#5414: 23.1.91; /sys/devices files trigger loading tramp
2010-01-20 16:57 ` Chong Yidong
@ 2010-01-20 19:05 ` Michael Albinus
2010-01-21 1:40 ` Chong Yidong
0 siblings, 1 reply; 9+ messages in thread
From: Michael Albinus @ 2010-01-20 19:05 UTC (permalink / raw)
To: Chong Yidong; +Cc: 5414, jidanni, Miles Bader
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.
^ permalink raw reply [flat|nested] 9+ messages in thread
* bug#5414: 23.1.91; /sys/devices files trigger loading tramp
2010-01-20 19:05 ` Michael Albinus
@ 2010-01-21 1:40 ` Chong Yidong
0 siblings, 0 replies; 9+ messages in thread
From: Chong Yidong @ 2010-01-21 1:40 UTC (permalink / raw)
To: Michael Albinus; +Cc: 5414, jidanni, Miles Bader
Michael Albinus <michael.albinus@gmx.de> writes:
> 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!
>
> 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.
Thanks for tracking this down. I agree, there doesn't seem to be any
satisfactory way to get around this. I'll close the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* bug#5414: 23.1.91; /sys/devices files trigger loading tramp
2010-01-18 1:38 bug#5414: 23.1.91; /sys/devices files trigger loading tramp jidanni
` (3 preceding siblings ...)
2010-01-20 16:57 ` Chong Yidong
@ 2010-01-20 17:20 ` jidanni
4 siblings, 0 replies; 9+ messages in thread
From: jidanni @ 2010-01-20 17:20 UTC (permalink / raw)
To: cyd; +Cc: 5414, michael.albinus
Chong Yidong's recipe works for me, here with
$ ls /sys/devices/pc*
0000:00:00.0 0000:00:02.0 0000:00:02.5 0000:00:03.1 0000:00:0f.0 pci_bus uevent
0000:00:01.0 0000:00:02.1 0000:00:03.0 0000:00:03.3 firmware_node power
^ permalink raw reply [flat|nested] 9+ messages in thread