[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/idris-mode fbe5e363c4 11/14: Use `idris-connection-buffer-
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/idris-mode fbe5e363c4 11/14: Use `idris-connection-buffer-name` instead of `(idris-buffer-name :connection)` |
Date: |
Thu, 1 Dec 2022 08:02:54 -0500 (EST) |
branch: elpa/idris-mode
commit fbe5e363c43c08b64bfa3c5a09fa021d412e5394
Author: Marek L <nospam.keram@gmail.com>
Commit: Marek L <nospam.keram@gmail.com>
Use `idris-connection-buffer-name` instead of `(idris-buffer-name
:connection)`
---
idris-commands.el | 2 +-
inferior-idris.el | 7 +++++--
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/idris-commands.el b/idris-commands.el
index a0b464f2d3..3c122775e9 100644
--- a/idris-commands.el
+++ b/idris-commands.el
@@ -976,7 +976,7 @@ https://github.com/clojure-emacs/cider"
(interactive)
(setq idris-prover-currently-proving nil)
(let* ((pbuf (get-buffer idris-process-buffer-name))
- (cbuf (get-buffer (idris-buffer-name :connection))))
+ (cbuf (get-buffer idris-connection-buffer-name)))
(when cbuf
(when (get-buffer-process cbuf)
(with-current-buffer cbuf (delete-process nil))) ; delete connection
without asking
diff --git a/inferior-idris.el b/inferior-idris.el
index 6bb5bbfbd4..ba2ea128b5 100644
--- a/inferior-idris.el
+++ b/inferior-idris.el
@@ -69,6 +69,9 @@
(defvar idris-process-buffer-name (idris-buffer-name :process)
"The name of the Idris process buffer.")
+(defvar idris-connection-buffer-name (idris-buffer-name :connection)
+ "The name of the Idris connection buffer.")
+
(defun idris-version-hook-function (event)
(pcase event
(`(:protocol-version ,version ,minor)
@@ -101,7 +104,7 @@ directory variables.")
(interactive)
(let ((command-line-flags (idris-compute-flags)))
;; Kill the running Idris if the command-line flags need updating
- (when (and (get-buffer-process (get-buffer (idris-buffer-name
:connection)))
+ (when (and (get-buffer-process (get-buffer idris-connection-buffer-name))
(not (equal command-line-flags idris-current-flags)))
(message "Idris command line arguments changed, restarting Idris")
(idris-quit)
@@ -134,7 +137,7 @@ directory variables.")
"Establish a connection with a Idris REPL."
(when (not idris-connection)
(setq idris-connection
- (open-network-stream "Idris IDE support" (idris-buffer-name
:connection) "127.0.0.1" port))
+ (open-network-stream "Idris IDE support"
idris-connection-buffer-name "127.0.0.1" port))
(add-hook 'idris-event-hooks 'idris-version-hook-function)
(add-hook 'idris-event-hooks 'idris-log-hook-function)
(add-hook 'idris-event-hooks 'idris-warning-event-hook-function)
- [nongnu] elpa/idris-mode updated (fdbd019cb2 -> d08fd3ec78), ELPA Syncer, 2022/12/01
- [nongnu] elpa/idris-mode e31fe83a40 02/14: Remove generated clause from `AddClause.idr` to, ELPA Syncer, 2022/12/01
- [nongnu] elpa/idris-mode 5d0c82679a 05/14: Remove unused `idris-hole-list-buffer-visible-p`, ELPA Syncer, 2022/12/01
- [nongnu] elpa/idris-mode b35ac9740e 10/14: Use `idris-process-buffer-name` instead of `(idris-buffer-name :process)`, ELPA Syncer, 2022/12/01
- [nongnu] elpa/idris-mode fbe5e363c4 11/14: Use `idris-connection-buffer-name` instead of `(idris-buffer-name :connection)`,
ELPA Syncer <=
- [nongnu] elpa/idris-mode 38f2839b58 08/14: Use `let ((buffer-read-only nil)` instead of `setq ..`, ELPA Syncer, 2022/12/01
- [nongnu] elpa/idris-mode 1382948269 01/14: Consider - as operator in idris-thing-at-point, ELPA Syncer, 2022/12/01
- [nongnu] elpa/idris-mode e8109f9ac0 04/14: Remove Idris event logging from `make test3`, ELPA Syncer, 2022/12/01
- [nongnu] elpa/idris-mode 0093e0b42c 13/14: Merge pull request #576 from keram/hole-list, ELPA Syncer, 2022/12/01
- [nongnu] elpa/idris-mode d08fd3ec78 14/14: Merge pull request #569 from keram/idris2-mode-issues-16, ELPA Syncer, 2022/12/01
- [nongnu] elpa/idris-mode f3a032c194 03/14: Add test for `idris-add-clause`, ELPA Syncer, 2022/12/01
- [nongnu] elpa/idris-mode 391963a94c 09/14: Use `idris-repl-buffer-name` instead of `(idris-buffer-name :repl)`, ELPA Syncer, 2022/12/01
- [nongnu] elpa/idris-mode 2c1329b086 06/14: Use `idris-notes-buffer-name` in idris-commands.el, ELPA Syncer, 2022/12/01
- [nongnu] elpa/idris-mode 17d9b1593f 07/14: Make hole-list buffer derived from special-mode, ELPA Syncer, 2022/12/01
- [nongnu] elpa/idris-mode 195b432903 12/14: Merge pull request #574 from keram/minor-internal-impro, ELPA Syncer, 2022/12/01