Hi all, Adding the below to your .emacs will make slime change packages correctly according to (in-ns 'foo).
All I did was alter slime-search-buffer-package in slime.el to create slime-search-buffer-package-clojure. The standard common-lisp patterns are still valid. Something like this could go in swank-closure-autoloads.el, too. I am about ready to start hacking with clojure now. :-) -Luke (defun slime-search-buffer-package-clojure () (let ((case-fold-search t) (regexp (concat "^(\\(cl:\\|common-lisp:\\)?in-\\(package\\|ns\\)\\>[ \t']*" "\\([^)]+\\)[ \t]*)"))) (save-excursion (when (or (re-search-backward regexp nil t) (re-search-forward regexp nil t)) (match-string-no-properties 3))))) (setf slime-find-buffer-package-function 'slime-search-buffer-package-clojure) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---