From 330f8527523f0f5b2ec76b9c52c975fbc76beaa4 Mon Sep 17 00:00:00 2001 From: Levin Du Date: Sat, 30 Jan 2016 16:19:18 +0800 Subject: [PATCH] core: update doc after auto executing in micro state. This is useful if :doc is a function to return the state which may be modified by :execute-binding-on-enter. --- core/core-micro-state.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/core-micro-state.el b/core/core-micro-state.el index 8fd21f61c..56fc0c031 100644 --- a/core/core-micro-state.el +++ b/core/core-micro-state.el @@ -114,13 +114,13 @@ used." ,(format "%S micro-state." name) (interactive) ,@on-enter + ,(when exec-binding + (spacemacs//micro-state-auto-execute bindings)) (let ((doc ,@doc)) (when doc (spacemacs//micro-state-set-minibuffer-height doc) (apply ',msg-func (list (spacemacs//micro-state-propertize-doc (format "%S: %s" ',name doc)))))) - ,(when exec-binding - (spacemacs//micro-state-auto-execute bindings)) (,(if (version< emacs-version "24.4") 'set-temporary-overlay-map 'set-transient-map)