aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Aspinall2007-12-14 10:41:13 +0000
committerDavid Aspinall2007-12-14 10:41:13 +0000
commitbb325496a85032032b751977f294c26e9813b8e9 (patch)
tree9f2305cd11d62ee0617bd8c0f18300ddc71ae0bf
parent58d2eb396b55adb9241a58d97747deadb9d0d76b (diff)
Rename: proof-show-debug-messages -> proof-general-debug. Optimise pg-remove-specials.
-rw-r--r--generic/proof-utils.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/proof-utils.el b/generic/proof-utils.el
index bbf0a921..6d82ff51 100644
--- a/generic/proof-utils.el
+++ b/generic/proof-utils.el
@@ -477,8 +477,8 @@ Leave point at END."
(if (and start end)
(narrow-to-region start end))
(goto-char (or start (point-min)))
- (proof-replace-regexp-nocasefold pg-special-char-regexp "")
- (goto-char (point-max))))
+ (while (re-search-forward pg-special-char-regexp end t)
+ (replace-match ""))))
(defun pg-remove-specials-in-string (string)
(proof-replace-regexp-in-string pg-special-char-regexp "" string))
@@ -624,8 +624,8 @@ The warning is coloured with proof-warning-face."
;; could be a macro for efficiency in compiled code
(defun proof-debug (msg &rest args)
"Issue the debugging message (format MSG ARGS) in the response buffer, display it.
-If proof-show-debug-messages is nil, do nothing."
- (if proof-show-debug-messages
+If proof-general-debug is nil, do nothing."
+ (if proof-general-debug
(let ((formatted (apply 'format msg args)))
(if (fboundp 'display-warning) ;; use builtin warning system in XEmacs
(display-warning 'proof-general formatted 'info)