aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Pierre Courtieu <courtieu@lri.fr>2015-02-09 17:38:56 +0000
committerGravatar Pierre Courtieu <courtieu@lri.fr>2015-02-09 17:38:56 +0000
commitff26cd415eccddb6fd41683e726e2ee6e4e17b65 (patch)
treea0d531986dbdd531f087336421c0efa6e5e3f401
parent3f150a853b65a1f4141597e3dc9199fa5fc0c2e4 (diff)
replug removal of induction principle in SearAbout queries.
-rw-r--r--coq/coq.el9
1 files changed, 7 insertions, 2 deletions
diff --git a/coq/coq.el b/coq/coq.el
index ff432251..3b716ad0 100644
--- a/coq/coq.el
+++ b/coq/coq.el
@@ -873,8 +873,13 @@ More precisely it executes SETCMD, then DO id and finally silently UNSETCMD."
(concat "\"" s "\"")
s))
+(defsubst coq-put-into-double-quote-if-notation-remove-ind (s)
+ (if (equal (char-syntax (string-to-char s)) ?\.)
+ (concat "\"" s "\" " "-\"_ind\" - \"_rect\" -\"_rec\"")
+ s))
+
(defsubst coq-put-into-brackets-remove-useless (s)
- (concat "[ " s " -\"_ind\" - \"_rect\" -\"_rec\" ]"))
+ (concat s " -\"_ind\" - \"_rect\" -\"_rec\""))
(defsubst coq-put-into-quotes (s)
(concat "\"" s "\""))
@@ -900,7 +905,7 @@ This is specific to `coq-mode'."
(interactive)
(coq-ask-do
"SearchAbout (ex: \"eq_\" eq -bool)"
- "SearchAbout" nil 'coq-put-into-double-quote-if-notation)
+ "SearchAbout" nil 'coq-put-into-double-quote-if-notation-remove-ind)
(message "use `coq-SearchAbout-all' to see constants ending with \"_ind\", \"_rec\", etc"))
(defun coq-SearchAbout-all ()