From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Micha Feigin Newsgroups: gmane.emacs.help Subject: Re: loading site start before .emacs Date: Tue, 18 May 2004 15:16:18 +0300 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <20040518121618.GF3540@luna.mooo.com> References: <871xlidrkq.fsf@tiger.rapttech.com.au> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1084889973 7943 80.91.224.253 (18 May 2004 14:19:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 18 May 2004 14:19:33 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 18 16:19:22 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 1BQ5RC-0007PI-00 for ; Tue, 18 May 2004 16:19:22 +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 1BQ4to-0002zP-Vm for geh-help-gnu-emacs@m.gmane.org; Tue, 18 May 2004 09:44:53 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BQ4Ph-0006I0-9P for help-gnu-emacs@gnu.org; Tue, 18 May 2004 09:13:45 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BQ3r6-0002eh-Nt for help-gnu-emacs@gnu.org; Tue, 18 May 2004 08:38:34 -0400 Original-Received: from [192.115.104.9] (helo=napo.bezeqint.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BQ3Ub-00082b-QX for help-gnu-emacs@gnu.org; Tue, 18 May 2004 08:14:47 -0400 Original-Received: from napo.bezeqint.net (localhost [127.0.0.1]) by napo.bezeqint.net (Bezeq International SMTP out Mail Server) with SMTP id DCD9BFC294 for ; Tue, 18 May 2004 15:14:34 +0300 (IDT) Original-Received: from litshi.luna.local ([IP=81.218.230.126]) by eSafe SMTP Relay 1084881624; Tue May 18 15:14:34 2004 Original-Received: from micha by litshi.luna.local with local (Exim 4.34) id 1BQ3W6-0002no-LP for help-gnu-emacs@gnu.org; Tue, 18 May 2004 15:16:18 +0300 Original-To: help-gnu-emacs@gnu.org Mail-Followup-To: help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: <871xlidrkq.fsf@tiger.rapttech.com.au> User-Agent: Mutt/1.5.6i X-ESAFE-STATUS: Mail clean X-ESAFE-DETAILS: Clean 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:18555 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:18555 On Tue, May 18, 2004 at 07:15:17PM +1000, Tim X wrote: > >>>>> "David" == David Kastrup writes: > > David> 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. > > David> Obviously false. preview-latex might be added into the > David> 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. > > David> (load "preview-latex") does not load preview-latex. Take a > David> look at that file's contents. It merely defines the autoloads > David> for preview-latex so that any references to preview-latex > David> functions will then cause preview-latex to be loaded. In > David> addition, it enters the preview-latex setup function into > David> LaTeX-mode-hook. > > David> In short: preview-latex is most certainly not loaded, and not > David> even initialized, automatically by the site file as you claim. > > I think some further evidence that the OP may be on the wrong track is > that according to the emacs info pages, the site-startup.el file is > loaded BEFORE the users .emacs file > Thanks to the comments I found out my mistake. preview-latex is setup properly. I just used bad examples for setting up mode hooks and used setq instead of add-hood, which, if I understand correctly, removed previous hooks, and thus removed the preview latex hook. > ,---- From The Init File, `~/.emacs' Info Node > | Your site may also have a "site startup file"; this is named > | `site-start.el', if it exists. Like `default.el', Emacs finds this > | file via the standard search path for Lisp libraries. Emacs loads this > | library before it loads your init file. To inhibit loading of this > | library, use the option `-no-site-file'. *Note Initial Options::. > `---- > > Tim > > -- > Tim Cross > The e-mail address on this message is FALSE (obviously!). My real e-mail is > to a company in Australia called rapttech and my login is tcross - if you > really need to send mail, you should be able to work it out! > _______________________________________________ > Help-gnu-emacs mailing list > Help-gnu-emacs@gnu.org > http://mail.gnu.org/mailman/listinfo/help-gnu-emacs > > +++++++++++++++++++++++++++++++++++++++++++ > This Mail Was Scanned By Mail-seCure System > at the Tel-Aviv University CC. >