[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/geiser-guile 7004a73 170/284: Guile: remote REPLs (connect
From: |
Philip Kaludercic |
Subject: |
[nongnu] elpa/geiser-guile 7004a73 170/284: Guile: remote REPLs (connect-to-guile) |
Date: |
Sun, 1 Aug 2021 18:29:38 -0400 (EDT) |
branch: elpa/geiser-guile
commit 7004a7338626d1d1b2d29655222aadb12c4649c4
Author: Jose Antonio Ortega Ruiz <jao@gnu.org>
Commit: Jose Antonio Ortega Ruiz <jao@gnu.org>
Guile: remote REPLs (connect-to-guile)
geiser-connect (or its specialisation, connect-to-guile) working for
Guile, where the external process is started with the new --listen
flag.
---
elisp/geiser-guile.el | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/elisp/geiser-guile.el b/elisp/geiser-guile.el
index 7dfb9ad..d831bbf 100644
--- a/elisp/geiser-guile.el
+++ b/elisp/geiser-guile.el
@@ -101,7 +101,7 @@ This function uses `geiser-guile-init-file' if it exists."
(let ((init-file (and (stringp geiser-guile-init-file)
(expand-file-name geiser-guile-init-file))))
`(,@(and (listp geiser-guile-binary) (cdr geiser-guile-binary))
- "-q" "-L" ,(expand-file-name "guile/" geiser-scheme-dir)
+ "-q"
,@(apply 'append (mapcar (lambda (p) (list "-L" p))
geiser-guile-load-path))
,@(and init-file (file-readable-p init-file) (list "-l" init-file)))))
@@ -223,6 +223,13 @@ The new level is set using the value of
`geiser-guile-warning-level'."
(geiser evaluation))))
(geiser-eval--send/result code)))
+(defun connect-to-guile ()
+ "Start a Guile REPL connected to a remote process.
+
+Start the external Guile process with the flag --listen to make
+it spawn a server thread."
+ (geiser-connect 'guile))
+
(defun geiser-guile--startup ()
(set (make-local-variable 'compilation-error-regexp-alist)
`((,geiser-guile--path-rx geiser-guile--resolve-file-x)
@@ -232,6 +239,9 @@ The new level is set using the value of
`geiser-guile-warning-level'."
(font-lock-add-keywords nil
`((,geiser-guile--path-rx 1
compilation-error-face)))
+ (geiser-eval--send/result
+ `(:scm ,(format "(set! %%load-path (cons %S %%load-path))"
+ (expand-file-name "guile/" geiser-scheme-dir))))
(geiser-guile-update-warning-level))
- [nongnu] elpa/geiser-guile a57999c 126/284: Guile: fix for finding locations of symbols in modules outside load path., (continued)
- [nongnu] elpa/geiser-guile a57999c 126/284: Guile: fix for finding locations of symbols in modules outside load path., Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile 03534f1 143/284: Guile: restoring (minimal) support for debugging REPL., Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile 216897a 133/284: Guile: displaying the debugger preamble., Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile 574559b 131/284: Oops, it wasn't dead., Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile c2aa8ae 146/284: Guile: bug fix in macro's autodoc., Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile 46e6067 154/284: Guile: show error message upon entering the debugger, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile 09f4994 159/284: Guile: better filtering of "anonymous" module names, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile 0505bde 158/284: REPL: (optionally) forget old errors on new expressions, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile 4766cbc 163/284: Support for evaluation warnings, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile b1db6b4 168/284: Better REPL exit command, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile 7004a73 170/284: Guile: remote REPLs (connect-to-guile),
Philip Kaludercic <=
- [nongnu] elpa/geiser-guile 0513d1c 177/284: Guile: using meta-commands to talk with Guile, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile 7082042 195/284: Elisp support for inferior schemes, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile 2798902 207/284: Better module help, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile 36e105f 215/284: Revert "Bug fix: don't intern symbols read by scheme reader", Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile a6dccbe 223/284: Guile: new option for loading ~/.guile (see issue #32681), Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile b81b23c 228/284: Support for user-defined Guile info nodes, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile 6324b94 231/284: Configurable keyword case sensitivity, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile 48e2b00 239/284: Scheme version checks, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile 6cef62b 250/284: Follow suit and complete quoted symbols in all schemes, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-guile b57f4bb 258/284: Make guile's load-file happier with ~ abrevs, Philip Kaludercic, 2021/08/01