From 156623960f4c516d09847b725a9423431092ec85 Mon Sep 17 00:00:00 2001 From: Vasilij Schneidermann Date: Mon, 15 Jun 2015 08:31:17 +0200 Subject: [PATCH] Let-bind `deactivate-mark` in mode line code Closes #34 --- eyebrowse.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/eyebrowse.el b/eyebrowse.el index edfbc87..7cd3f1f 100644 --- a/eyebrowse.el +++ b/eyebrowse.el @@ -488,7 +488,12 @@ is detected, extra key bindings will be set up with (tag (nth 2 window-config)) (format-string (if (and tag (> (length tag) 0)) eyebrowse-tagged-slot-format - eyebrowse-slot-format))) + eyebrowse-slot-format)) + ;; NOTE: `format-spec' sets `deactivate-mark' to t which + ;; makes `eyebrowse-format-slot' usage in + ;; `eyebrowse-mode-line-indicator' always deactivate the mark + ;; after activating it as this triggers mode line updates... + deactivate-mark) (format-spec format-string (format-spec-make ?s slot ?t tag))))