From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: orium Newsgroups: gmane.emacs.help Subject: How to halt a loading file Date: Thu, 27 Mar 2008 19:43:48 -0700 (PDT) Organization: http://groups.google.com Message-ID: <05162b4a-45e5-445c-90f3-71e05872e254@i12g2000prf.googlegroups.com> 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 1206675644 14699 80.91.229.12 (28 Mar 2008 03:40:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Mar 2008 03:40:44 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 28 04:41:15 2008 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 1Jf5Sr-0002QW-Lw for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Mar 2008 04:41:13 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jf5SF-0004oP-Ub for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Mar 2008 23:40:35 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!i12g2000prf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Original-NNTP-Posting-Host: 213.205.69.24 Original-X-Trace: posting.google.com 1206672228 8301 127.0.0.1 (28 Mar 2008 02:43:48 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 28 Mar 2008 02:43:48 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: i12g2000prf.googlegroups.com; posting-host=213.205.69.24; posting-account=pSaxzgoAAAD_3GlMB35r7tiNYXGf6Xg- User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9b4) Gecko/2008030318 Firefox/3.0b4,gzip(gfe),gzip(gfe) Original-Xref: shelby.stanford.edu gnu.emacs.help:157389 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:52759 Archived-At: Hi, everybody. I am not a lisp coder, so this may have a obvious answer. I need to halt .emacs in its execution: (defun compile-emacs-config-file () "Compiles ~/.emacs" (if (file-newer-than-file-p "~/.emacs" "~/.emacs.elc") (progn (setq byte-compile-warnings nil) (byte-compile-file "~/.emacs" t) ; Compile and load (setq byte-compile-warnings t) ;HALT - I need the loading of this file to halt and don't execute anything else of this file ))) (compile-emacs-config-file) I can't put everything else in the else part of that if because I have variables set by emacs customize browser, which probably only work if it is not inside a function (my guess). Thank you