From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.help Subject: Re: Byte Compile Question Date: Tue, 31 Jul 2012 05:52:48 -0700 (PDT) Organization: http://groups.google.com Message-ID: <4e8bb8c4-e64b-4efb-bcd8-40a7c7177b0d@h8g2000pbt.googlegroups.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1343739315 12798 80.91.229.3 (31 Jul 2012 12:55:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 31 Jul 2012 12:55:15 +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 Jul 31 14:55:14 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SwByk-0002Am-42 for geh-help-gnu-emacs@m.gmane.org; Tue, 31 Jul 2012 14:55:14 +0200 Original-Received: from localhost ([::1]:37117 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwByj-0003V8-IN for geh-help-gnu-emacs@m.gmane.org; Tue, 31 Jul 2012 08:55:13 -0400 Original-Path: usenet.stanford.edu!postnews.google.com!h8g2000pbt.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 42 Original-NNTP-Posting-Host: 76.126.112.84 Original-X-Trace: posting.google.com 1343739168 32756 127.0.0.1 (31 Jul 2012 12:52:48 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 31 Jul 2012 12:52:48 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: h8g2000pbt.googlegroups.com; posting-host=76.126.112.84; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.57 Safari/536.11,gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:193762 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:86134 Archived-At: byte-compile elisp buffer on save, only if a byte-compiled file exists. (defun byte-compile-current-buffer () "`byte-compile' current buffer if it's emacs-lisp-mode and compiled file exists." (interactive) (when (and (eq major-mode 'emacs-lisp-mode) (file-exists-p (byte-compile-dest-file buffer-file- name))) (byte-compile-file buffer-file-name))) (add-hook 'after-save-hook 'byte-compile-current-buffer) code part from Adolfo Benedetti. some other tips: =E3=80=88Organize Your =E2=80=9Cdot emacs=E2=80=9D Init File in 5 Minutes= =E3=80=89 http://ergoemacs.org/emacs/organize_your_dot_emacs.html btw, there's lots alternatives on emacswiki. Xah On Jul 27, 7:44=C2=A0am, Perry Smith wrote: > Hi, > > I have the belief that byte compiling only helps with loading files and t= hat once they are loaded, the code will execute at the same speed. > > Is that correct? > > Byte compiling all my personal files is a bit awkward for a couple of rea= sons. =C2=A0I considering not doing it any more but wanted to know all the = tradeoffs. > > If you can, please CC me on your replies. > > Thank you, > Perry Smith