unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: wrong-type-argument when ~/.emacs is byte compiled
Date: Thu, 12 May 2005 09:24:37 -0600	[thread overview]
Message-ID: <d5vs15$5u8$1@sea.gmane.org> (raw)
In-Reply-To: <87psvxl0sl.fsf@quasar.esben-stien.name>

Esben Stien wrote:
 > I have this code in my ~/.emacs to automatically byte compile when I
 > save the file.
 >
 > (defun autocompile nil
 >   "compile itself if ~/.emacs"
 >   (interactive)
 >   (require 'bytecomp)
 >   (if (string= (buffer-file-name) (expand-file-name (concat 
default-directory ".emacs")))
 > (byte-compile-file (buffer-file-name))))
 >   (add-hook 'after-save-hook 'autocompile)

That will automatically byte compile .emacs files in any directory.

-- 
Kevin Rodgers

  reply	other threads:[~2005-05-12 15:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-12  0:56 wrong-type-argument when ~/.emacs is byte compiled Esben Stien
2005-05-12 15:24 ` Kevin Rodgers [this message]
     [not found] <mailman.4745.1115860035.2819.help-gnu-emacs@gnu.org>
2005-05-12  4:03 ` Stefan Monnier
2005-05-12 13:15   ` Esben Stien
2005-05-12 10:13 ` Thien-Thi Nguyen
2005-05-12 14:40 ` Johan Bockgård

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='d5vs15$5u8$1@sea.gmane.org' \
    --to=ihs_4664@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).