From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.help Subject: Re: loading site start before .emacs Date: 18 May 2004 09:02:23 +0200 Organization: Organization?!? Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1084864820 13244 80.91.224.253 (18 May 2004 07:20:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 18 May 2004 07:20:20 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 18 09:20:15 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BPyta-0006fN-00 for ; Tue, 18 May 2004 09:20:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BPyqD-0006TW-0G for geh-help-gnu-emacs@m.gmane.org; Tue, 18 May 2004 03:16:45 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsmi-us.news.garr.it!newsmi-eu.news.garr.it!NewsITBone-GARR!fu-berlin.de!uni-berlin.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 40 Original-X-Trace: news.uni-berlin.de WH3MtXY98s3KhXb6H0P82QBA9KYcP6FVVX9ZydOUdOxhGchmOI X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-Xref: shelby.stanford.edu gnu.emacs.help:123254 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:18549 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:18549 Micha Feigin writes: > On Tue, May 18, 2004 at 01:08:46AM +0200, David Kastrup wrote: > > Micha Feigin writes: > > > > > Is it possible (and are there any issues) to make the site startup > > > files load before .emacs? > > > > > > the desktop package seems to have problems with a lot of things if they > > > are not being loaded before desktop-read is called (I had issues with > > > ecp and now with preview-latex). > > > > What issues? preview-latex should work fine with desktop as long as > > the respective autoloads for AUCTeX (in tex-site.el) and > > preview-latex have already been defined. This is not about _loading_ > > those packages, but about providing the necessary load information > > when desktop-read decides to call upon them. > > > > preview-latex is loaded automatically by the site file, so when I open > new latex files it is available. Obviously false. preview-latex might be added into the load-path by your site file, but that appears to be about it. > When using desktop, unless I add (load "preview-latex") before > desktop-read then preview latex is not available for latex files > opened by desktop for some reason. (load "preview-latex") does not load preview-latex. Take a look at that file's contents. It merely defines the autoloads for preview-latex so that any references to preview-latex functions will then cause preview-latex to be loaded. In addition, it enters the preview-latex setup function into LaTeX-mode-hook. In short: preview-latex is most certainly not loaded, and not even initialized, automatically by the site file as you claim. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum