From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#20015: 25.0.50; Slow Emacs startup after recent TRAMP changes Date: Sat, 07 Mar 2015 12:35:20 +0100 Message-ID: <87sidh6nwn.fsf@gmx.de> References: <877fuur6eo.fsf@gnu.org> <87pp8mwmun.fsf@gmx.de> <87y4najym7.fsf@gnu.org> <87385iv5s1.fsf@gmx.de> <87pp8mjo4s.fsf@gnu.org> <87lhjanqbs.fsf@igel.home> <87h9tyjhr2.fsf@gnu.org> <877fuunkk9.fsf@igel.home> <87y4nalyu0.fsf@igel.home> <54FA2B80.3020201@dancol.org> <54FA2DF7.8020406@dancol.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1425728183 22670 80.91.229.3 (7 Mar 2015 11:36:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 7 Mar 2015 11:36:23 +0000 (UTC) Cc: Tassilo Horn , Andreas Schwab , 20015@debbugs.gnu.org To: Daniel Colascione Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 07 12:36:11 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YUD1e-0006NY-81 for geb-bug-gnu-emacs@m.gmane.org; Sat, 07 Mar 2015 12:36:10 +0100 Original-Received: from localhost ([::1]:34154 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUD1d-0007tN-31 for geb-bug-gnu-emacs@m.gmane.org; Sat, 07 Mar 2015 06:36:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52048) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUD1Z-0007tI-Un for bug-gnu-emacs@gnu.org; Sat, 07 Mar 2015 06:36:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YUD1W-00006w-O8 for bug-gnu-emacs@gnu.org; Sat, 07 Mar 2015 06:36:05 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39594) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUD1W-00006q-Kr for bug-gnu-emacs@gnu.org; Sat, 07 Mar 2015 06:36:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YUD1V-0002AJ-VV for bug-gnu-emacs@gnu.org; Sat, 07 Mar 2015 06:36:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 07 Mar 2015 11:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20015 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20015-submit@debbugs.gnu.org id=B20015.14257281418291 (code B ref 20015); Sat, 07 Mar 2015 11:36:01 +0000 Original-Received: (at 20015) by debbugs.gnu.org; 7 Mar 2015 11:35:41 +0000 Original-Received: from localhost ([127.0.0.1]:38162 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YUD1A-00029c-VN for submit@debbugs.gnu.org; Sat, 07 Mar 2015 06:35:41 -0500 Original-Received: from mout.gmx.net ([212.227.17.21]:57793) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YUD16-00029K-NG for 20015@debbugs.gnu.org; Sat, 07 Mar 2015 06:35:37 -0500 Original-Received: from detlef.gmx.de ([79.195.1.37]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0McPvw-1YCXbX1WW8-00HfSV; Sat, 07 Mar 2015 12:35:23 +0100 In-Reply-To: <54FA2DF7.8020406@dancol.org> (Daniel Colascione's message of "Fri, 06 Mar 2015 14:45:11 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-Provags-ID: V03:K0:sBQcye/+u8RcSPe/u6m4bMbIrQysgUTcvMmRwCBWIggw9gcOS3a 88/VKTDwc8RkT30RWoTCj/e/P4GqG25DcbPKpzEnksXtF8CsIbL2gwW529wvvPgxMmPRo3W 8gf7ecGyCjbNXGlvDzoHTPIdKvnnVbMGnQNIXGb4fP14YyFjxJ1362NAwYvqc6AG7hBLaup NdsvabSZpdmFms3M4hYpQ== X-UI-Out-Filterresults: notjunk:1; X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:100235 Archived-At: Daniel Colascione writes: > It's also unacceptable to start six (by my count) ssh subprocesses, > especially on systems like Cygwin, where process creation is very slow. The code calls it only 3 times. Due to the autoload, the code of the defconst was eval'ed twice, so it ends up in 6 calls. I've changed it to a defcustom and checked it again. Now it is called only 3 times, and it is called only when you open a remote file (tramp.el is loaded). > At the very least, this work needs to be delayed until someone tries to > use an ssh connection method, and the result should be called. As said above. Also not called when Emacs compiles in batch mode, and alike. I would like to avoid these calls completely, if somebody could tell me a robust test for knowing which kind of ControlMaster, ControlPath and ControlPersist options are supported by the local ssh stanza. And no, I don't want to check the ssh version; this isn't robust. Would it be safe to install the patch in the emacs-24 branch? The change which made Tassilo annoyed was introduced for Emacs 24.5, see Bug#19702. --8<---------------cut here---------------start------------->8--- *** /home/albinus/src/emacs-24/lisp/net/tramp.el.~emacs-24~ 2015-03-07 12:31:29.053902763 +0100 --- /home/albinus/src/emacs-24/lisp/net/tramp.el 2015-03-07 12:23:14.799675963 +0100 *************** *** 307,313 **** useful only in combination with `tramp-default-proxies-alist'.") ;;;###tramp-autoload ! (defconst tramp-ssh-controlmaster-options (let ((result "") (case-fold-search t)) (ignore-errors --- 307,313 ---- useful only in combination with `tramp-default-proxies-alist'.") ;;;###tramp-autoload ! (defcustom tramp-ssh-controlmaster-options (let ((result "") (case-fold-search t)) (ignore-errors *************** *** 333,339 **** (setq result (concat result " -o ControlPersist=no"))))))) result) "Call ssh to detect whether it supports the Control* arguments. ! Return a string to be used in `tramp-methods'.") ;;;###tramp-autoload (defcustom tramp-use-ssh-controlmaster-options --- 333,342 ---- (setq result (concat result " -o ControlPersist=no"))))))) result) "Call ssh to detect whether it supports the Control* arguments. ! Return a string to be used in `tramp-methods'." ! :group 'tramp ! :version "24.5" ! :type 'string) ;;;###tramp-autoload (defcustom tramp-use-ssh-controlmaster-options --8<---------------cut here---------------end--------------->8--- Best regards, Michael.