projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e7402b
)
(flymake-diag-region): Fall back to (end-of-thing 'symbol)
author
Dmitry Gutov
<dgutov@yandex.ru>
Wed, 16 Dec 2020 00:49:35 +0000
(
02:49
+0200)
committer
Dmitry Gutov
<dgutov@yandex.ru>
Wed, 16 Dec 2020 00:49:35 +0000
(
02:49
+0200)
* lisp/progmodes/flymake.el (flymake-diag-region):
Fall back to (end-of-thing 'symbol) (bug#29193).
lisp/progmodes/flymake.el
patch
|
blob
|
history
diff --git
a/lisp/progmodes/flymake.el
b/lisp/progmodes/flymake.el
index efa7b2ffbf193be764968561c1aadfa9079b0a96..6c3e0a1981954656555f973910a73770afe3e35b 100644
(file)
--- a/
lisp/progmodes/flymake.el
+++ b/
lisp/progmodes/flymake.el
@@
-437,7
+437,8
@@
region is invalid."
(if (and col (cl-plusp col))
(let* ((beg (progn (forward-char (1- col))
(point)))
- (sexp-end (ignore-errors (end-of-thing 'sexp)))
+ (sexp-end (or (ignore-errors (end-of-thing 'sexp))
+ (ignore-errors (end-of-thing 'symbol))))
(end (or (and sexp-end
(not (= sexp-end beg))
sexp-end)