Fix an error in 'highlight-confusing-reorderings'
* lisp/international/mule-cmds.el (highlight-confusing-reorderings): Don't signal an error when a confusingly-reordered sequence ends at EOB.
This commit is contained in:
parent
ab6700949e
commit
dd0bc52014
1 changed files with 4 additions and 2 deletions
|
@ -3338,9 +3338,11 @@ or the active region if that is set."
|
|||
(re-search-backward reorder-starters nil t)))
|
||||
(finish
|
||||
(save-excursion
|
||||
(re-search-forward reorder-enders nil t))))
|
||||
(let ((fin (re-search-forward reorder-enders nil t)))
|
||||
(if fin (1- fin)
|
||||
(point-max))))))
|
||||
(with-silent-modifications
|
||||
(add-text-properties start (1- finish)
|
||||
(add-text-properties start finish
|
||||
'(font-lock-face
|
||||
confusingly-reordered
|
||||
face confusingly-reordered
|
||||
|
|
Loading…
Add table
Reference in a new issue