Ignore user errors in symbol overlay..

This commit is contained in:
Vincent Zhang 2018-11-28 14:39:36 +08:00
parent c48d10a6f9
commit e7de8eef92

View file

@ -1090,7 +1090,8 @@ Requires `anzu', also `evil-anzu' if using `evil-mode' for compatibility with
(when (and (bound-and-true-p symbol-overlay-keywords-alist) (when (and (bound-and-true-p symbol-overlay-keywords-alist)
(not (bound-and-true-p symbol-overlay-temp-symbol)) (not (bound-and-true-p symbol-overlay-temp-symbol))
(not (bound-and-true-p iedit-mode))) (not (bound-and-true-p iedit-mode)))
(let* ((keyword (symbol-overlay-assoc (symbol-overlay-get-symbol))) (let* ((keyword (symbol-overlay-assoc
(ignore-errors (symbol-overlay-get-symbol))))
(symbol (car keyword)) (symbol (car keyword))
(before (symbol-overlay-get-list symbol 'car)) (before (symbol-overlay-get-list symbol 'car))
(after (symbol-overlay-get-list symbol 'cdr)) (after (symbol-overlay-get-list symbol 'cdr))