[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/lua-mode 52cc3e4 378/468: Merge pull request #154 from imm
From: |
Philip Kaludercic |
Subject: |
[nongnu] elpa/lua-mode 52cc3e4 378/468: Merge pull request #154 from immerrr/set-comint-prompt-regexp-locally-in-process-buf |
Date: |
Thu, 5 Aug 2021 04:59:13 -0400 (EDT) |
branch: elpa/lua-mode
commit 52cc3e465a2d35dbcbad8a87fd5fe548840f5822
Merge: 770a83d c7c3aaa
Author: immerrr again <immerrr+lua@gmail.com>
Commit: GitHub <noreply@github.com>
Merge pull request #154 from
immerrr/set-comint-prompt-regexp-locally-in-process-buf
Set comint-prompt-regexp locally in process buffer
---
lua-mode.el | 6 ++----
test/test-inferior-process.el | 12 +++++++++++-
2 files changed, 13 insertions(+), 5 deletions(-)
diff --git a/lua-mode.el b/lua-mode.el
index 0323250..67de071 100644
--- a/lua-mode.el
+++ b/lua-mode.el
@@ -709,9 +709,6 @@ Groups 6-9 can be used in any of argument regexps."
:abbrev-table lua-mode-abbrev-table
:syntax-table lua-mode-syntax-table
:group 'lua
- (setq comint-prompt-regexp lua-prompt-regexp)
-
-
(setq-local font-lock-defaults '(lua-font-lock-keywords ;; keywords
nil ;; keywords-only
nil ;; case-fold
@@ -1738,7 +1735,8 @@ When called interactively, switch to the process buffer."
(setq compilation-error-regexp-alist
(cons (list lua-traceback-line-re 1 2)
compilation-error-regexp-alist))
- (compilation-shell-minor-mode 1))
+ (compilation-shell-minor-mode 1)
+ (setq-local comint-prompt-regexp lua-prompt-regexp))
;; when called interactively, switch to process buffer
(if (called-interactively-p 'any)
diff --git a/test/test-inferior-process.el b/test/test-inferior-process.el
index ae1b970..2d160a0 100644
--- a/test/test-inferior-process.el
+++ b/test/test-inferior-process.el
@@ -3,7 +3,7 @@
default-directory))
"utils.el") nil 'nomessage 'nosuffix)
(require 'cl-lib)
-
+(require 'comint)
(describe "Hiding process buffer does not switch current window"
@@ -30,6 +30,16 @@
(lua-hide-process-buffer)
(expect (get-buffer-window cur-buf))))))
+(describe "Compilation minor mode"
+ (it "sets comint-prompt-regexp in process buffer"
+ (with-lua-buffer
+ (lua-start-process)
+ (with-current-buffer lua-process-buffer
+ (expect "" :not :to-match comint-prompt-regexp)
+ (expect "> " :to-match comint-prompt-regexp))
+ (expect comint-prompt-regexp :to-equal "^"))
+ (expect comint-prompt-regexp :to-equal "^")))
+
(require 'compile)
(if (fboundp 'compilation--loc->file-struct)
- [nongnu] elpa/lua-mode b27edce 348/468: Minor simplification of lua-get-create-process, (continued)
- [nongnu] elpa/lua-mode b27edce 348/468: Minor simplification of lua-get-create-process, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 34e911b 358/468: travis: disable git-snapshot, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 4cb20c0 359/468: Cask: specify minimum version for buttercup, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode c850d2e 357/468: test-inferior-process: temporarily disable failing test, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode e68bc14 353/468: Remove compatibility for Emacs < 24, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 8b66d36 364/468: Merge branch 'master' into master, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 95c64bb 366/468: Add doc for lua-find-matching-token-word, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode aee46da 367/468: added lua-indent-nested-block-content-align var, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 8503e16 370/468: travis: specify language=minimal explicitly, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode c7c3aaa 377/468: Set comint-prompt-regexp locally in process buffer, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 52cc3e4 378/468: Merge pull request #154 from immerrr/set-comint-prompt-regexp-locally-in-process-buf,
Philip Kaludercic <=
- [nongnu] elpa/lua-mode 0f7f010 383/468: Fix typo, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 505896f 386/468: added tests for lua-indent-nested-block-content-align and lua-indent-close-paren-align, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 0cf8000 387/468: add lua-indent-close-paren-align to README.md, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 2a8b58b 390/468: Silence byte-compiler, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 1f596a9 392/468: Merge pull request #161 from tarsiiformes/lexical, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 0781d83 404/468: Merge pull request #175 from immerrr/add-lua-backward-up-list-command, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode d6dc6fb 406/468: Don't add "continuation line" indentation inside parentheses/brackets, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode ed01d35 071/468: Implement proper syntax-status querying: improve precision a lot, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 0a1e915 262/468: bug fixes for show/hide process buffer, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 6315591 265/468: indentation-test: extend unary op test cases, Philip Kaludercic, 2021/08/05