diff options
| author | David Aspinall | 2010-08-03 18:50:48 +0000 |
|---|---|---|
| committer | David Aspinall | 2010-08-03 18:50:48 +0000 |
| commit | 99861ac0e7596d85834d34b95ac770e2b4c7e296 (patch) | |
| tree | 20d594f9ed2686e2aa85e4ba71ed191fdf3da10e /generic | |
| parent | 89ce00e124d6c732823513006165fdcdc4094d68 (diff) | |
Move key binding for proof assistant keymap (fixes compilation bug)
Diffstat (limited to 'generic')
| -rw-r--r-- | generic/proof-menu.el | 2 | ||||
| -rw-r--r-- | generic/proof-script.el | 22 |
2 files changed, 11 insertions, 13 deletions
diff --git a/generic/proof-menu.el b/generic/proof-menu.el index 0d671db5..ee7189ea 100644 --- a/generic/proof-menu.el +++ b/generic/proof-menu.el @@ -93,8 +93,6 @@ without adjusting window layout." ;;;###autoload (defun proof-menu-define-keys (map) "Prover specific keymap under C-c C-a." - (proof-eval-when-ready-for-assistant - (define-key map [(control c) (control a)] (proof-ass keymap))) ;; M-a and M-e are usually {forward,backward}-sentence. ;; Some modes also override these with similar commands (define-key map [(meta a)] 'proof-backward-command) diff --git a/generic/proof-script.el b/generic/proof-script.el index 292964a4..ff205826 100644 --- a/generic/proof-script.el +++ b/generic/proof-script.el @@ -660,18 +660,16 @@ IDIOMSYM is a symbol and ID is a strings." (defun pg-last-output-displayform () "Return displayable form of `proof-shell-last-output'. This is used to annotate the buffer with the result of proof steps." - ;; If there's no proof state output we try response output instead. ;; NOTE: Isabelle/Isar uses urgent messages (sigh) in its ordinary output. ;; ("Successful attempt..."). This loses here. - (let* ((output (if (string= proof-shell-last-output "") - proof-shell-last-response-output)) - (text (proof-shell-strip-output-markup - (if (and (boundp 'unicode-tokens-mode) - unicode-tokens-mode) - (unicode-tokens-encode-str proof-shell-last-output) - output)))) - - ;; NOTE: hack for Isabelle which puts ugly leading \n's around proofstate. + (if (string= proof-shell-last-output "") "" + (let* ((text (proof-shell-strip-output-markup + (if (and (boundp 'unicode-tokens-mode) + unicode-tokens-mode) + (unicode-tokens-encode-str proof-shell-last-output) + proof-shell-last-output)))) + + ;; HACK: for Isabelle which puts ugly leading \n's around proofstate. (if (and (> (length text) 0) (string= (substring text 0 1) "\n")) (setq text (substring text 1))) @@ -679,7 +677,7 @@ This is used to annotate the buffer with the result of proof steps." (string= (substring text -1) "\n")) (setq text (substring text 0 -1))) - text)) + text))) ;;;###autoload (defun pg-set-span-helphighlights (span &optional mouseface face) @@ -2227,6 +2225,8 @@ command." ;; NB: proof-mode-map declared above (proof-menu-define-keys proof-mode-map) +(proof-eval-when-ready-for-assistant + (define-key proof-mode-map [(control c) (control a)] (proof-ass keymap))) (defun proof-script-set-visited-file-name () "Called when visited file name is changed. |
