diff options
author | Makarius Wenzel <makarius@sketis.net> | 2000-06-04 20:01:41 +0000 |
---|---|---|
committer | Makarius Wenzel <makarius@sketis.net> | 2000-06-04 20:01:41 +0000 |
commit | fc86159b28db00a092f2588320dda655ab843ed3 (patch) | |
tree | a209bfbed838f717a09bba06d62bdafe4defc2c0 /generic/proof-syntax.el | |
parent | d53e2c48e6cf6284a4d87010efe41eac457b2b1f (diff) |
proof-re-search-forward/backward: observe proof-case-fold-search;
Diffstat (limited to 'generic/proof-syntax.el')
-rw-r--r-- | generic/proof-syntax.el | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/generic/proof-syntax.el b/generic/proof-syntax.el index fd316eb0..0f4575bf 100644 --- a/generic/proof-syntax.el +++ b/generic/proof-syntax.el @@ -52,6 +52,18 @@ nil if a region cannot be found." ;; of proof-case-fold-search. Last arg to string-match is ;; not applicable. +(defun proof-re-search-forward (regexp &optional bound noerror count) + "Like re-search-forward, but set case-fold-search to proof-case-fold-search." + (let + ((case-fold-search proof-case-fold-search)) + (re-search-forward regexp bound noerror count))) + +(defun proof-re-search-backward (regexp &optional bound noerror count) + "Like re-search-backward, but set case-fold-search to proof-case-fold-search." + (let + ((case-fold-search proof-case-fold-search)) + (re-search-backward regexp bound noerror count))) + (defun proof-string-match (regexp string &optional start) "Like string-match, but set case-fold-search to proof-case-fold-search." (let |