Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

changed package detection regexp to take meta-data declaration into c…

…onsideration. Still has issues when the metadata contains braces or escaped quotes.
  • Loading branch information...
commit 2b35c80d6bf70ddfe3f9c2f238b94108df8af17a 1 parent b28277c
@hugoduncan hugoduncan authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 swank-clojure.el
4 swank-clojure.el
@@ -159,11 +159,11 @@ this, keep that in mind."
(format "%s" (slime-coding-system-cl-name encoding)))))
(defun swank-clojure-find-package ()
- (let ((regexp "^(\\(clojure.core/\\)?\\(in-\\)?ns\\s-+[:']?\\([^()\" \t\n]+\\>\\)"))
+ (let ((regexp "^(\\(clojure.core/\\)?\\(in-\\)?ns[ \t\n\r]+\\(#\\^{[^}]+}[ \t\n\r]+\\)?[:']?\\([^()\" \t\n]+\\>\\)"))
(when (or (re-search-backward regexp nil t)
(re-search-forward regexp nil t))
- (match-string-no-properties 3)))))
+ (match-string-no-properties 4)))))
(defun swank-clojure-slime-mode-hook ()
Please sign in to comment.
Something went wrong with that request. Please try again.