@@ -943,15 +943,15 @@ Display the results in a different window."
943
943
(progn
944
944
(if line (setq info (nrepl-dict-put info " line" line)))
945
945
(cider--jump-to-loc-from-info info t ))
946
- (error " Symbol %s not resolved " var)))
946
+ (user- error " Symbol %s not resolved" var)))
947
947
948
948
(defun cider--find-var (var &optional line )
949
949
" Find the definition of VAR, optionally at a specific LINE."
950
950
(-if-let (info (cider-var-info var))
951
951
(progn
952
952
(if line (setq info (nrepl-dict-put info " line" line)))
953
953
(cider--jump-to-loc-from-info info))
954
- (error " Symbol %s not resolved " var)))
954
+ (user- error " Symbol %s not resolved" var)))
955
955
956
956
(defun cider-find-var (&optional arg var line )
957
957
" Find definition for VAR at LINE.
@@ -981,7 +981,7 @@ thing at point."
981
981
(defun cider--find-ns (ns &optional other-window )
982
982
(-if-let (path (cider-sync-request:ns-path ns))
983
983
(cider-jump-to (cider-find-file path) nil other-window)
984
- (error " Can't find %s " ns)))
984
+ (user- error " Can't find %s" ns)))
985
985
986
986
(defun cider-find-ns (&optional arg ns )
987
987
" Find the file containing NS.
@@ -1134,7 +1134,7 @@ in the buffer."
1134
1134
(url (nrepl-dict-get info " javadoc" )))
1135
1135
(if url
1136
1136
(browse-url url)
1137
- (error " No Javadoc available for %s " symbol-name)))))
1137
+ (user- error " No Javadoc available for %s" symbol-name)))))
1138
1138
1139
1139
(defun cider-javadoc (arg )
1140
1140
" Open Javadoc documentation in a popup buffer.
@@ -1270,7 +1270,7 @@ This is used by pretty-printing commands and intentionally discards their result
1270
1270
(let ((buffer (get-buffer cider-error-buffer)))
1271
1271
(if buffer
1272
1272
(cider-popup-buffer-display buffer cider-auto-select-error-buffer)
1273
- (error " No %s buffer " cider-error-buffer))))
1273
+ (user- error " No %s buffer" cider-error-buffer))))
1274
1274
1275
1275
(defun cider-find-property (property &optional backward )
1276
1276
" Find the next text region which has the specified PROPERTY.
@@ -1965,7 +1965,7 @@ Defaults to the current ns. With prefix arg QUERY, prompts for a ns."
1965
1965
" Look up documentation for SYMBOL."
1966
1966
(-if-let (buffer (cider-create-doc-buffer symbol))
1967
1967
(cider-popup-buffer-display buffer t )
1968
- (error " Symbol %s not resolved " symbol)))
1968
+ (user- error " Symbol %s not resolved" symbol)))
1969
1969
1970
1970
(defun cider-doc (&optional arg )
1971
1971
" Open Clojure documentation in a popup buffer.
@@ -2046,7 +2046,7 @@ The heavy lifting is done by `cider-load-file'."
2046
2046
(setq buffer (or buffer (current-buffer )))
2047
2047
(with-current-buffer buffer
2048
2048
(unless buffer-file-name
2049
- (error " Buffer %s is not associated with a file " (buffer-name )))
2049
+ (user- error " Buffer %s is not associated with a file" (buffer-name )))
2050
2050
(when (and cider-prompt-save-file-on-load
2051
2051
(buffer-modified-p )
2052
2052
(y-or-n-p (format " Save file %s ? " buffer-file-name)))
0 commit comments