diff options
| author | Pierre Courtieu | 2009-09-17 12:26:55 +0000 |
|---|---|---|
| committer | Pierre Courtieu | 2009-09-17 12:26:55 +0000 |
| commit | f97cb5f27b1ac21d2e3b9a807a588924985e4cda (patch) | |
| tree | 4ec3089f73b4e1b7c8084e58e55f9ceb158e4b6e | |
| parent | 7fb5e30e23dbefe96aa4bee9df9e7c161d7e4ac1 (diff) | |
Fixed error highlighting with utf8.
| -rw-r--r-- | coq/coq.el | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -1291,12 +1291,9 @@ buffer." (goto-char (+ (proof-locked-end) 1)) (coq-find-real-start) - ; Seems to work, even with utf8 chars (emacs23) + ; utf8 adaptation is made in coq-get-last-error-location above (goto-char (+ (point) pos)) - (let* ((start (point)) - (dummy (goto-char - (byte-to-position (+ (position-bytes (point)) lgth)))) - (sp (span-make start (point)))) + (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? |
