@@ -1161,6 +1161,16 @@ search for and read a `ns' form."
1161
1161
1162
1162
1163
1163
; ;; Evaluation
1164
+ (defun cider--clear-compilation-highlights ()
1165
+ " Remove compilation highlights."
1166
+ (remove-overlays (point-min ) (point-max ) 'cider-note-p t ))
1167
+
1168
+ (defun cider-clear-compilation-highlights ()
1169
+ " Remove compilation highlights."
1170
+ (interactive )
1171
+ (when (y-or-n-p " Are you sure you want to clear the compilation highlights? " )
1172
+ (cider--clear-compilation-highlights)))
1173
+
1164
1174
(defun cider-popup-eval-print (form )
1165
1175
" Evaluate the given FORM and print value in current buffer."
1166
1176
(let ((buffer (current-buffer )))
@@ -1177,7 +1187,7 @@ search for and read a `ns' form."
1177
1187
1178
1188
(defun cider-interactive-eval (form )
1179
1189
" Evaluate the given FORM and print value in minibuffer."
1180
- ( remove-overlays ( point-min ) ( point-max ) 'cider-note-p t )
1190
+
1181
1191
(let ((buffer (current-buffer )))
1182
1192
(cider-eval form
1183
1193
(cider-interactive-eval-handler buffer)
@@ -1649,7 +1659,7 @@ strings, include private vars, and be case sensitive."
1649
1659
nil (if (buffer-file-name )
1650
1660
(file-name-nondirectory
1651
1661
(buffer-file-name ))))))
1652
- (remove-overlays ( point-min ) ( point-max ) 'cider-note-p t )
1662
+ (cider--clear-compilation-highlights )
1653
1663
(cider-send-load-file (cider-file-string filename)
1654
1664
(cider--server-filename filename)
1655
1665
(file-name-nondirectory filename))
0 commit comments