From 34cc69a8df9cfc723f17aadf43a6e1e2820582b6 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Thu, 14 Mar 2019 00:15:24 +0700 Subject: [PATCH] Ignore user errors in symbol-overlay sub-segment. --- doom-modeline-segments.el | 3 ++- doom-modeline.el | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doom-modeline-segments.el b/doom-modeline-segments.el index 3c1d695..ca3b3a4 100644 --- a/doom-modeline-segments.el +++ b/doom-modeline-segments.el @@ -1032,7 +1032,8 @@ Requires `anzu', also `evil-anzu' if using `evil-mode' for compatibility with (bound-and-true-p symbol-overlay-keywords-alist) (not (bound-and-true-p symbol-overlay-temp-symbol)) (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)) (before (symbol-overlay-get-list -1 symbol)) (after (symbol-overlay-get-list 1 symbol)) diff --git a/doom-modeline.el b/doom-modeline.el index 5406040..e2e01c7 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -4,7 +4,7 @@ ;; Author: Vincent Zhang ;; Homepage: https://github.com/seagle0128/doom-modeline -;; Version: 1.9.0 +;; Version: 1.9.1 ;; Package-Requires: ((emacs "25.1") (all-the-icons "1.0.0") (shrink-path "0.2.0") (eldoc-eval "0.1") (dash "2.11.0")) ;; Keywords: faces mode-line