From 92b46f7f2a205c199d8c241507a14632b021f148 Mon Sep 17 00:00:00 2001 From: deb0ch Date: Sat, 3 Dec 2016 13:43:18 +0100 Subject: [PATCH] remove window-numbering-before-hook its sole obvious utility was redundant with `winum-assign-func` while being more complicated to use. Let me know if you miss that functionality. --- README.org | 9 --------- winum.el | 11 ----------- 2 files changed, 20 deletions(-) diff --git a/README.org b/README.org index faf2d79..eac6643 100644 --- a/README.org +++ b/README.org @@ -102,15 +102,6 @@ If non-nil, =winum-mode= assigns 0 to the minibuffer if active. Default: t -- =winum-before-hook= - -Hook called before =winum-mode= starts assigning numbers. The list of -windows to be numbered is passed as a parameter. Use =winum--assign= -to manually assign some of them a number. If you want to assign a number to just -one buffer, use =winum-assign-func= instead. - -Default: nil - - =winum-assign-func= Function called for each window by =winum-mode=. This is called diff --git a/winum.el b/winum.el index 652fd5f..d331a7b 100644 --- a/winum.el +++ b/winum.el @@ -72,16 +72,6 @@ Has effect only when `winum-scope' is not 'frame-local." :group 'winum :type 'boolean) -;; TODO see if useful -(defcustom winum-before-hook nil - "Hook called before `winum-mode' starts assigning numbers. -The list of windows to be numbered is passed as a parameter. -Use `winum--assign' to manually assign some of them a number. -If you want to assign a number to just one buffer, use -`winum-assign-func' instead." - :group 'winum - :type 'hook) - (defcustom winum-assign-func nil "Function called for each window by `winum-mode'. This is called before automatic assignment begins. The function should @@ -296,7 +286,6 @@ POSITION: position in the mode-line." (active-minibuffer-window)) (winum--assign (active-minibuffer-window) 0)) (let ((windows (winum--window-list))) - (run-hook-with-args 'winum-before-hook windows) (when winum-assign-func (mapc (lambda (w) (with-selected-window w