# HG changeset patch # User Arne Babenhauserheide # Date 1726941529 -7200 # Sat Sep 21 19:58:49 2024 +0200 # Node ID 61d068638c88d149a6f75619e284f8c1e9657e90 # Parent e1531181ebf04fa36ea10c2ef534abb4fba8c28a fix: remove the default to *shell* to avoid sending commands to an unexpected process diff --git a/wisp-mode.el b/wisp-mode.el --- a/wisp-mode.el +++ b/wisp-mode.el @@ -218,7 +218,7 @@ (wisp--indent curr))) -(defvar wisp--eval-process-target "*shell*") +(defvar wisp--eval-process-target nil) (defun wisp--eval-block (arg) "Send the current block to a target buffer (by default *shell*). @@ -227,6 +227,7 @@ Similar to `eval-defun'." (interactive "P") (if (or arg + (not wisp--eval-process-target) ;; unset (not (process-live-p (get-buffer-process wisp--eval-process-target)))) (setq wisp--eval-process-target