diff options
| author | David Aspinall | 2008-01-16 00:57:49 +0000 |
|---|---|---|
| committer | David Aspinall | 2008-01-16 00:57:49 +0000 |
| commit | 59c4663ac8ace91613482bdb956abd04b6e1f8e2 (patch) | |
| tree | ff886153ddb51d2199a10b7d9e25ec74cfba4491 | |
| parent | d0eb717f00ff9cfbedd3e747c71e63e855120000 (diff) | |
Updated.
| -rw-r--r-- | generic/proof-x-symbol.el | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/generic/proof-x-symbol.el b/generic/proof-x-symbol.el index ffa71170..aaf1dcc3 100644 --- a/generic/proof-x-symbol.el +++ b/generic/proof-x-symbol.el @@ -321,18 +321,9 @@ Assumes that the current buffer is the proof shell buffer." (set-buffer-modified-p modified)))) ;; END code from x-symbol.el/x-symbol-mode-internal - ;; If we're turning on x-symbol, attempt to convert to - ;; characters. (Only works if the buffer already contains - ;; tokens!) NB: this removes previous fontification, too. - (x-symbol-decode))) - ;; Encoding back to tokens doesn't work too well: needs to - ;; do some de-fontification to remove font properties, and - ;; is flaky anyway because token -> char not nec injective. - ; (if (boundp 'x-symbol-language) - ; ;; If we're turning off x-symbol, convert back to tokens. - ; (x-symbol-encode)))) - - + ;; If we're turning on x-symbol, attempt to convert current contents. + ;; (reverse doesn't work so cleanly so we don't try it) + (proof-x-symbol-decode-region (point-min) (point-max)))) (provide 'proof-x-symbol) ;; End of proof-x-symbol.el |
