[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/geiser-kawa 11c8415 037/119: Fix (workaround) autodoc for
From: |
Philip Kaludercic |
Subject: |
[nongnu] elpa/geiser-kawa 11c8415 037/119: Fix (workaround) autodoc for certain symbol names |
Date: |
Sun, 1 Aug 2021 18:30:34 -0400 (EDT) |
branch: elpa/geiser-kawa
commit 11c84155973bbdc4d65b461f475494da0da313e4
Author: spellcard199 <spellcard199@protonmail.com>
Commit: spellcard199 <spellcard199@protonmail.com>
Fix (workaround) autodoc for certain symbol names
---
src/main/java/kawageiser/GeiserAutodoc.java | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/src/main/java/kawageiser/GeiserAutodoc.java
b/src/main/java/kawageiser/GeiserAutodoc.java
index 747bbd2..5a49a46 100644
--- a/src/main/java/kawageiser/GeiserAutodoc.java
+++ b/src/main/java/kawageiser/GeiserAutodoc.java
@@ -9,7 +9,10 @@ import gnu.expr.CompiledProc;
import gnu.expr.Language;
import gnu.kawa.functions.Format;
import gnu.lists.LList;
-import gnu.mapping.*;
+import gnu.mapping.Environment;
+import gnu.mapping.Procedure;
+import gnu.mapping.Procedure1or2;
+import gnu.mapping.Symbol;
import kawadevutil.data.ParamData;
import kawadevutil.data.ProcDataGeneric;
import kawadevutil.data.ProcDataNonGeneric;
@@ -207,7 +210,12 @@ public class GeiserAutodoc extends Procedure1or2 {
Object operator = null;
boolean symExists = false;
try {
- operator = lang.eval(symId.toString());
+ // env.get(symId) works with the < procedure, while
lang.eval(symId.toString())
+ // raises NullPointerException (maybe a bug?).
+ // On the other hand, env.get(symId) does not work with
procedures defined
+ // from java with lang.defineFunction(), like the various
geiser:...
+ // Since kawadevutil's eval works for both we are using that
for now.
+ operator = GeiserEval.evaluator.eval(lang, env,
symId).getResult();
symExists = true; // If it didn't exist env.get(symId) would
have raised UnboundLocationException
if (!Procedure.class.isAssignableFrom(operator.getClass())) {
// Not a procedure
- [nongnu] elpa/geiser-kawa f258b9a 073/119: TODO.org: add notes to self on how to make the melpa recipe, (continued)
- [nongnu] elpa/geiser-kawa f258b9a 073/119: TODO.org: add notes to self on how to make the melpa recipe, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-kawa da47cd7 082/119: Fix broken name, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-kawa e0fd1de 084/119: Refactor geiser-kawa-devutil-exprtree.el, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-kawa 4750e5c 021/119: Update README, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-kawa c9c493e 006/119: Add pom.xml for kawa-geiser dependency, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-kawa 8d04e27 032/119: Update kawa-devutil dep, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-kawa 84eea5c 008/119: Add quickstart.el, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-kawa 86ef157 020/119: Join projects: kawa-geiser is now part of geiser-kawa, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-kawa 29d4f87 015/119: pom.xml - Update kawa-geiser SHA, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-kawa 0eab288 018/119: README.org - Small reword, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-kawa 11c8415 037/119: Fix (workaround) autodoc for certain symbol names,
Philip Kaludercic <=
- [nongnu] elpa/geiser-kawa aad27bb 039/119: Small reword in comment, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-kawa 95e3f4a 010/119: Fix error when requiring geiser-kawa and kawa binary is not in PATH, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-kawa cf06550 030/119: Small changes to README, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-kawa 0c311ae 051/119: Rename var to geiser-kawa-use-included-kawa, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-kawa 5762c19 053/119: Cask file: add buttercup dep + copyright, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-kawa bd3e31f 054/119: Update README.org after renamings, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-kawa e440789 058/119: Add optional arg to function checking for jar file, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-kawa 45dc276 060/119: Fix and set pretty print default to true, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-kawa f9149a7 074/119: Move elisp tests under the elisp directory, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-kawa e349b4b 079/119: Refactor+Fix+Style: many changes in preparation for melpa submission., Philip Kaludercic, 2021/08/01