aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar David Aspinall <da@inf.ed.ac.uk>2002-11-18 23:07:07 +0000
committerGravatar David Aspinall <da@inf.ed.ac.uk>2002-11-18 23:07:07 +0000
commit1598b03d93f945fbba2e444cc610d76ba5d65b70 (patch)
tree572e47c48b57b5e1090bc9f6872e8591add887a4
parent257d140db218b53f5469b4dd2a05557bc92db050 (diff)
Add pg-custom-undeclare-variable.
-rw-r--r--generic/proof-compat.el34
1 files changed, 34 insertions, 0 deletions
diff --git a/generic/proof-compat.el b/generic/proof-compat.el
index e0a74a99..7a5fb8f4 100644
--- a/generic/proof-compat.el
+++ b/generic/proof-compat.el
@@ -19,6 +19,40 @@
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;
+;;; Emacs and XEmacs modifications and adjustments
+;;;
+
+;; Remove a custom setting. Needed to support dynamic reconfiguration.
+;; (We'd prefer that repeated defcustom calls acted like repeated
+;; "defvar treated as defconst" in XEmacs)
+(defun pg-custom-undeclare-variable (symbol)
+ "Remove a custom setting SYMBOL.
+Done by `makunbound' and removing all properties mentioned by custom library."
+ (mapcar (lambda (prop) (remprop symbol prop))
+ '(default
+ standard-value
+ force-value
+ variable-comment
+ saved-variable-comment
+ variable-documentation
+ group-documentation
+ custom-set
+ custom-get
+ custom-options
+ custom-requests
+ custom-group
+ custom-prefix
+ custom-tag
+ custom-links
+ custom-version
+ saved-value
+ theme-value
+ theme-face))
+ (makunbound symbol))
+
+
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;;;
;;; XEmacs compatibility
;;;