summaryrefslogtreecommitdiff
path: root/cider-mode.el
diff options
context:
space:
mode:
authorRyo Fukumuro <rkworks@o0o.co>2015-12-20 01:41:59 +0900
committerRyo Fukumuro <rkworks@o0o.co>2015-12-20 01:52:19 +0900
commit44cc9c01ba5f119c6e38f0dd6f1da4f44b86944d (patch)
treea2e14e022807bb90013902eff6c102e383f7e893 /cider-mode.el
parent491d5e5510668b17566acfa0e8357b8e6486fdfb (diff)
Fix occasional error when indenting namespace-qualified function
Diffstat (limited to 'cider-mode.el')
-rw-r--r--cider-mode.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/cider-mode.el b/cider-mode.el
index 4eb6c605..6ad29e5a 100644
--- a/cider-mode.el
+++ b/cider-mode.el
@@ -289,7 +289,8 @@ Returns to the buffer in which the command was invoked."
;; There's no indent metadata, but there might be a clojure-mode
;; indent-spec with fully-qualified namespace.
(when (string-match cider-resolve--prefix-regexp symbol-name)
- (when-let ((sym (intern-soft (replace-match (cider-resolve-alias ns (match-string 1 symbol-name))
+ (when-let ((sym (intern-soft (replace-match (save-match-data
+ (cider-resolve-alias ns (match-string 1 symbol-name)))
t t symbol-name 1))))
(get sym 'clojure-indent-function))))))