aboutsummaryrefslogtreecommitdiffhomepage
path: root/generic/proof-utils.el
diff options
context:
space:
mode:
authorGravatar David Aspinall <da@inf.ed.ac.uk>2002-07-18 19:18:17 +0000
committerGravatar David Aspinall <da@inf.ed.ac.uk>2002-07-18 19:18:17 +0000
commit831048a216df7cd4a9b8faeac182ad1389783dc6 (patch)
treec88ac18976b4986e602ca108edd1067684f90ed2 /generic/proof-utils.el
parentbe98519ecbb09cf94f8e67e8a7bd7271b073250e (diff)
Comments
Diffstat (limited to 'generic/proof-utils.el')
-rw-r--r--generic/proof-utils.el12
1 files changed, 4 insertions, 8 deletions
diff --git a/generic/proof-utils.el b/generic/proof-utils.el
index 416edbce..94527602 100644
--- a/generic/proof-utils.el
+++ b/generic/proof-utils.el
@@ -353,7 +353,8 @@ font-lock-mode."
(defun proof-fontify-region (start end &optional keepspecials)
"Fontify and decode X-Symbols in region START...END.
Fontifies according to the buffer's font lock defaults.
-Uses proof-x-symbol-decode to decode tokens if x-symbol is present.
+Uses `proof-x-symbol-decode-region' to decode tokens
+if X-Symbol is enabled.
If `pg-use-specials-for-fontify' is set, remove characters
with top bit set after fontifying so they don't spoil cut and paste,
@@ -403,13 +404,8 @@ Returns new END value."
(proof-font-lock-clear-font-lock-vars)))
-(defconst pg-special-char-regexp
- (let ((c 128) (r "\200"))
- (while (< c 256)
- (setq r (concat r "\\|" (regexp-quote (char-to-string c))))
- (incf c))
- r)
- "Regexp matchin any special character (top bit set).")
+(defconst pg-special-char-regexp "[\200-\377]"
+ "Regexp matching any \"special\" character (top bit set).")
(defun pg-remove-specials (&optional start end)