all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: orium <orium69@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: How to halt a loading file
Date: Thu, 27 Mar 2008 19:43:48 -0700 (PDT)	[thread overview]
Message-ID: <05162b4a-45e5-445c-90f3-71e05872e254@i12g2000prf.googlegroups.com> (raw)

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


             reply	other threads:[~2008-03-28  2:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-28  2:43 orium [this message]
2008-03-29 15:15 ` How to halt a loading file Kevin Rodgers
     [not found] ` <mailman.9577.1206803738.18990.help-gnu-emacs@gnu.org>
2008-03-29 16:25   ` Pascal Bourguignon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=05162b4a-45e5-445c-90f3-71e05872e254@i12g2000prf.googlegroups.com \
    --to=orium69@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.