From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: sunway Newsgroups: gmane.emacs.help Subject: Re: how to byte-compile .el files automatically after save? Date: Mon, 06 Aug 2007 21:26:21 -0700 Organization: http://groups.google.com Message-ID: <1186460781.563107.222040@i13g2000prf.googlegroups.com> References: <1186444100.175756.245490@e9g2000prf.googlegroups.com> <87fy2w6prs.fsf@comcast.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: sea.gmane.org 1186461690 30305 80.91.229.12 (7 Aug 2007 04:41:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 7 Aug 2007 04:41:30 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 07 06:41:20 2007 Return-path: Envelope-to: geh-help-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 1IIGse-00017K-HD for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Aug 2007 06:41:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IIGsN-0003hJ-Bf for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Aug 2007 00:40:59 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!i13g2000prf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-NNTP-Posting-Host: 221.0.80.217 Original-X-Trace: posting.google.com 1186460782 1100 127.0.0.1 (7 Aug 2007 04:26:22 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 7 Aug 2007 04:26:22 +0000 (UTC) In-Reply-To: <87fy2w6prs.fsf@comcast.net> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; zh-CN; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: i13g2000prf.googlegroups.com; posting-host=221.0.80.217; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Original-Xref: shelby.stanford.edu gnu.emacs.help:150792 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:46367 Archived-At: On 8 7 , 10 29 , "Robert D. Crawford" wrote: > sunway writes: > > i have tried after-save-hook, but that will make emacs byte-compile > > other file other than *.el after save. > > Here is one: > > (add-hook 'emacs-lisp-mode-hook > '(lambda () > (make-local-hook 'after-save-hook) > (add-hook 'after-save-hook > '(lambda () > (byte-compile-file buffer-file-name)) > nil t))) > > rdc > -- > Robert D. Crawford rd...@comcast.net > > You'll feel devilish tonight. Toss dynamite caps under a flamenco dancer's > heel. that works,but how to get rid of the *Compile-log* when byte-compile the file? every time when i save the *.el, the *Compile-log* will appear, which is quite annoying.