From 60f6f5f10e29a67092a6d71e08f92d4631d02617 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Sat, 6 Aug 2022 15:14:43 -0700 Subject: fix(wpcarro/emacs): Remove vterm-mgt.el's dep on prelude.el I wonder if there's an Elisp linter that can catch these errors at nix-build time. Change-Id: Ib54e1e57e46ef81021fc373ceecab5a729646472 Reviewed-on: https://cl.tvl.fyi/c/depot/+/6048 Reviewed-by: wpcarro Autosubmit: wpcarro Tested-by: BuildkiteCI --- users/wpcarro/emacs/pkgs/vterm-mgt/vterm-mgt.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'users/wpcarro') diff --git a/users/wpcarro/emacs/pkgs/vterm-mgt/vterm-mgt.el b/users/wpcarro/emacs/pkgs/vterm-mgt/vterm-mgt.el index d61b76ab2c91..c082e54a5976 100644 --- a/users/wpcarro/emacs/pkgs/vterm-mgt/vterm-mgt.el +++ b/users/wpcarro/emacs/pkgs/vterm-mgt/vterm-mgt.el @@ -46,9 +46,10 @@ "Return t if the buffer B is a vterm instance." (equal 'vterm-mode (buffer-local-value 'major-mode b))) -(defmacro vterm-mgt--assert-vterm-buffer () +(defun vterm-mgt--assert-vterm-buffer () "Error when the `current-buffer' is not a vterm buffer." - '(prelude-assert (vterm-mgt--instance? (current-buffer)))) + (unless (vterm-mgt--instance? (current-buffer)) + (error "Current buffer is not a vterm buffer"))) (defun vterm-mgt-next () "Replace the current buffer with the next item in `vterm-mgt--instances'. -- cgit 1.4.1