aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar David Aspinall <da@inf.ed.ac.uk>2010-10-01 15:35:25 +0000
committerGravatar David Aspinall <da@inf.ed.ac.uk>2010-10-01 15:35:25 +0000
commitdfff8b899a1aec4236368da71cca2e590c7f03e0 (patch)
tree45c9ae8090fe3581742d168cf07f9c9b066a2b83
parent62fb902e33e4e59a974bfb976f45b4648320d4e8 (diff)
coq-highlight-error: use span-add-self-removing-span (highlight and removal in background)
-rw-r--r--coq/coq.el7
1 files changed, 2 insertions, 5 deletions
diff --git a/coq/coq.el b/coq/coq.el
index bfc3ed4c..aa0ccec4 100644
--- a/coq/coq.el
+++ b/coq/coq.el
@@ -1313,11 +1313,8 @@ buffer."
;; utf8 adaptation is made in coq-get-last-error-location above
(goto-char (+ (point) pos))
- (let* ((sp (span-make (point) (+(point) lgth))))
- (set-span-face sp 'proof-warning-face)
- (unwind-protect
- (sit-for 5) ;; da: this was 20 but seemed obnoxiously long?
- (span-delete sp))))))))
+ (span-add-self-removing-span (point) (+ (point) lgth)
+ 'face 'proof-warning-face))))))
(defun coq-highlight-error-hook ()
(coq-highlight-error t t))