mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-20 20:07:36 +00:00
(flymake-diag-region): Fall back to (end-of-thing 'symbol)
* lisp/progmodes/flymake.el (flymake-diag-region): Fall back to (end-of-thing 'symbol) (bug#29193).
This commit is contained in:
parent
2e7402b760
commit
fda9a2bbfd
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue