Bugs: Browse | Submit New | Admin

[#9729] Can't byte-compile-file

Date:
2007-04-01 06:36
Priority:
3
Submitted By:
Zhu Zhu (zhuzhu)
Assigned To:
Nobody (None)
Category:
Interface (example)
State:
Open
Summary:
Can't byte-compile-file

Detailed description
when I use M-x byte-compile-file to compile ".emacs", it's fail

My rails.el path: ~/.emacs.d/emacs-rails/rails.el

My .emacs file
--------------------------------

(setq load-path (cons "~/.emacs.d/emacs-rails" load-path))

(defun try-complete-abbrev (old)
  (if (expand-abbrev) t nil))

(setq hippie-expand-try-functions-list
  '(try-complete-abbrev
    try-complete-file-name
    try-expand-dabbrev))

(require 'rails)




*Complie-Log*
--------------------------

While compiling toplevel forms:
  ** assignment to free variable utf-translate-cjk
  ** reference to free variable dired-mode-map
  ** reference to free variable message-mode-map
  !! File error (("Cannot open load file" "rails"))

Add A Comment: Notepad

Please login


Followup

Message
Date: 2007-04-01 08:59
Sender: Steve Purcell

You should not normally byte-compile your .emacs file.  Normal
practice is to byte-compile all other .el files, but leave .emacs
uncompiled.

The problem here is that the emacs-rails directory is added to
your path when your .emacs is *loaded*, not when it is *compiled*.
If you really want to compile your .emacs file, which I would
not advise, then select the (setq load-path ...) line and choose
"Evaluate region" from the "Emacs Lisp" menu
before you try to compile .emacs.

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item