Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a641353

Browse filesBrowse files
committed
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."
1 parent 16455ab commit a641353
Copy full SHA for a641353

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎inf-clojure.el

Copy file name to clipboardExpand all lines: inf-clojure.el
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@ If you are using REPL types, it will pickup the most appropriate
900900
(clojure.core/meta
901901
(clojure.core/resolve
902902
(clojure.core/read-string \"%s\"))))
903-
(catch Throwable t nil))"
903+
(catch #?(:clj Throwable :cljr Exception) e nil))"
904904
"Form to query inferior Clojure for a function's arglists."
905905
:type 'string
906906
:safe #'stringp

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.