There is probably something wrong with my setup. When I start
clojure-mode (GNU Emacs 21.3.1, Linux) I get an error:
Debugger entered--Lisp error: (wrong-number-of-arguments
#[(lisp-syntax) "<BINARYDATA>" [lisp-syntax lisp-mode-syntax-table
lisp-mode-abbrev-table local-abbrev-table page-delimiter
paragraph-start set-syntax-table make-local-variable "\\|$"
paragraph-separate paragraph-ignore-fill-prefix t
fill-paragraph-function lisp-fill-paragraph adaptive-fill-mode nil
normal-auto-fill-function lisp-mode-auto-fill indent-line-function
lisp-indent-line indent-region-function lisp-indent-region
parse-sexp-ignore-comments outline-regexp ";;;;* \\|(" outline-level
lisp-outline-level comment-start ";" comment-start-skip
"\\(\\(^\\|[^\\\\
]\\)\\(\\\\\\\\\\)*\\);+ *" comment-add 1 comment-column 40
comment-indent-function lisp-comment-indent imenu-generic-expression
multibyte-syntax-as-symbol ((lisp-font-lock-keywords
lisp-font-lock-keywords-1 lisp-font-lock-keywords-2) nil nil
(("+-*/.<>=!?$%_&~^:" . "w")) beginning-of-defun
(font-lock-mark-block-function . mark-defun))
lisp-imenu-generic-expression font-lock-defaults] 2] 0)
lisp-mode-variables()
clojure-mode()
* call-interactively(clojure-mode)
execute-extended-command(nil)
* call-interactively(execute-extended-command)
There is also something wrong with the inferior-lisp-program. I've
checked that the command is set properly to:
"/usr/bin/java -cp ~/clojure/clojure.jar clojure.lang.Repl ~/clojure/boot.clj"
This command when run in a shell gives me the clojure's REPL.
However, selecting "Run Lisp" from Clojure menu in Emacs fails with a message:
Exception in thread "main" java.lang.NoClassDefFoundError: clojure/lang/Repl
Process inferior-lisp exited abnormally with code 1
Cheers,
-r.
The problems from my previous email are now solved but I am getting
another error:
Debugger entered--Lisp error: (void-variable font-lock-extend-region-functions)
add-to-list(font-lock-extend-region-functions
clojure-font-lock-extend-region-def t)
(progn (add-to-list (quote font-lock-extend-region-functions) (quote
clojure-font-lock-extend-region-def) t))
(if clojure-mode-font-lock-multine-def (progn (add-to-list ... ... t)))
(when clojure-mode-font-lock-multine-def (add-to-list (quote
font-lock-extend-region-functions) (quote
clojure-font-lock-extend-region-def) t))
clojure-mode()
* call-interactively(clojure-mode)
execute-extended-command(nil)
* call-interactively(execute-extended-command)
Thanks,
-r.
Two more observations:
1. The error message related to font-lock-extend-region-function has
gone. Unfortunately, all the partial syntax highlighting (comments,
text literals, special forms) I used to have in previous version have
gone as well.
2. I am getting one more error:
Debugger entered--Lisp error: (void-function run-mode-hooks)
(run-mode-hooks (quote clojure-mode-hook))
clojure-mode()
* call-interactively(clojure-mode)
execute-extended-command(nil)
* call-interactively(execute-extended-command)
Thanks,
-r.