-
-
Notifications
You must be signed in to change notification settings - Fork 247
Fix clojure-find-ns when there's a ns form inside a string #519
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
clojure-mode.el
Outdated
(and (goto-char (point-min)) | ||
(re-search-forward clojure-namespace-name-regex nil t))) | ||
(match-string-no-properties 4)))))) | ||
(let* ((ns (save-excursion |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to me a regular let
would do here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
clojure-mode.el
Outdated
@@ -1886,6 +1886,19 @@ the cached value will be updated automatically." | |||
(defvar-local clojure-cached-ns nil | |||
"A buffer ns cache used to speed up ns-related operations.") | |||
|
|||
(defun clojure--find-ns-in-direction (dir) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Every time I see dir
I think of directory, but that's not a big deal. It's a good idea to extract this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No reason to be lazy anyway. Changed it to direction.
Thanks! |
Replace this placeholder text with a summary of the changes in your PR.
Before submitting a PR mark the checkboxes for the items you've done (if you
think a checkbox does not apply, then leave it unchecked):
M-x checkdoc
and fixed any warnings in the code you've written.Thanks!