about summary refs log tree commit diff
path: root/users/wpcarro/emacs/pkgs/vterm-mgt/vterm-mgt.el
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2022-08-06T22·14-0700
committerclbot <clbot@tvl.fyi>2022-08-06T22·21+0000
commit60f6f5f10e29a67092a6d71e08f92d4631d02617 (patch)
treebeae4919783f6a96fb4167777d67f7b426a632c0 /users/wpcarro/emacs/pkgs/vterm-mgt/vterm-mgt.el
parent42ff8ccf5f5a6573181b47a3a2035d9c6136123c (diff)
fix(wpcarro/emacs): Remove vterm-mgt.el's dep on prelude.el r/4392
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 <wpcarro@gmail.com>
Autosubmit: wpcarro <wpcarro@gmail.com>
Tested-by: BuildkiteCI
Diffstat (limited to 'users/wpcarro/emacs/pkgs/vterm-mgt/vterm-mgt.el')
-rw-r--r--users/wpcarro/emacs/pkgs/vterm-mgt/vterm-mgt.el5
1 files changed, 3 insertions, 2 deletions
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'.