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:
parent
2b1ed603dc
commit
330f852752
|
@ -114,13 +114,13 @@ used."
|
||||||
,(format "%S micro-state." name)
|
,(format "%S micro-state." name)
|
||||||
(interactive)
|
(interactive)
|
||||||
,@on-enter
|
,@on-enter
|
||||||
|
,(when exec-binding
|
||||||
|
(spacemacs//micro-state-auto-execute bindings))
|
||||||
(let ((doc ,@doc))
|
(let ((doc ,@doc))
|
||||||
(when doc
|
(when doc
|
||||||
(spacemacs//micro-state-set-minibuffer-height doc)
|
(spacemacs//micro-state-set-minibuffer-height doc)
|
||||||
(apply ',msg-func (list (spacemacs//micro-state-propertize-doc
|
(apply ',msg-func (list (spacemacs//micro-state-propertize-doc
|
||||||
(format "%S: %s" ',name doc))))))
|
(format "%S: %s" ',name doc))))))
|
||||||
,(when exec-binding
|
|
||||||
(spacemacs//micro-state-auto-execute bindings))
|
|
||||||
(,(if (version< emacs-version "24.4")
|
(,(if (version< emacs-version "24.4")
|
||||||
'set-temporary-overlay-map
|
'set-temporary-overlay-map
|
||||||
'set-transient-map)
|
'set-transient-map)
|
||||||
|
|
Loading…
Reference in New Issue