[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/lua-mode 8d27d2c 268/468: fixed up tests && improved lua-k
From: |
Philip Kaludercic |
Subject: |
[nongnu] elpa/lua-mode 8d27d2c 268/468: fixed up tests && improved lua-kill-process |
Date: |
Thu, 5 Aug 2021 04:58:50 -0400 (EDT) |
branch: elpa/lua-mode
commit 8d27d2c37aedbcfcffc82c5808d6baeae3258753
Author: xristos <xristos@sdf.lonestar.org>
Commit: xristos <xristos@sdf.lonestar.org>
fixed up tests && improved lua-kill-process
---
lua-mode.el | 5 ++---
test/inferior-test.el | 13 ++++++++-----
2 files changed, 10 insertions(+), 8 deletions(-)
diff --git a/lua-mode.el b/lua-mode.el
index 31dca83..0fd4178 100644
--- a/lua-mode.el
+++ b/lua-mode.el
@@ -1666,9 +1666,8 @@ When called interactively, switch to the process buffer."
(defun lua-kill-process ()
"Kill lua subprocess and its buffer."
(interactive)
- (when lua-process-buffer
- (kill-buffer lua-process-buffer)
- (setq lua-process-buffer nil)))
+ (when (buffer-live-p lua-process-buffer)
+ (kill-buffer lua-process-buffer)))
(defun lua-set-lua-region-start (&optional arg)
"Set start of region for use with `lua-send-lua-region'."
diff --git a/test/inferior-test.el b/test/inferior-test.el
index 34fbdbf..9e4a35c 100644
--- a/test/inferior-test.el
+++ b/test/inferior-test.el
@@ -6,22 +6,25 @@
(ert-deftest lua-hide-process-buffer-doesnt-switch-current-window ()
- :expected-result :failed
-
(with-lua-buffer
(let ((cur-buf (current-buffer)))
(should (get-buffer-window cur-buf))
-
+ (lua-start-process)
(lua-hide-process-buffer)
(should (get-buffer-window cur-buf)))))
(ert-deftest lua-hide-process-buffer-doesnt-signal-on-killed-process ()
- :expected-result :failed
(with-lua-buffer
(let ((cur-buf (current-buffer)))
(lua-start-process)
(lua-kill-process)
-
(lua-hide-process-buffer)
(should (get-buffer-window cur-buf)))))
+(ert-deftest lua-hide-process-buffer-standalone ()
+ (with-lua-buffer
+ (let ((cur-buf (current-buffer)))
+ ;; lua-process-buffer should be nil
+ (lua-hide-process-buffer)
+ (should (get-buffer-window cur-buf)))))
+
- [nongnu] elpa/lua-mode 6729533 234/468: Rewrite lua-send-buffer function (should fix issue #60), (continued)
- [nongnu] elpa/lua-mode 6729533 234/468: Rewrite lua-send-buffer function (should fix issue #60), Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode afc1ea0 235/468: Send init-code in lua-start-process, enable compilation-shell-minor-mode, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 1ede907 242/468: Fix several cases for `indent-new-comment-line' (M-j), Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 6c55abb 245/468: Add lua-rx/-to-string wrappers to simplify writing Lua-specific regexps, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 1452f8e 244/468: should-lua-indent: accept strings rather than lists to simplify writing tests, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode a0f3a6f 250/468: Simplify font-lock & imenu regexps with lua-rx, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode e430d01 252/468: Remove deprecated test code from test/, put current code there instead, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 1d21a10 259/468: Reorganize test structure, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode dc55356 261/468: lua-forward-regexp: make sure direction is `forward', Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 0a986f7 266/468: Add hideshow support for "repeat... until" blocks, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 8d27d2c 268/468: fixed up tests && improved lua-kill-process,
Philip Kaludercic <=
- [nongnu] elpa/lua-mode 82daeb5 297/468: Merge pull request #88 from tarsius/master, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 7b2c18c 305/468: Merge pull request #99 from tarsius/master, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 6f4035a 315/468: Merge pull request #108 from ptrv/patch-1, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode f2915c3 324/468: Add string tab escape test, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 652e299 339/468: gitignore: add cask working dir, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode adb1f3a 334/468: lua_loadstring: fix variables that were made global, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 191eb10 330/468: Makefile: add "nocask" targets, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 25c2535 343/468: test-inferior-process: temporarily disable failing test, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode e97861c 226/468: ert-tests/test-electric-mode.el: add tests for electric indentation, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode ec35884 228/468: Suppress fontification messages in emacs23 test output, Philip Kaludercic, 2021/08/05