emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/mct 723c89ff0a: mct-avy: use autoloads for avy and emba


From: ELPA Syncer
Subject: [elpa] externals/mct 723c89ff0a: mct-avy: use autoloads for avy and embark
Date: Mon, 21 Mar 2022 11:57:38 -0400 (EDT)

branch: externals/mct
commit 723c89ff0a5009caa57ada473a0574d59b3b5477
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    mct-avy: use autoloads for avy and embark
    
    In principle, mct-avy.el should be its own package and that is what I
    might end up doing.  But let's keep it this way for the time being as I
    am still experimenting with those extensions.
    
    Thanks to Daniel Mendler for the feedback:
    
<https://github.com/protesilaos/mct/commit/e178a9e27583b14715c8a09bec97cfaa9035dc6d#commitcomment-69168843>.
---
 mct-avy.el | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/mct-avy.el b/mct-avy.el
index 11846cb5a4..cd5c1dfec3 100644
--- a/mct-avy.el
+++ b/mct-avy.el
@@ -5,7 +5,7 @@
 ;; Author: Protesilaos Stavrou <info@protesilaos.com>
 ;; URL: https://gitlab.com/protesilaos/mct
 ;; Version: 0.5.0
-;; Package-Requires: ((emacs "27.1") (avy "0.5") (mct "0.5"))
+;; Package-Requires: ((emacs "27.1") (mct "0.5"))
 
 ;; This file is NOT part of GNU Emacs.
 
@@ -36,7 +36,8 @@
 ;;;; General utilities
 
 (require 'mct)
-(require 'avy)
+
+(declare-function avy-process "avy" (candidates &optional overlay-fn 
cleanup-fn))
 
 (defun mct-avy-choose (&optional fn)
   "Use Avy to go to completion candidate and optionally run FN."
@@ -81,6 +82,8 @@ completion where the minibuffer is not active."
   (interactive)
   (mct-avy-choose #'choose-completion))
 
+(declare-function embark-act "embark" (&optional arg))
+
 ;;;###autoload
 (defun mct-avy-embark-act ()
   "Use Avy to run `embark-act' on candidate.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]