branch: elpa/engine-mode commit f7b5aadafa45ae133b9b2c17327d2b63e226de9f Author: Basil L. Contovounesios <conto...@tcd.ie> Commit: Harry R. Schwartz <he...@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))