[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/geiser-kawa 95e3f4a 010/119: Fix error when requiring geis
From: |
Philip Kaludercic |
Subject: |
[nongnu] elpa/geiser-kawa 95e3f4a 010/119: Fix error when requiring geiser-kawa and kawa binary is not in PATH |
Date: |
Sun, 1 Aug 2021 18:30:29 -0400 (EDT) |
branch: elpa/geiser-kawa
commit 95e3f4a42b653adb8b57094bf50c49856424a34b
Author: spellcard199 <spellcard199@protonmail.com>
Commit: spellcard199 <spellcard199@protonmail.com>
Fix error when requiring geiser-kawa and kawa binary is not in PATH
---
elisp/geiser-kawa.el | 45 ++++++++++++++++++++++-----------------------
1 file changed, 22 insertions(+), 23 deletions(-)
diff --git a/elisp/geiser-kawa.el b/elisp/geiser-kawa.el
index 63e2580..cf7050b 100644
--- a/elisp/geiser-kawa.el
+++ b/elisp/geiser-kawa.el
@@ -102,16 +102,13 @@
:type '(choice string (repeat string))
:group 'geiser-kawa)
-;; TODO: replace file-name-directory/directory-file-name with expand-file-name
(geiser-custom--defcustom
geiser-kawa-manual-path
- (concat
- (file-name-directory
- (directory-file-name
+ (when (executable-find geiser-kawa-binary)
+ (expand-file-name
+ "../doc/kawa-manual.epub"
(file-name-directory
- (directory-file-name
- (executable-find geiser-kawa-binary)))))
- "doc/kawa-manual.epub")
+ (executable-find geiser-kawa-binary))))
"Path of kawa manual. Supported formats are `.epub' (using
`eww-mode') and `.info' (using `info.el')."
:type 'string
@@ -137,22 +134,24 @@
geiser-kawa-binary)))
(defun geiser-kawa--make-classpath ()
- (let ((jars (append
- (let ((lib-dir (expand-file-name
- "../lib/"
- (file-name-directory
- (executable-find geiser-kawa-binary)))))
- (if (and
- (not
geiser-kawa-use-kawa-version-included-in-kawa-geiser)
- (executable-find geiser-kawa-binary)
- (file-directory-p lib-dir))
- (list
- (concat lib-dir "kawa.jar")
- (concat lib-dir "servlet.jar")
- (concat lib-dir "domterm.jar")
- (concat lib-dir "jline.jar"))
- nil))
- (list geiser-kawa-kawa-geiser-jar-path))))
+ (let ((jars
+ (append
+ (if (and
+ (not geiser-kawa-use-kawa-version-included-in-kawa-geiser)
+ (executable-find geiser-kawa-binary))
+ (let ((lib-dir (expand-file-name
+ "../lib/"
+ (file-name-directory
+ (executable-find geiser-kawa-binary)))))
+ (if (file-directory-p lib-dir)
+ (list
+ (concat lib-dir "kawa.jar")
+ (concat lib-dir "servlet.jar")
+ (concat lib-dir "domterm.jar")
+ (concat lib-dir "jline.jar"))
+ nil))
+ nil)
+ (list geiser-kawa-kawa-geiser-jar-path))))
(mapconcat #'identity jars ":")))
(defvar geiser-kawa--arglist
- [nongnu] elpa/geiser-kawa e0fd1de 084/119: Refactor geiser-kawa-devutil-exprtree.el, (continued)
- [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, 2021/08/01
- [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 <=
- [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
- [nongnu] elpa/geiser-kawa ca594ec 075/119: Refactor: rename some functions, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-kawa 32c0359 085/119: Update kawa-devutil version, Philip Kaludercic, 2021/08/01