aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2007-07-20 04:11:14 +0000
committerStefan Monnier2007-07-20 04:11:14 +0000
commitceb19436aa1db2a2b1649afb3b27b89fd0f0528b (patch)
treee132414ac5000bd20aa4cf3df2f5c49e53b1592d
parent8ebbfc80ba6255d08b31b6be0f314f1481374f61 (diff)
downloademacs-ceb19436aa1db2a2b1649afb3b27b89fd0f0528b.tar.gz
emacs-ceb19436aa1db2a2b1649afb3b27b89fd0f0528b.zip
(vera-re-search-forward, vera-re-search-backward):
Remove use of store-match-data.
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/progmodes/vera-mode.el22
2 files changed, 13 insertions, 12 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 4f297834a95..731ffaf2661 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
12007-07-20 Stefan Monnier <monnier@iro.umontreal.ca> 12007-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
2 2
3 * progmodes/vera-mode.el (vera-re-search-forward)
4 (vera-re-search-backward): Remove use of store-match-data.
5
3 * progmodes/flymake.el (flymake-buildfile-dirs): Remove. 6 * progmodes/flymake.el (flymake-buildfile-dirs): Remove.
4 (flymake-find-buildfile): Use locate-dominating-file. 7 (flymake-find-buildfile): Use locate-dominating-file.
5 8
diff --git a/lisp/progmodes/vera-mode.el b/lisp/progmodes/vera-mode.el
index 7117ffd15e8..07834e028cc 100644
--- a/lisp/progmodes/vera-mode.el
+++ b/lisp/progmodes/vera-mode.el
@@ -844,21 +844,19 @@ This function does not modify point or mark."
844 844
845(defsubst vera-re-search-forward (regexp &optional bound noerror) 845(defsubst vera-re-search-forward (regexp &optional bound noerror)
846 "Like `re-search-forward', but skips over matches in literals." 846 "Like `re-search-forward', but skips over matches in literals."
847 (store-match-data '(nil nil)) 847 (let (ret)
848 (while (and (re-search-forward regexp bound noerror) 848 (while (and (setq ret (re-search-forward regexp bound noerror))
849 (vera-skip-forward-literal) 849 (vera-skip-forward-literal)
850 (progn (store-match-data '(nil nil)) 850 (if bound (< (point) bound) t)))
851 (if bound (< (point) bound) t)))) 851 ret))
852 (match-end 0))
853 852
854(defsubst vera-re-search-backward (regexp &optional bound noerror) 853(defsubst vera-re-search-backward (regexp &optional bound noerror)
855 "Like `re-search-backward', but skips over matches in literals." 854 "Like `re-search-backward', but skips over matches in literals."
856 (store-match-data '(nil nil)) 855 (let (ret)
857 (while (and (re-search-backward regexp bound noerror) 856 (while (and (setq ret (re-search-backward regexp bound noerror))
858 (vera-skip-backward-literal) 857 (vera-skip-backward-literal)
859 (progn (store-match-data '(nil nil)) 858 (if bound (> (point) bound) t)))
860 (if bound (> (point) bound) t)))) 859 ret))
861 (match-end 0))
862 860
863(defun vera-forward-syntactic-ws (&optional lim skip-directive) 861(defun vera-forward-syntactic-ws (&optional lim skip-directive)
864 "Forward skip of syntactic whitespace." 862 "Forward skip of syntactic whitespace."