From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: npostavs@users.sourceforge.net Newsgroups: gmane.emacs.bugs Subject: bug#25788: 26.0.50; first C-x C-f triggering tramp is slow Date: Sat, 18 Feb 2017 23:30:47 -0500 Message-ID: <87bmtykdjc.fsf@users.sourceforge.net> References: <87wpcn5hkl.fsf@holos> <83r32uq2co.fsf@gnu.org> <8760k6alcz.fsf@holos> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1487478621 12016 195.159.176.226 (19 Feb 2017 04:30:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 19 Feb 2017 04:30:21 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) Cc: 25788@debbugs.gnu.org To: Mark Oteiza Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 19 05:30:15 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cfJ8U-0001wW-GF for geb-bug-gnu-emacs@m.gmane.org; Sun, 19 Feb 2017 05:30:10 +0100 Original-Received: from localhost ([::1]:60701 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cfJ8W-00076l-Vy for geb-bug-gnu-emacs@m.gmane.org; Sat, 18 Feb 2017 23:30:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57456) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cfJ8Q-00075Q-Vd for bug-gnu-emacs@gnu.org; Sat, 18 Feb 2017 23:30:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cfJ8N-0007PH-PM for bug-gnu-emacs@gnu.org; Sat, 18 Feb 2017 23:30:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47327) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cfJ8N-0007P5-Lu for bug-gnu-emacs@gnu.org; Sat, 18 Feb 2017 23:30:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cfJ8M-0002XN-QD for bug-gnu-emacs@gnu.org; Sat, 18 Feb 2017 23:30:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: npostavs@users.sourceforge.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 Feb 2017 04:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25788 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25788-submit@debbugs.gnu.org id=B25788.14874785839703 (code B ref 25788); Sun, 19 Feb 2017 04:30:02 +0000 Original-Received: (at 25788) by debbugs.gnu.org; 19 Feb 2017 04:29:43 +0000 Original-Received: from localhost ([127.0.0.1]:45526 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cfJ83-0002WR-2b for submit@debbugs.gnu.org; Sat, 18 Feb 2017 23:29:43 -0500 Original-Received: from mail-io0-f196.google.com ([209.85.223.196]:33884) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cfJ81-0002WF-Bq for 25788@debbugs.gnu.org; Sat, 18 Feb 2017 23:29:41 -0500 Original-Received: by mail-io0-f196.google.com with SMTP id c80so2280967iod.1 for <25788@debbugs.gnu.org>; Sat, 18 Feb 2017 20:29:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=BoMJfFpG0cEHF8f12B/Y2O6DnUkSRt8KNvw2+wFYl8k=; b=Rip/PL0y3KsMO1PLjAhFPlptc/t93VmpiWPLOYNqAmvm9FK92lJ/Do200TKJkGp+uZ FVPPNLx67k+rc7DIA1EVMI7+hEd1Ds9a6lGM2dGSsnwnxqfFLKk4R5hB4rZev80SrxHN Bs5qQobsV/ejNLTOKgJwJZAr1rNSd7oVC7XoLdZ8bUiZfc5WKvU01P5hgpDNo3Vd3QzW t0axm9gTeX93fLdwn8iMNRqf7P9bTrEVekGjg0ydRgxYKiuCMUo2J7wZ4pSSKKJADw7I Y7J8/gufE6hemHe1AwuixNfigkYxG8c6sv1uK9Oe6cJGO3l2D6Vdh/4tYaIig5+7IMXD uI3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=BoMJfFpG0cEHF8f12B/Y2O6DnUkSRt8KNvw2+wFYl8k=; b=dWmsXT//1g0eC1y+dnI3SihqMIsSoVQVJIJnuXeyhOAaNSrhx8GqQiWwug23iJOL5+ ugOQYDZxOTx4LddvggUxIyi/oV8OhX0rNmvQCsCXmemoWm0iSOCDlE02UmraF2EDbWqw +0qabFus11MAEUzQbUrc22ZQ99690lFaBTaQ6QhgPcbruFXY0mmYtE+e6SCY9ahWSd+4 d20V1tSwKL6R8839P58gvCwCqp0D/2bwenaz01p3fjdLUAGtZIytVQIn6DqqBp+aNVY5 h7XVQzNTG5XOX9MCJC+ieL9rBD3SZaP3Dt2KoaMwhUlXuQAxr6LYCS3egOSadx30rh+C HuFg== X-Gm-Message-State: AMke39lQAjoRlutjTs2Co8vg+gLWcMMtvEakB1xCkTNCQ6h4J9Cf1WuJSFubeiZvuTVnAw== X-Received: by 10.107.153.19 with SMTP id b19mr12375413ioe.200.1487478575877; Sat, 18 Feb 2017 20:29:35 -0800 (PST) Original-Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id b88sm2416750itd.21.2017.02.18.20.29.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 18 Feb 2017 20:29:35 -0800 (PST) In-Reply-To: <8760k6alcz.fsf@holos> (Mark Oteiza's message of "Sat, 18 Feb 2017 22:51:56 -0500") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:129527 Archived-At: Mark Oteiza writes: > Eli Zaretskii writes: > >>> From: Mark Oteiza >>> 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)