branch: elpa/telephone-line
commit 8064222a9f9f037fa944002615fdb170acd7e309
Author: Daniel Bordak <[email protected]>
Commit: Daniel Bordak <[email protected]>
Advice needs docstrings too
---
telephone-line.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/telephone-line.el b/telephone-line.el
index 425a408e94..a061b92494 100644
--- a/telephone-line.el
+++ b/telephone-line.el
@@ -129,7 +129,9 @@ Secondary separators do not incur a background color
change."
(setq selected-window (frame-selected-window))))
(add-hook 'window-configuration-change-hook #'-set-selected-window)
-(defadvice select-window (after select-window activate) (-set-selected-window))
+(defadvice select-window (after select-window activate)
+ "Set telephone-line's selected window value for use in determining the
active mode-line."
+ (-set-selected-window))
(defun selected-window-active ()
"Return whether the current window is active."