aboutsummaryrefslogtreecommitdiffhomepage
path: root/coq/coq-abbrev.el
diff options
context:
space:
mode:
authorGravatar Pierre Courtieu <Pierre.Courtieu@cnam.fr>2015-12-09 16:28:12 +0100
committerGravatar Pierre Courtieu <Pierre.Courtieu@cnam.fr>2015-12-09 16:28:12 +0100
commitff9ec2ed51ec4609286d747f7276d368499a39a5 (patch)
treedc068e0d022ec451586623072909949dbdddcc4f /coq/coq-abbrev.el
parent295386b34a0c973dd9f5e4974fb4dd03402c3867 (diff)
Adding an setting for Search Blacklist coq option.
Diffstat (limited to 'coq/coq-abbrev.el')
-rw-r--r--coq/coq-abbrev.el20
1 files changed, 20 insertions, 0 deletions
diff --git a/coq/coq-abbrev.el b/coq/coq-abbrev.el
index e664317f..3f8662e7 100644
--- a/coq/coq-abbrev.el
+++ b/coq/coq-abbrev.el
@@ -75,6 +75,26 @@
(coq-install-abbrevs))
;;;;;
+; Redefining this macro to change the way a string option is asked to
+; the user: we pre fill the answer with current value of the option;
+(defun proof-defstringset-fn (var &optional othername)
+ "Define a function <VAR>-toggle for setting an integer customize setting VAR.
+Args as for the macro `proof-defstringset', except will be evaluated."
+ (eval
+ `(defun ,(if othername othername
+ (intern (concat (symbol-name var) "-stringset"))) (arg)
+ ,(concat "Set `" (symbol-name var) "' to ARG.
+This function simply uses customize-set-variable to set the variable.
+It was constructed with `proof-defstringset-fn'.")
+; (interactive ,(format "sValue for %s (a string, currenly %s): "
+; (symbol-name var) (symbol-value var)))
+ (interactive (list
+ (read-string
+ (format "Value for %s (float): "
+ (symbol-name (quote ,var))
+ (symbol-value (quote ,var)))
+ (symbol-value (quote ,var)))))
+ (customize-set-variable (quote ,var) arg))))
;; The coq menu partly built from tables