projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ada3ee
)
flymake-diag-region: Fix the recent test breakage
author
Dmitry Gutov
<dgutov@yandex.ru>
Fri, 18 Dec 2020 02:05:18 +0000
(
04:05
+0200)
committer
Dmitry Gutov
<dgutov@yandex.ru>
Fri, 18 Dec 2020 02:05:18 +0000
(
04:05
+0200)
* lisp/progmodes/flymake.el (flymake-diag-region):
Make sure to save the match data (bug#29193).
lisp/progmodes/flymake.el
patch
|
blob
|
history
diff --git
a/lisp/progmodes/flymake.el
b/lisp/progmodes/flymake.el
index 6c3e0a1981954656555f973910a73770afe3e35b..da026da86a2755b6ddc53f915c1eed28121b9fda 100644
(file)
--- 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)