emacs-elpa-diffs
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]