GNU bug report logs -
#25788
26.0.50; first C-x C-f triggering tramp is slow
Previous Next
Reported by: Mark Oteiza <mvoteiza <at> udel.edu>
Date: Sat, 18 Feb 2017 21:13:01 UTC
Severity: normal
Found in version 26.0.50
Done: Mark Oteiza <mvoteiza <at> udel.edu>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 25788 in the body.
You can then email your comments to 25788 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#25788
; Package
emacs
.
(Sat, 18 Feb 2017 21:13:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Mark Oteiza <mvoteiza <at> udel.edu>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sat, 18 Feb 2017 21:13:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi,
From -Q:
1. C-x C-f
2. Experience delay
3. C-g
4. C-x C-c
Depending on where Emacs is started, loading tramp is triggered and
there is a delay before the prompt is shown. The delay is about a
quarter second on my system. This is quite noticeable.
Stracing emacs started in two different directories and executing the
recipe, one log is 6884 lines, the other 1949. The extra 5000 lines
looks like emacs is opening every library known to it, finishing up by
reading ssh/netrc/rlogin files.
In GNU Emacs 26.0.50.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw scroll bars)
of 2017-02-17 built on logos
Repository revision: 8675f9c8b8a002530d0c4e0263bb3d4cf3a649fa
Configured using:
'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib
--localstatedir=/var --without-gconf --with-modules
--with-x-toolkit=lucid 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe
-fstack-protector-strong' CPPFLAGS=-D_FORTIFY_SOURCE=2
LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro'
Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY
ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS
LUCID X11 MODULES LIBSYSTEMD
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#25788
; Package
emacs
.
(Sun, 19 Feb 2017 03:36:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 25788 <at> debbugs.gnu.org (full text, mbox):
> From: Mark Oteiza <mvoteiza <at> udel.edu>
> Date: Sat, 18 Feb 2017 16:12:42 -0500
>
> >From -Q:
>
> 1. C-x C-f
> 2. Experience delay
> 3. C-g
> 4. C-x C-c
>
> Depending on where Emacs is started, loading tramp is triggered and
> there is a delay before the prompt is shown. The delay is about a
> quarter second on my system. This is quite noticeable.
Not reproducible on MS-Windows, but maybe the place "where Emacs is
started" needs to be defined in more detail. Can you tell in what
directories it happens for you?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#25788
; Package
emacs
.
(Sun, 19 Feb 2017 03:53:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 25788 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
>> From: Mark Oteiza <mvoteiza <at> udel.edu>
>> Date: Sat, 18 Feb 2017 16:12:42 -0500
>>
>> >From -Q:
>>
>> 1. C-x C-f
>> 2. Experience delay
>> 3. C-g
>> 4. C-x C-c
>>
>> Depending on where Emacs is started, loading tramp is triggered and
>> there is a delay before the prompt is shown. The delay is about a
>> quarter second on my system. This is quite noticeable.
>
> Not reproducible on MS-Windows, but maybe the place "where Emacs is
> started" needs to be defined in more detail. Can you tell in what
> directories it happens for you?
My home directory is the only one I'm aware of.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#25788
; Package
emacs
.
(Sun, 19 Feb 2017 04:30:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 25788 <at> debbugs.gnu.org (full text, mbox):
Mark Oteiza <mvoteiza <at> udel.edu> writes:
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
>>> From: Mark Oteiza <mvoteiza <at> udel.edu>
>>> Date: Sat, 18 Feb 2017 16:12:42 -0500
>>>
>>> >From -Q:
>>>
>>> 1. C-x C-f
>>> 2. Experience delay
>>> 3. C-g
>>> 4. C-x C-c
>>>
>>> Depending on where Emacs is started, loading tramp is triggered and
>>> there is a delay before the prompt is shown. The delay is about a
>>> quarter second on my system. This is quite noticeable.
>>
>> Not reproducible on MS-Windows, but maybe the place "where Emacs is
>> started" needs to be defined in more detail. Can you tell in what
>> directories it happens for you?
>
> My home directory is the only one I'm aware of.
I see this also on GNU/Linux (with master, not emacs-25), here's a
backtrace from doing (debug-on-entry 'require) before the C-x C-f:
Debugger entered--entering a function:
* require(tramp-compat)
byte-code(...)
load("tramp" noerror nomessage)
(and (null load-in-progress) (load "tramp" (quote noerror) (quote nomessage)))
(let ((default-directory temporary-file-directory)) (and (null load-in-progress) (load "tramp" (quote noerror) (quote nomessage))))
(if (let ((default-directory temporary-file-directory)) (and (null load-in-progress) (load "tramp" (quote noerror) (quote nomessage)))) (apply operation args) (tramp-completion-run-real-handler operation args))
tramp-autoload-file-name-handler(substitute-in-file-name "/")
apply(tramp-autoload-file-name-handler substitute-in-file-name "/")
(if (tramp-completion-mode-p) (apply (quote tramp-autoload-file-name-handler) operation args) (tramp-completion-run-real-handler operation args))
tramp-completion-file-name-handler(substitute-in-file-name "/")
substitute-in-file-name("/")
rfn-eshadow-update-overlay()
read-from-minibuffer("Find file: " "~/" (keymap ...) nil file-name-history "~/" nil)
completing-read-default("Find file: " read-file-name-internal file-exists-p confirm-after-completion "~/" file-name-history "~/" nil)
completing-read("Find file: " read-file-name-internal file-exists-p confirm-after-completion "~/" file-name-history "~/")
read-file-name-default("Find file: " nil "~/" confirm-after-completion nil nil)
read-file-name("Find file: " nil "~/" confirm-after-completion)
find-file-read-args("Find file: " confirm-after-completion)
byte-code("\300\301\302 \"\207" [find-file-read-args "Find file: " confirm-nonexistent-file-or-buffer] 3)
call-interactively(find-file nil nil)
command-execute(find-file)
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#25788
; Package
emacs
.
(Sun, 19 Feb 2017 08:39:01 GMT)
Full text and
rfc822 format available.
Message #17 received at 25788 <at> debbugs.gnu.org (full text, mbox):
npostavs <at> users.sourceforge.net writes:
> I see this also on GNU/Linux (with master, not emacs-25), here's a
> backtrace from doing (debug-on-entry 'require) before the C-x C-f:
>
> Debugger entered--entering a function:
> * require(tramp-compat)
> byte-code(...)
> load("tramp" noerror nomessage)
> (and (null load-in-progress) (load "tramp" (quote noerror) (quote nomessage)))
> (let ((default-directory temporary-file-directory)) (and (null
> load-in-progress) (load "tramp" (quote noerror) (quote nomessage))))
> (if (let ((default-directory temporary-file-directory)) (and (null
> load-in-progress) (load "tramp" (quote noerror) (quote nomessage))))
> (apply operation args) (tramp-completion-run-real-handler operation
> args))
> tramp-autoload-file-name-handler(substitute-in-file-name "/")
I've pushed a fix to master, which shall avoid loading tramp.el just for
file name "/". Since it changes autoloads, it might be necessary to
bootstrap Emacs.
Best regards, Michael.
Reply sent
to
Mark Oteiza <mvoteiza <at> udel.edu>
:
You have taken responsibility.
(Sun, 19 Feb 2017 12:38:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Mark Oteiza <mvoteiza <at> udel.edu>
:
bug acknowledged by developer.
(Sun, 19 Feb 2017 12:38:02 GMT)
Full text and
rfc822 format available.
Message #22 received at 25788-done <at> debbugs.gnu.org (full text, mbox):
On 19/02/17 at 09:37am, Michael Albinus wrote:
> npostavs <at> users.sourceforge.net writes:
>
> > I see this also on GNU/Linux (with master, not emacs-25), here's a
> > backtrace from doing (debug-on-entry 'require) before the C-x C-f:
> >
> > Debugger entered--entering a function:
> > * require(tramp-compat)
> > byte-code(...)
> > load("tramp" noerror nomessage)
> > (and (null load-in-progress) (load "tramp" (quote noerror) (quote nomessage)))
> > (let ((default-directory temporary-file-directory)) (and (null
> > load-in-progress) (load "tramp" (quote noerror) (quote nomessage))))
> > (if (let ((default-directory temporary-file-directory)) (and (null
> > load-in-progress) (load "tramp" (quote noerror) (quote nomessage))))
> > (apply operation args) (tramp-completion-run-real-handler operation
> > args))
> > tramp-autoload-file-name-handler(substitute-in-file-name "/")
>
> I've pushed a fix to master, which shall avoid loading tramp.el just for
> file name "/". Since it changes autoloads, it might be necessary to
> bootstrap Emacs.
Indeed fixed, thanks all.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 20 Mar 2017 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 8 years and 92 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.