From aa35695444bbb0a955ed17226b5917b2764fd1eb Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 21 Oct 2019 15:54:53 -0400 Subject: [PATCH] term/term: fix wrong-type-arg stringp error on +term/here Caused by a change upstream to the multi-term function's return value. --- modules/term/term/autoload.el | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/modules/term/term/autoload.el b/modules/term/term/autoload.el index b74728076..27219fba6 100644 --- a/modules/term/term/autoload.el +++ b/modules/term/term/autoload.el @@ -45,14 +45,7 @@ If prefix ARG, recreate the term buffer." (select-window window))))))) ;;;###autoload -(defun +term/here () - "Open a terminal buffer in the current window." - (interactive) - ;; Doom's switch-buffer hooks prevent themselves from triggering when - ;; switching from buffer A back to A. Because `multi-term' uses `set-buffer' - ;; before `switch-to-buffer', the hooks don't trigger, so we use this - ;; roundabout way to trigger them properly. - (switch-to-buffer (save-window-excursion (multi-term)))) +(defalias '+term/here #'multi-term) ;; TODO +term/frame -- dedicate current frame to term buffers