From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#940: Is there a way to quit loading of ~/.emacs please? Date: Tue, 09 Sep 2008 10:52:20 -0400 Message-ID: References: Reply-To: Stefan Monnier , 940@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1220973178 7247 80.91.229.12 (9 Sep 2008 15:12:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Sep 2008 15:12:58 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, 940@emacsbugs.donarmstrong.com To: Yiyi Hu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 09 17:13:50 2008 Return-path: Envelope-to: geb-bug-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 1Kd4pg-0007OK-50 for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Sep 2008 17:08:44 +0200 Original-Received: from localhost ([127.0.0.1]:38394 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kd4of-0006wB-Mj for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Sep 2008 11:07:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kd4ob-0006vn-3o for bug-gnu-emacs@gnu.org; Tue, 09 Sep 2008 11:07:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kd4oa-0006uw-02 for bug-gnu-emacs@gnu.org; Tue, 09 Sep 2008 11:07:36 -0400 Original-Received: from [199.232.76.173] (port=47628 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kd4oZ-0006ul-NG for bug-gnu-emacs@gnu.org; Tue, 09 Sep 2008 11:07:35 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:38428) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kd4oZ-0003sm-7z for bug-gnu-emacs@gnu.org; Tue, 09 Sep 2008 11:07:35 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m89F7WXI026917; Tue, 9 Sep 2008 08:07:33 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m89F047Y023168; Tue, 9 Sep 2008 08:00:04 -0700 X-Loop: don@donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 09 Sep 2008 15:00:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 940 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122097195021085 (code B ref -1); Tue, 09 Sep 2008 15:00:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 9 Sep 2008 14:52:30 +0000 Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m89EqQmP021076 for ; Tue, 9 Sep 2008 07:52:28 -0700 Original-Received: from mail.gnu.org ([199.232.76.166]:47500 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Kd4YC-0007hb-JG for emacs-pretest-bug@gnu.org; Tue, 09 Sep 2008 10:50:40 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Kd4Zq-0008O6-8K for emacs-pretest-bug@gnu.org; Tue, 09 Sep 2008 10:52:25 -0400 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:15196 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kd4Zp-0008Nf-Fb for emacs-pretest-bug@gnu.org; Tue, 09 Sep 2008 10:52:21 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsAEADMqxkhFxIqP/2dsb2JhbACBZbRYgWSBBw X-IronPort-AV: E=Sophos;i="4.32,365,1217822400"; d="scan'208";a="26560186" Original-Received: from 69-196-138-143.dsl.teksavvy.com (HELO pastel.home) ([69.196.138.143]) by ironport2-out.teksavvy.com with ESMTP; 09 Sep 2008 10:52:20 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 8737F54279; Tue, 9 Sep 2008 10:52:20 -0400 (EDT) In-Reply-To: (Yiyi Hu's message of "Tue, 9 Sep 2008 14:50:15 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-CrossAssassin-Score: 2 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Tue, 09 Sep 2008 11:07:36 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:20394 gmane.emacs.pretest.bugs:23027 Archived-At: > 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