aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Aspinall2004-08-25 12:44:46 +0000
committerDavid Aspinall2004-08-25 12:44:46 +0000
commit545cb2c9cb826337c2d4b9995f5766eb72fb1584 (patch)
tree7c73937407a87df99df2443b107df4ebdd440066
parent2431a50c3f4abc03acf035a23e9193040fe41e27 (diff)
Add pg-internal-warning
-rw-r--r--generic/proof-utils.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/generic/proof-utils.el b/generic/proof-utils.el
index 90702cc3..67f5e462 100644
--- a/generic/proof-utils.el
+++ b/generic/proof-utils.el
@@ -590,6 +590,12 @@ The warning is coloured with proof-warning-face."
(pg-response-display-with-face (apply 'concat args) 'proof-warning-face)
(proof-display-and-keep-buffer proof-response-buffer))
+(defun pg-internal-warning (message)
+ "Display internal warning MESSAGE."
+ (if (fboundp 'display-warning)
+ (display-warning 'proof-general message)
+ (message message)))
+
;; 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.