aboutsummaryrefslogtreecommitdiffhomepage
path: root/coq
diff options
context:
space:
mode:
authorGravatar Pierre Courtieu <courtieu@lri.fr>2006-09-05 14:01:27 +0000
committerGravatar Pierre Courtieu <courtieu@lri.fr>2006-09-05 14:01:27 +0000
commit3817b477032a4fc82dd9df9b6e26c82ca77106e8 (patch)
tree1bf824d9f5c8d4bbb342093d3fd96c28cfb4cca9 /coq
parente76f14da4b7e737a5b6f5321c02127256d0b65df (diff)
still experimenting error highliting
Diffstat (limited to 'coq')
-rw-r--r--coq/coq.el10
1 files changed, 7 insertions, 3 deletions
diff --git a/coq/coq.el b/coq/coq.el
index 1fc5f380..b3f91827 100644
--- a/coq/coq.el
+++ b/coq/coq.el
@@ -1401,13 +1401,17 @@ be asked to the user."
(lgth (length (match-string 2))))
; (message "pos = %d ; lgth = %d " pos lgth)
(goto-char (+ (proof-locked-end) 1))
+ (coq-find-real-start)
(forward-char pos)
- (push-mark (+ (point)lgth) t t)
- )))
+ (let ((sp (make-span (point) (+ (point) lgth))))
+ (set-span-face sp 'proof-mouse-highlight-face)
+ (sit-for 20)
+ (delete-span sp)
+ ))))
; does not show the region from there, something must be deactivating the
; region before going out...
-;(setq proof-shell-handle-error-or-interrupt-hook 'coq-highlight-error)
+(setq proof-shell-handle-error-or-interrupt-hook 'coq-highlight-error)
;(add-hook 'proof-shell-handle-error
; 'zmacs-region-stays