I'm getting the error
Source file `~/.emacs.d/elpa/cmake-mode-20110824/cmake-mode.el' newer than byte-compiled file
when I attempt to open a CMakeLists.txt file in cmake-mode.
My .emacs consists (in part) of the following:
(setq load-path (cons
(expand-file-name "~/.emacs.d/elpa/cmake-mode-20110824")
load-path))
(require 'cmake-mode)
(setq auto-mode-alist
(append '(("CMakeLists\\.txt\\'" . cmake-mode)
("\\.cmake\\'" . cmake-mode))
auto-mode-alist))
The backtrace:
Debugger entered--Lisp error: (wrong-type-argument char-table-p nil)
char-table-parent(nil)
cmake-mode()
set-auto-mode-0(cmake-mode nil)
set-auto-mode()
normal-mode(t)
after-find-file(nil t)
find-file-noselect-1(#<buffer CMakeLists.txt> "~/CMakeLists.txt" nil nil "~/CMakeLists.txt" (19923691 2049))
find-file-noselect("~/CMakeLists.txt" nil nil t)
find-file("~/CMakeLists.txt" t)
call-interactively(find-file nil nil)
I'm confused by why this error is occurring. Disclaimer: I am an emacs and elisp noob.
The problem is probably within your cmake-mode
which is quite outdated.
Here's how to fix it:
emacs24
In your ~/.emacs
:
(package-initialize)
(add-to-list 'package-archives
'("melpa" . "http://melpa.milkbox.net/packages/"))
M-x package-list-packages
. Find cmake-mode
with C-s.
Mark for installation with i and install with x.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With