With SLIME from 20080216, I cannot seem to include slime-asdf in the list passed to SLIME-SETUP getting the following error in Emacs 22.1 *Messages*:
require: Symbol's value as variable is void: slime-repl-load/force-system
for the following SLIME initialization code in '.emacs'
(require 'slime-autoloads) (setq slime-lisp-implementations `((sbcl ("/opt/local/bin/sbcl")))) (add-hook 'lisp-mode-hook (lambda () (cond ((not (featurep 'slime)) (require 'slime) (normal-mode))))) (eval-after-load "slime" '(slime-setup '(slime-fancy slime-asdf slime-banner)))
Without the 'slime-asdf' in the list passed to SLIME-SETUP, everything works just fine. Can anyone spare a clue as to what I am doing wrong?
Mark Evenson wrote:
With SLIME from 20080216, I cannot seem to include slime-asdf in the list passed to SLIME-SETUP getting the following error in Emacs 22.1 *Messages*:
require: Symbol's value as variable is void: slime-repl-load/force-system
for the following SLIME initialization code in '.emacs'
(require 'slime-autoloads) (setq slime-lisp-implementations `((sbcl ("/opt/local/bin/sbcl")))) (add-hook 'lisp-mode-hook (lambda () (cond ((not (featurep 'slime)) (require 'slime) (normal-mode))))) (eval-after-load "slime" '(slime-setup '(slime-fancy slime-asdf slime-banner)))
Without the 'slime-asdf' in the list passed to SLIME-SETUP, everything works just fine. Can anyone spare a clue as to what I am doing wrong?
You do not appear to have any code that tells SLIME/Emacs where to find the 'contrib' elisp code. Something like the following should fix your EVAL-AFTER-LOAD expression:
(eval-after-load "slime" '(progn (add-to-list 'load-path "/path/to/your/slime/contrib/subdirectory") (slime-setup '(slime-fancy slime-asdf slime-banner)))
This was recently (Feb. 2) discussed. "Why not automatically add the contribs directory?"
Mark Harig wrote:
Mark Evenson wrote:
With SLIME from 20080216, I cannot seem to include slime-asdf in the list passed to SLIME-SETUP getting the following error in Emacs 22.1 *Messages*:
I spoke too soon. Based on your use of SLIME from 20080216, you already have the requisite code for setting 'load-path' in slime-autoloads.el, and should not need to add the additional elisp code.
Mark Evenson wrote:
With SLIME from 20080216, I cannot seem to include slime-asdf in the list passed to SLIME-SETUP getting the following error in Emacs 22.1 *Messages*:
With SLIME 2008-02-17, this error no longer occurs for me: I am to load slime-asdf from the slime-setup initialization list just fine via my initialization code.
Mark Evenson wrote:
Mark Evenson wrote:
With SLIME from 20080216, I cannot seem to include slime-asdf in the list passed to SLIME-SETUP getting the following error in Emacs 22.1 *Messages*:
With SLIME 2008-02-17, this error no longer occurs for me: I am to load slime-asdf from the slime-setup initialization list just fine via my initialization code.
Have you added initialization code to set the Emacs 'load-path' variable? The current revisions of slime.el (1.905) and slime-autoloads.el (1.4) contain an error that sets 'load-path' incorrectly for the location of the 'contrib' code. If you have added initialization code that sets 'load-path' correctly, then this will mask those errors. A suggested patch to the SLIME code is included in this thread: