GNU bug report logs - #940
Is there a way to quit loading of ~/.emacs please?

Previous Next

Package: emacs;

Reported by: "Yiyi Hu" <yiyihu <at> gmail.com>

Date: Tue, 9 Sep 2008 07:00:03 UTC

Severity: wishlist

Tags: notabug, wontfix

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #20 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Yiyi Hu <yiyihu <at> gmail.com>
Cc: 940 <at> debbugs.gnu.org, emacs-pretest-bug <at> gnu.org
Subject: Re: bug#940: Is there a way to quit loading of ~/.emacs please?
Date: Tue, 09 Sep 2008 10:52:20 -0400
> Is there a way to quit the loading after we compile the ~/.emacs and
> load the ~/.emacs.elc file?

Of course:

 (defun byte-compile-file-if-newer (src)
   (let ((result (concat src ".elc")))
     (when (file-newer-than-file-p src result)
       (byte-compile-file src)
       (load-file result)
       t)))

 (unless (byte-compile-file-if-newer "~/.emacs")
   ... the rest of your .emacs...
   )


-- Stefan




This bug report was last modified 13 years and 230 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.