From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Newsgroups: gmane.emacs.help Subject: Autoload plus extra configurations Date: Mon, 18 May 2009 21:54:27 -0700 (PDT) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1242711796 22955 80.91.229.12 (19 May 2009 05:43:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 May 2009 05:43:16 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 19 07:43:09 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M6I6X-0005oA-F3 for geh-help-gnu-emacs@m.gmane.org; Tue, 19 May 2009 07:43:09 +0200 Original-Received: from localhost ([127.0.0.1]:41037 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M6I6W-00027m-Rb for geh-help-gnu-emacs@m.gmane.org; Tue, 19 May 2009 01:43:08 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!n7g2000prc.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 15 Original-NNTP-Posting-Host: 114.245.223.8 Original-X-Trace: posting.google.com 1242708867 13729 127.0.0.1 (19 May 2009 04:54:27 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 19 May 2009 04:54:27 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: n7g2000prc.googlegroups.com; posting-host=114.245.223.8; posting-account=VidhwQoAAAClDZCDm61050TEZVFYPse- User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_5_7; en-us) AppleWebKit/528.18.1 (KHTML, like Gecko) Version/4.0 Safari/528.17, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:169309 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:64561 Archived-At: I'm shifting a bunch of libraries to autoload in order to reduce load times, and running into an issue with extra configuration for those autoloaded libraries. Tramp, for instance, is enormous and slow and I don't use it often. I want to autoload it, but I've also got some extra configuration that accesses tramp-default-methods and tramp-set- completion-fuction, which are unavailable until tramp is actually loaded. Is there a way that I can tuck these configurations inside a hook that runs only when tramp is actually loaded, or otherwise delay the evaluation of these configurations until the proper variables and functions are available? Thanks! Eric