From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: Silent autoloading Date: Mon, 17 Nov 2008 06:01:32 +0100 Message-ID: <8763mngd3n.fsf@gmx.de> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1226898115 8621 80.91.229.12 (17 Nov 2008 05:01:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Nov 2008 05:01:55 +0000 (UTC) Cc: Andreas Schwab , Eli Zaretskii , emacs-devel@gnu.org, Glenn Morris To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 17 06:02:56 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L1wGC-0007C1-8v for ged-emacs-devel@m.gmane.org; Mon, 17 Nov 2008 06:02:52 +0100 Original-Received: from localhost ([127.0.0.1]:43891 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L1wF3-0007EO-QQ for ged-emacs-devel@m.gmane.org; Mon, 17 Nov 2008 00:01:41 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L1wF0-0007E8-3a for emacs-devel@gnu.org; Mon, 17 Nov 2008 00:01:38 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L1wEy-0007Dw-La for emacs-devel@gnu.org; Mon, 17 Nov 2008 00:01:37 -0500 Original-Received: from [199.232.76.173] (port=55346 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L1wEy-0007Dt-Hk for emacs-devel@gnu.org; Mon, 17 Nov 2008 00:01:36 -0500 Original-Received: from mail.gmx.net ([213.165.64.20]:54253) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1L1wEx-0008Ut-Lx for emacs-devel@gnu.org; Mon, 17 Nov 2008 00:01:36 -0500 Original-Received: (qmail invoked by alias); 17 Nov 2008 05:01:34 -0000 Original-Received: from p57A22C0E.dip0.t-ipconnect.de (EHLO arthur.local) [87.162.44.14] by mail.gmx.net (mp031) with SMTP; 17 Nov 2008 06:01:34 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX19jLv1/5Sxj+vV/97402pNjmvlfVxklTuXcL2yLC3 gssB32SN2lIhx/ In-Reply-To: (Stefan Monnier's message of "Sun, 09 Nov 2008 10:04:29 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.72 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:105744 Archived-At: Stefan Monnier writes: >>> I agree with the basic premise, but I'm wondering what's the >>> relationship: what kind of machine are you using where loading a .elc >>> file is not virtually instantaneous? > >> Loading a .elc can take arbitrary time since it can contain arbitrary >> code. > > Yes, that's the difference between theory and practice. Tramp needs to initialize variables. For example, setting `tramp-default-method' might call `executable-find' or 'w32-window-exists-p', which consumes time. I don't know, whether it is worth to perform it via `eval-when-compile', because the result might be different every single start of Emacs. > Stefan Best regards, Michael.