]> git.eshelyaron.com Git - emacs.git/commitdiff
Add note in NEWS.md about :after and autoloaded keybindings
authorJohn Wiegley <johnw@newartisans.com>
Tue, 5 Dec 2017 00:36:40 +0000 (16:36 -0800)
committerJohn Wiegley <johnw@newartisans.com>
Tue, 5 Dec 2017 00:36:56 +0000 (16:36 -0800)
etc/USE-PACKAGE-NEWS

index 28f76b942ea90a459058c12af396a9a5c4906dfa..5873d6990898f50086a504d6258da4a5f8581c49 100644 (file)
   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.