Remove advice. May cause slow-down.

See Issue #29 and #30, perhaps also the tabbar-ruler issue:

https://github.com/mattfidler/tabbar-ruler.el/issues/37
This commit is contained in:
Matthew Fidler 2016-05-01 22:24:51 -05:00
parent 6ad9b3ca87
commit a3eb0d083a

View file

@ -1719,10 +1719,6 @@ When ENABLE is non-nil, enable the changes to the mode line."
"Make `mode-icons' aware of icon." "Make `mode-icons' aware of icon."
(mode-icons-set-minor-mode-icon)) (mode-icons-set-minor-mode-icon))
(defadvice command-execute (after mode-icons--reset-minor-mode-icons activate)
"Make `mode-icons' aware of any recenty activated minor modes."
(mode-icons-set-minor-mode-icon))
(eval-after-load 'powerline (eval-after-load 'powerline
'(progn '(progn
(declare-function mode-icons--real-powerline-minor-modes "powerline") (declare-function mode-icons--real-powerline-minor-modes "powerline")
@ -1760,7 +1756,6 @@ This uses `mode-icons--recolor-string' when `mode-icons-mode' is enabled."
(when (and (> (length rendered-str) 0) (eq pad 'l)) " ") (when (and (> (length rendered-str) 0) (eq pad 'l)) " ")
(if (listp str) rendered-str str) (if (listp str) rendered-str str)
(when (and (> (length rendered-str) 0) (eq pad 'r)) " ")))) (when (and (> (length rendered-str) 0) (eq pad 'r)) " "))))
(if face (if face
(mode-icons--recolor-string (pl/add-text-property padded-str 'face face) (mode-icons--recolor-string (pl/add-text-property padded-str 'face face)
(mode-icons--selected-window-active) face) (mode-icons--selected-window-active) face)