diff options
author | 2010-10-01 15:35:25 +0000 | |
---|---|---|
committer | 2010-10-01 15:35:25 +0000 | |
commit | dfff8b899a1aec4236368da71cca2e590c7f03e0 (patch) | |
tree | 45c9ae8090fe3581742d168cf07f9c9b066a2b83 | |
parent | 62fb902e33e4e59a974bfb976f45b4648320d4e8 (diff) |
coq-highlight-error: use span-add-self-removing-span (highlight and removal in background)
-rw-r--r-- | coq/coq.el | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -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)) |