help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to halt a loading file


From: Kevin Rodgers
Subject: Re: How to halt a loading file
Date: Sat, 29 Mar 2008 09:15:26 -0600
User-agent: Thunderbird 2.0.0.12 (Macintosh/20080213)

orium wrote:
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)

(error "~/.emacs compiled, load terminated")

--
Kevin Rodgers
Denver, Colorado, USA





reply via email to

[Prev in Thread] Current Thread [Next in Thread]