diff options
| author | David Aspinall | 2009-09-14 07:31:30 +0000 |
|---|---|---|
| committer | David Aspinall | 2009-09-14 07:31:30 +0000 |
| commit | e9026266e312e42f9333fd112e215406027d95e2 (patch) | |
| tree | d32b1941a104e820b0bd166f3a436423369d3fca /generic | |
| parent | e4eafed4a91d7415ae469e8cb49fb512a0c8dd6a (diff) | |
Propertize Scripting modeline indicator. Support error spans.
Diffstat (limited to 'generic')
| -rw-r--r-- | generic/proof-shell.el | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/generic/proof-shell.el b/generic/proof-shell.el index 4fb9dfc6..fb3b7c74 100644 --- a/generic/proof-shell.el +++ b/generic/proof-shell.el @@ -84,7 +84,7 @@ The previous output is held back for processing at end of queue.") ;; (defcustom proof-shell-active-scripting-indicator - " Scripting" + (propertize " Scripting " 'face 'proof-queue-face) "Modeline indicator for active scripting buffer. If first component is extent it will automatically follow the colour of the queue region." @@ -625,17 +625,9 @@ non-empty flags) will not invoke any of this action." ; PG4.0 change (save-excursion (unless proof-shell-quiet-errors (beep)) - ;; TODO: add temp span in script (wigglies) for error - ;; (if proof-action-list - ;; (let* ((item (car proof-action-list)) - ;; (span (car item))) - ;; (if span - ;; (if proof-script-buffer - ;; (with-current-buffer proof-script-buffer - ;; (pg-set-span-helphighlights span - ;; 'proof-script-error-face)))))) - (proof-script-clear-queue-spans) - + (proof-with-current-buffer-if-exists proof-script-buffer + (proof-script-clear-queue-spans-on-error + (car-safe (car-safe proof-action-list)))) (setq proof-action-list nil) (proof-release-lock) ;; Give a hint about C-c C-`. (NB: approximate test) |
