File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -198,14 +198,14 @@ Can be turned to nil once the user sees and acknowledges the feature."
198
198
(visual-line-mode 1 ))
199
199
200
200
(defun cider-inspector--highlight-diff-tags ()
201
- " Apply face to #± using overlays.
202
- We use overlays here because font-locking doesn't seem to work for this."
201
+ " Apply distinctive face to #± by manually walking through buffer.
202
+ Doing this via font-locking rules doesn't seem to work, probably because
203
+ the text is already colored by clojure mode font-locking."
203
204
(save-excursion
204
205
(goto-char (point-min ))
205
206
(while (search-forward " #±" nil t )
206
- (let ((overlay (make-overlay (match-beginning 0 ) (match-end 0 ))))
207
- (overlay-put overlay 'face 'font-lock-warning-face )
208
- (overlay-put overlay 'priority 100 )))))
207
+ (put-text-property (match-beginning 0 ) (match-end 0 )
208
+ 'face 'font-lock-warning-face ))))
209
209
210
210
;;;### autoload
211
211
(defun cider-inspect-last-sexp ()
You can’t perform that action at this time.
0 commit comments