Skip to content

Commit

Permalink
Fix occasional error when indenting namespace-qualified function
Browse files Browse the repository at this point in the history
  • Loading branch information
rfkm committed Dec 19, 2015
1 parent 491d5e5 commit 44cc9c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ and try to associate the created connection with this project automatically.
* [#1450](https://github.com/clojure-emacs/cider/pull/1450): Fix an error in `cider-restart` caused by a reference to a killed buffer.
* [#1459](https://github.com/clojure-emacs/cider/issues/1459): Add support for dynamic dispatch in scratch buffers.
* [#1466](https://github.com/clojure-emacs/cider/issues/1466): Correctly font-lock pretty-printed results in the REPL.
* [#1475](https://github.com/clojure-emacs/cider/pull/1475): Fix `args-out-of-range` error in `cider--get-symbol-indent`.

## 0.10.0 / 2015-12-03

Expand Down
3 changes: 2 additions & 1 deletion cider-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -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))))))

Expand Down

0 comments on commit 44cc9c0

Please sign in to comment.