From 2892c026f469706cfbb30bf737625902b2d3cdc2 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 4 Dec 2017 16:36:40 -0800 Subject: [PATCH] Add note in NEWS.md about :after and autoloaded keybindings --- etc/USE-PACKAGE-NEWS | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/etc/USE-PACKAGE-NEWS b/etc/USE-PACKAGE-NEWS index 28f76b942ea..5873d699089 100644 --- a/etc/USE-PACKAGE-NEWS +++ b/etc/USE-PACKAGE-NEWS @@ -118,6 +118,24 @@ features (diminish, delight, ensure) may be maintained separately from the core functionality. +- When using the `:after` keyword, now even autoloadeds keybinding are + deferred until after that other package has loaded, in order to allow + convenient `:bind` to maps only present in that other package. Consider the + following: + + ``` elisp + (use-package helm-descbinds + :load-path "site-lisp/helm-descbinds" + :after helm + :bind ("C-h b" . helm-descbinds) + :init + (fset 'describe-bindings 'helm-descbinds)) + ``` + + The binding of `C-h b` here will not occur until helm is loaded; and after + it is loaded, `helm-descbinds` itself is not loaded until the user presses + `C-h b`. + ### Bug fixes - Repeating a bind no longer causes duplicates in personal-keybindings. -- 2.39.2