branch: elpa/web-mode
commit a7f3d9251ba14e096e3ad43d007b4e2d9bb6f4f2
Author: Ola Nilsson <[email protected]>
Commit: Ola Nilsson <[email protected]>

    Use save-match-data instead of obsolete inhibit-changing-match-data
---
 web-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/web-mode.el b/web-mode.el
index 9b5ddd4ede..5bd7aa3fb7 100644
--- a/web-mode.el
+++ b/web-mode.el
@@ -2745,7 +2745,7 @@ another auto-completion with different ac-sources (e.g. 
ac-php)")
   ;; compatibility with emacs < 23
   (defun web-mode-string-match-p (regexp string &optional start)
     "Same as `string-match' except it does not change the match data."
-    (let ((inhibit-changing-match-data t))
+    (save-match-data
       (string-match regexp string start)))
 
   (unless (fboundp 'string-match-p)

Reply via email to