branch: externals/embark
commit 25217ccddf3a7cc58378c71cf41843c631cc94d2
Author: Daniel Mendler <[email protected]>
Commit: Daniel Mendler <[email protected]>

    outline-minor-mode is autoloaded
---
 embark.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/embark.el b/embark.el
index d1e7540ff9..4f0ba68288 100644
--- a/embark.el
+++ b/embark.el
@@ -113,8 +113,7 @@
 
 (eval-when-compile (require 'subr-x))
 
-(require 'ffap)    ; used to recognize file and url targets
-(require 'outline) ; used for group-function support in collect buffers
+(require 'ffap) ; used to recognize file and url targets
 
 ;;; User facing options
 
@@ -2643,6 +2642,7 @@ If NESTED is non-nil subkeymaps are not flattened."
   'face 'embark-collect-candidate
   'action 'embark-collect-choose)
 
+(declare-function outline-toggle-children "outline")
 (define-button-type 'embark-collect-group
   'face 'embark-collect-group-title
   'action (lambda (_) (outline-toggle-children)))
@@ -2685,8 +2685,8 @@ If NESTED is non-nil subkeymaps are not flattened."
   ("b" backward-button)
   ("<right>" forward-button)
   ("<left>" backward-button)
-  ("M-n" outline-next-heading)
-  ("M-p" outline-previous-heading))
+  ("M-n" 'outline-next-heading)
+  ("M-p" 'outline-previous-heading))
 
 (define-derived-mode embark-collect-mode tabulated-list-mode "Embark Collect"
   "List of candidates to be acted on.

Reply via email to