From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: byte-compile .el's upon saving [was Re: batch-byte-compile .gnus.el] Date: Fri, 17 Sep 2004 04:28:32 +0800 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <877jqu5573.fsf@jidanni.org> References: <87wtz3xet8.fsf@jidanni.org> <0c7jr2o96i.fsf@violetta.imada.sdu.dk> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1095366865 2105 80.91.229.6 (16 Sep 2004 20:34:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 16 Sep 2004 20:34:25 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org, bugs@gnus.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 16 22:34:10 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1C82xG-0001y3-00 for ; Thu, 16 Sep 2004 22:34:10 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C832w-00027E-Se for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 Sep 2004 16:40:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C832s-00026x-7u for bug-gnu-emacs@gnu.org; Thu, 16 Sep 2004 16:39:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C832r-00026l-9I for bug-gnu-emacs@gnu.org; Thu, 16 Sep 2004 16:39:57 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C832r-00026i-5p for bug-gnu-emacs@gnu.org; Thu, 16 Sep 2004 16:39:57 -0400 Original-Received: from [203.79.224.63] (helo=smtp2.apol.com.tw) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C82wq-000167-PT for bug-gnu-emacs@gnu.org; Thu, 16 Sep 2004 16:33:45 -0400 Original-Received: from jidanni1 (TC218-187-82-28.2-7.dynamic.apol.com.tw [218.187.82.28]) by smtp2.apol.com.tw (8.9.3/8.9.3) with ESMTP id EAA31120236; Fri, 17 Sep 2004 04:33:16 +0800 (CST) Original-Received: from jidanni by jidanni1 with local (Exim 4.34) id 1C82ro-0000j9-TY; Fri, 17 Sep 2004 04:28:32 +0800 Original-Newsgroups: gnu.emacs.gnus Posted-To: gnu.emacs.gnus 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:9029 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:9029 The following message is a courtesy copy of an article that has been posted to gnu.emacs.gnus as well. This one is so good, perhaps it should go into various manuals: >>>>> "A" == Andrew Swann mails me: A> Another suggestion that might help is the following I have in my A> .emacs.el that causes byte-compilation of elisp files on saving. I A> got this from the net at some point, but don't recall where. A> (add-hook 'emacs-lisp-mode-hook A> '(lambda () A> (make-local-hook 'after-save-hook) A> (add-hook 'after-save-hook A> '(lambda () A> (byte-compile-file buffer-file-name) A> ) nil t) A> ));; emacs-lisp-mode-hook