From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Niels Freimann Newsgroups: gmane.emacs.help Subject: Re: if both .emacs and .emacs.elc,which one emacs load? Date: Sat, 24 May 2003 08:34:23 +0200 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <200305240834.23296.nfreimann@firemail.de> References: <1xyoi93s.fsf@tu202155.tsinghua.edu.cn> Reply-To: nfreimann@firemail.de NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1053758215 4750 80.91.224.249 (24 May 2003 06:36:55 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 24 May 2003 06:36:55 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Sat May 24 08:36:54 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19JSeD-0001EU-00 for ; Sat, 24 May 2003 08:36:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19JSfM-00071O-8h for gnu-help-gnu-emacs@m.gmane.org; Sat, 24 May 2003 02:38:04 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19JSf6-0006wt-8L for help-gnu-emacs@gnu.org; Sat, 24 May 2003 02:37:48 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19JSf4-0006uW-LR for help-gnu-emacs@gnu.org; Sat, 24 May 2003 02:37:47 -0400 Original-Received: from lmsmtp04.st1.spray.net ([212.78.202.114]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19JSdt-00063M-TJ for help-gnu-emacs@gnu.org; Sat, 24 May 2003 02:36:34 -0400 Original-Received: from linux (p50812070.dip0.t-ipconnect.de [80.129.32.112]) by lmsmtp04.st1.spray.net (Postfix) with ESMTP id E5C3147E8D for ; Sat, 24 May 2003 08:36:19 +0200 (MEST) Original-To: help-gnu-emacs@gnu.org User-Agent: KMail/1.4.3 In-Reply-To: X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:10140 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:10140 try it out and you'll never forget to re-compile: (defun autocompile() "compile itself if ~/.emacs" (interactive) (if (string=3D (buffer-file-name) (concat default-directory ".emacs")) (byte-compile-file (buffer-file-name)))) (add-hook 'after-save-hook 'autocompile()) > Besides, it's not worth your time you'll lose someday when you'll edit > the non-compiled version, expect a change to happen, and you'll forget > to re-compile it, and wonder why your change didn't have any effect