emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master fa4c276: flymake-diag-region: Fix the recent test breakage


From: Dmitry Gutov
Subject: master fa4c276: flymake-diag-region: Fix the recent test breakage
Date: Thu, 17 Dec 2020 21:05:25 -0500 (EST)

branch: master
commit fa4c2768cf6cf670e4c7af0c2b74ad139e65aad4
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>

    flymake-diag-region: Fix the recent test breakage
    
    * lisp/progmodes/flymake.el (flymake-diag-region):
    Make sure to save the match data (bug#29193).
---
 lisp/progmodes/flymake.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el
index 6c3e0a1..da026da 100644
--- a/lisp/progmodes/flymake.el
+++ b/lisp/progmodes/flymake.el
@@ -438,7 +438,8 @@ region is invalid."
                   (let* ((beg (progn (forward-char (1- col))
                                      (point)))
                          (sexp-end (or (ignore-errors (end-of-thing 'sexp))
-                                       (ignore-errors (end-of-thing 'symbol))))
+                                       (save-match-data
+                                         (ignore-errors (end-of-thing 
'symbol)))))
                          (end (or (and sexp-end
                                        (not (= sexp-end beg))
                                        sexp-end)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]