[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/inf-clojure 5c8f590 179/313: [Fix #116] Set inf-clojure-bu
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/inf-clojure 5c8f590 179/313: [Fix #116] Set inf-clojure-buffer REPL type on detect |
Date: |
Wed, 11 Aug 2021 10:00:12 -0400 (EDT) |
branch: elpa/inf-clojure
commit 5c8f590d5c741d28b99129478e136e398643d9a5
Author: Andrea Richiardi <a.richiardi.work@gmail.com>
Commit: Bozhidar Batsov <bozhidar.batsov@gmail.com>
[Fix #116] Set inf-clojure-buffer REPL type on detect
Now the code sets the inf-clojure-repl-type buffer local var in the
inf-clojure-buffer when a REPL type is detected. This solves the weird
errors
that were happening when working within the REPL buffer because
inf-clojure-repl-type is nil.
---
CHANGELOG.md | 1 +
inf-clojure.el | 7 ++++---
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1eca521..da62ab5 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,6 +8,7 @@
* [#83](https://github.com/clojure-emacs/inf-clojure/pull/85): No such
namespace: complete.core in lumo REPL.
* [#93](https://github.com/clojure-emacs/inf-clojure/pull/93): Slow response
from inf-clojure (completions, arglists, ...).
* [#101](https://github.com/clojure-emacs/inf-clojure/pull/101):
`inf-clojure-set-ns` hangs Emacs.
+* [#119](https://github.com/clojure-emacs/inf-clojure/pull/119): Set
inf-clojure-buffer REPL type on detect.
* [#120](https://github.com/clojure-emacs/inf-clojure/pull/120): Send REPL
string always, even if empty.
### New Features
diff --git a/inf-clojure.el b/inf-clojure.el
index ed6058e..c16f913 100644
--- a/inf-clojure.el
+++ b/inf-clojure.el
@@ -292,9 +292,10 @@ See
http://blog.jorgenschaefer.de/2014/05/race-conditions-in-emacs-process-filte
(defun inf-clojure--set-repl-type (proc)
"Set the REPL type if has not already been set.
It requires a REPL PROC for inspecting the correct type."
- (if (not inf-clojure-repl-type)
- (setq inf-clojure-repl-type (inf-clojure--detect-repl-type proc))
- inf-clojure-repl-type))
+ (with-current-buffer inf-clojure-buffer
+ (if (not inf-clojure-repl-type)
+ (setq inf-clojure-repl-type (inf-clojure--detect-repl-type proc))
+ inf-clojure-repl-type)))
(defun inf-clojure--single-linify (string)
"Convert a multi-line STRING in a single-line STRING.
- [nongnu] elpa/inf-clojure 9ba23b0 149/313: Wrap a long line, (continued)
- [nongnu] elpa/inf-clojure 9ba23b0 149/313: Wrap a long line, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 956b22e 148/313: Release 2.0.1, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 74e8423 150/313: Fix get-completions for lumo (#81), ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 9fa8f37 153/313: Disable pretty print when fetching lumo arglists, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure f666f60 154/313: [Fix #79] Disable coloring for the boot repl (#82), ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 1a71b5e 163/313: Rephrase process logging description a bit, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure ee38fc3 164/313: [Fix #96] Use inf-clojure--send-string instead of comint-proc-query, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 7493ed8 166/313: Set inf-clojure-*-cmd :risky and :safe properties, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure b048358 173/313: Add expression break chars and prevent completions for numbers (#110), ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 8c27b06 177/313: Introduce the tools.deps project type, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 5c8f590 179/313: [Fix #116] Set inf-clojure-buffer REPL type on detect,
ELPA Syncer <=
- [nongnu] elpa/inf-clojure 7b2fcd7 184/313: Revive inf-clojure-apropos, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 8baa7ad 185/313: Correct inf-clojure-apropos key binding, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure d3c0d4f 187/313: Avoid throwing an error for frequent operations like completion, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 630471b 194/313: Update CHANGELOG.md, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure c3217c3 200/313: Skip sanitation of comments, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 9b77479 207/313: Set inf-clojure-tools-deps-cmd to "clojure" (#144), ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 58150d7 256/313: Improve some wording in the README, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure f63c609 252/313: Fix a typo, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure b5e915c 204/313: Travis test like in cider, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure b88de63 260/313: Tweak a docstring, ELPA Syncer, 2021/08/11