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.
This commit is contained in:
Levin Du 2016-01-30 16:19:18 +08:00 committed by syl20bnr
parent 2b1ed603dc
commit 330f852752
1 changed files with 2 additions and 2 deletions

View File

@ -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)