Skip to content

Commit 0f64a61

Browse files
authored
Merge pull request #1808 from cskksc/minor-changes
Minor changes
2 parents 116d181 + 2335dff commit 0f64a61

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

cider-client.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,10 +1101,10 @@ If CONN is not provided the user will be prompted to select a connection."
11011101
"Change the DESIGNATION in cider buffer names.
11021102
Buffer names changed are cider-repl and nrepl-server."
11031103
(interactive (list (read-string (format "Change CIDER buffer designation from '%s': "
1104-
(cider-extract-designation-from-current-repl-buffer)))))
1104+
(cider-extract-designation-from-current-repl-buffer)))))
11051105
(cider-ensure-connected)
11061106
(let ((new-repl-buffer-name (nrepl-format-buffer-name-template
1107-
nrepl-repl-buffer-name-template designation)))
1107+
nrepl-repl-buffer-name-template designation)))
11081108
(with-current-buffer (cider-current-repl-buffer)
11091109
(rename-buffer new-repl-buffer-name)
11101110
(when nrepl-server-buffer

cider-eldoc.el

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,7 @@ is non-nil. Else format it as a variable."
120120
(if-let ((method-name (if (and symbol (not (string= symbol "")))
121121
symbol
122122
thing))
123-
(propertized-method-name (if (equal type 'function)
124-
(cider-propertize method-name 'fn)
125-
(cider-propertize method-name 'var)))
123+
(propertized-method-name (cider-propertize method-name type))
126124
(ns-or-class (if (and ns (stringp ns))
127125
(funcall cider-eldoc-ns-function ns)
128126
(cider--eldoc-format-class-names ns))))
@@ -214,7 +212,7 @@ arglists. ELDOC-INFO is a p-list containing the eldoc information."
214212
(symbol (lax-plist-get eldoc-info "symbol"))
215213
(arglists (lax-plist-get eldoc-info "arglists")))
216214
(format "%s: %s"
217-
(cider-eldoc-format-thing ns symbol thing 'function)
215+
(cider-eldoc-format-thing ns symbol thing 'fn)
218216
(cider-eldoc-format-arglist arglists pos))))
219217

220218
(defun cider-highlight-args (arglist pos)
@@ -295,7 +293,7 @@ if the maximum number of sexps to skip is exceeded."
295293
"Return the type of the thing being displayed by eldoc.
296294
It can be a function or var now."
297295
(pcase (lax-plist-get eldoc-info "type")
298-
("function" 'function)
296+
("function" 'fn)
299297
("variable" 'var)))
300298

301299
(defun cider-eldoc-info-at-point ()
@@ -417,7 +415,7 @@ Only useful for interop forms. Clojure forms would be returned unchanged."
417415
(pos (lax-plist-get sexp-eldoc-info "pos"))
418416
(thing (lax-plist-get sexp-eldoc-info "thing")))
419417
(when eldoc-info
420-
(if (equal (cider-eldoc-thing-type eldoc-info) 'function)
418+
(if (equal (cider-eldoc-thing-type eldoc-info) 'fn)
421419
(cider-eldoc-format-function thing pos eldoc-info)
422420
(cider-eldoc-format-variable thing pos eldoc-info))))))
423421

cider-repl.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ Currently, this is only used to keep `cider-repl-type' updated."
208208
(when-let ((ns-dict (or (nrepl-dict-get changed-namespaces (cider-current-ns))
209209
(let ((ns-dict (cider-resolve--get-in (cider-current-ns))))
210210
(when (seq-find (lambda (ns) (nrepl-dict-get changed-namespaces ns))
211-
(nrepl-dict-get ns-dict "aliases"))
211+
(nrepl-dict-get ns-dict "aliases"))
212212
ns-dict)))))
213213
(cider-refresh-dynamic-font-lock ns-dict))))))))))
214214

0 commit comments

Comments
 (0)