diff options
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/progmodes/flymake.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el index 6c3e0a19819..da026da86a2 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) |