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

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

[nongnu] elpa/engine-mode f7b5aadafa 47/71: Fix cl/-lib usage


From: ELPA Syncer
Subject: [nongnu] elpa/engine-mode f7b5aadafa 47/71: Fix cl/-lib usage
Date: Wed, 21 Dec 2022 09:59:15 -0500 (EST)

branch: elpa/engine-mode
commit f7b5aadafa45ae133b9b2c17327d2b63e226de9f
Author: Basil L. Contovounesios <contovob@tcd.ie>
Commit: Harry R. Schwartz <hello@harryrschwartz.com>

    Fix cl/-lib usage
    
    * Use cl-assert from cl-macs.el, not assert from unused cl.el.
    * Do not unnecessarily load cl-lib at runtime.
---
 engine-mode.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/engine-mode.el b/engine-mode.el
index c30026aad4..286552317f 100644
--- a/engine-mode.el
+++ b/engine-mode.el
@@ -49,7 +49,7 @@
 ;; along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 ;;; Code:
-(require 'cl-lib)
+(eval-when-compile (require 'cl-macs))
 
 (defcustom engine/keybinding-prefix "C-x /"
   "The default engine-mode keybindings prefix."
@@ -159,7 +159,7 @@ For example, to search Wikipedia, use:
 Hitting \"C-x / w\" will be bound to the newly-defined
 `engine/search-wikipedia' function."
 
-  (assert (symbolp engine-name))
+  (cl-assert (symbolp engine-name))
   `(prog1
      (defun ,(engine/function-name engine-name) (search-term)
        ,(or docstring (engine/docstring engine-name))



reply via email to

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