emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/lua-mode a80d912 350/468: Fix a minor bug in lua-kill-proc


From: Philip Kaludercic
Subject: [nongnu] elpa/lua-mode a80d912 350/468: Fix a minor bug in lua-kill-process
Date: Thu, 5 Aug 2021 04:59:07 -0400 (EDT)

branch: elpa/lua-mode
commit a80d91208e82af62731bd2e0d0ce175c320d5ec0
Author: Reuben Thomas <rrt@sc3d.org>
Commit: Reuben Thomas <rrt@sc3d.org>

    Fix a minor bug in lua-kill-process
    
    Set lua-process-buffer to nil after killing the buffer so we don’t try to
    use it erroneously. Fixes lua-restart-with-whole-file giving an error every
    other invocation.
---
 lua-mode.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lua-mode.el b/lua-mode.el
index bc71e6b..f35d964 100644
--- a/lua-mode.el
+++ b/lua-mode.el
@@ -1776,7 +1776,8 @@ When called interactively, switch to the process buffer."
   "Kill Lua process and its buffer."
   (interactive)
   (when (buffer-live-p lua-process-buffer)
-    (kill-buffer lua-process-buffer)))
+    (kill-buffer lua-process-buffer)
+    (setq lua-process-buffer nil)))
 
 (defun lua-set-lua-region-start (&optional arg)
   "Set start of region for use with `lua-send-lua-region'."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]