[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/inf-clojure 0fc2350 225/313: Fix for eldoc-mode for Clojur
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/inf-clojure 0fc2350 225/313: Fix for eldoc-mode for ClojureCLR |
Date: |
Wed, 11 Aug 2021 10:00:22 -0400 (EDT) |
branch: elpa/inf-clojure
commit 0fc23509a1e66bcc3e694066f5067fdbd7b7961d
Author: Александар Симић <asimic@gmail.com>
Commit: Bozhidar Batsov <bozhidar.batsov@gmail.com>
Fix for eldoc-mode for ClojureCLR
When using the REPL, whenever you'd type the function name, because
Throwable is JVM specific, eldoc-mode would try to look up the
function and when it wouldn't find it, it would bomb out with the
complaint that Throwable wasn't defined. Which is to be expected since
it's not running on JVM.
Looking at the documentation
https://docs.oracle.com/javase/10/docs/api/java/lang/Throwable.html
"The Throwable class is the superclass of all errors and exceptions in
the Java language."
And in C#, Exception
https://docs.microsoft.com/en-us/dotnet/api/system.exception?redirectedfrom=MSDN&view=netframework-4.8
"This class is the base class for all exceptions."
---
CHANGELOG.md | 1 +
inf-clojure.el | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index c1d3360..d28d305 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,7 @@
## master (unreleased)
+# [#164](https://github.com/clojure-emacs/inf-clojure/pull/164): Fix for
eldoc-mode on ClojureCLR
* [#160](https://github.com/clojure-emacs/inf-clojure/pull/160): Support
[Joker](https://joker-lang.org/).
* [#135](https://github.com/clojure-emacs/inf-clojure/pull/135): Improve
command sanitation code.
diff --git a/inf-clojure.el b/inf-clojure.el
index 1403432..47e1e6a 100644
--- a/inf-clojure.el
+++ b/inf-clojure.el
@@ -900,7 +900,7 @@ If you are using REPL types, it will pickup the most
appropriate
(clojure.core/meta
(clojure.core/resolve
(clojure.core/read-string \"%s\"))))
- (catch Throwable t nil))"
+ (catch #?(:clj Throwable :cljr Exception) e nil))"
"Form to query inferior Clojure for a function's arglists."
:type 'string
:safe #'stringp
- [nongnu] elpa/inf-clojure 380528f 078/313: Bump the clojure-mode dependency, (continued)
- [nongnu] elpa/inf-clojure 380528f 078/313: Bump the clojure-mode dependency, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 24463b4 105/313: [Fix #26] Make switching to the REPL optional on, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure b357856 112/313: Rename defcustoms to `inf-clojure-*-form` where appropriate, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 64162aa 138/313: Fix a formatting issue in the README, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 9d2d143 144/313: Make sure tabs would never sneak in, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure c08d8bb 165/313: Split the only when-let for backward compatibility, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 94f440e 192/313: Extract keyword words for completion, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure da88c8c 205/313: Require seq library. Fixes https://github.com/clojure-emacs/inf-clojure/issues/141, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure feca1cc 201/313: Send string even when empty, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 3d72305 208/313: README: Add section describing how to start and connect to a socket server., ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 0fc2350 225/313: Fix for eldoc-mode for ClojureCLR,
ELPA Syncer <=
- [nongnu] elpa/inf-clojure a61dd84 232/313: Insert top level defun into repl, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure bcd806a 251/313: Unify references to the term REPL, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure a7f07a0 245/313: Set artificial to true on comint-send-input, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure e291da3 274/313: Update README.md, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 787400f 264/313: [Fix #178] Ensure there is a directory for comint (thanks mcphailm), ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 6cb8e43 277/313: Update the CI images, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 477fd7c 272/313: Tweak some wording, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure a98a260 281/313: [#152] Add a changelog entry, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure f4a279e 286/313: [Fix #177] Don't run the tests on Emacs 25, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure b4193fc 289/313: Reindent tests, ELPA Syncer, 2021/08/11