From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: run/load a lisp script before user init file Date: Mon, 07 Oct 2013 22:00:43 +0300 Message-ID: <8361t86h44.fsf@gnu.org> References: <5252D236.8000903@poczta.onet.pl> <83a9il58wc.fsf@gnu.org> <525300A3.1040506@poczta.onet.pl> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1381172461 15609 80.91.229.3 (7 Oct 2013 19:01:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Oct 2013 19:01:01 +0000 (UTC) Cc: emacs-devel@gnu.org To: Jarek Czekalski Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 07 21:01:04 2013 Return-path: Envelope-to: ged-emacs-devel@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 1VTG3D-0002VB-EU for ged-emacs-devel@m.gmane.org; Mon, 07 Oct 2013 21:01:03 +0200 Original-Received: from localhost ([::1]:32976 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTG3C-0004bS-Tt for ged-emacs-devel@m.gmane.org; Mon, 07 Oct 2013 15:01:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41624) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTG34-0004Zg-Os for emacs-devel@gnu.org; Mon, 07 Oct 2013 15:01:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VTG2z-0002BV-7X for emacs-devel@gnu.org; Mon, 07 Oct 2013 15:00:54 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:52118) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTG2y-0002B2-Vh for emacs-devel@gnu.org; Mon, 07 Oct 2013 15:00:49 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MUB00000BGYXD00@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Mon, 07 Oct 2013 22:00:47 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MUB000RMBHBN680@a-mtaout20.012.net.il>; Mon, 07 Oct 2013 22:00:47 +0300 (IDT) In-reply-to: <525300A3.1040506@poczta.onet.pl> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:163962 Archived-At: > Date: Mon, 07 Oct 2013 20:42:43 +0200 > From: Jarek Czekalski > > W dniu 10/07/2013 06:43 PM, Eli Zaretskii pisze: > > Site init file looks like what you want. Read about it in the "Init > > File" node of the Emacs User Manual. > > I read the startup procedure. However it still does not seem a clean > approch. You suggest that I should add a line > > (load "emacspeak-loder") > > to the site-start, right? But when someone removes emacspeak from > system, emacs will stop to load correctly. Not nice. If that's the problem, you can detect the presence of emacspeak first, or wrap the load in ignore-errors or some such. IOW, this is a problem that is much easier to solve in any number of ways. > So should I place some multi-line code in site-start, so that it be safe > to execute? But this is not so easy to do from installer. So this may be > dangerous too. I don't see why would this be dangerous, especially on Windows. Chances of such a file to exist on Windows are nil. > Again, does there exist any clean solution? AFAICS, what I suggest above is clean.