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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/geiser-guile 9c08f27 203/284: Make do with a single connec


From: Philip Kaludercic
Subject: [nongnu] elpa/geiser-guile 9c08f27 203/284: Make do with a single connection
Date: Sun, 1 Aug 2021 18:29:45 -0400 (EDT)

branch: elpa/geiser-guile
commit 9c08f27ca364529c533e395b30200993a4900e36
Author: Jose Antonio Ortega Ruiz <jao@gnu.org>
Commit: Jose Antonio Ortega Ruiz <jao@gnu.org>

    Make do with a single connection
    
    Separate connections for the REPL and Geiser commands was kind of
    neat, but it had the problem of synchronising the current namespace
    for both connections. A quick fix would have been to ask the scheme
    for the current namespace for every Geiser command in the REPL, but
    that, besides clunky, would add potentially prohibitive overhead for
    (real) remote connections.
    
    As it happens, using a single connection turned out to be not that
    difficult and relatively clean code-wise. We could even turn back to
    not use inferior schemes, and the net result of this refactoring would
    be the replacement of comint-redirect (which wasn't able to match the
    whole EOT token if it didn't arrive all at once) by transaction queues
    (which also makes geiser-connection's implementation cleaner).
    
    But using an inferior scheme has a dog-food value, and allows external
    processes to connect to the scheme being used by Geiser without
    further ado, which could be useful for debugging (although this is a
    lame excuse: nothing prevents you from starting a REPL server from
    emacs if you want). We'll see.
---
 geiser/evaluation.scm | 1 -
 1 file changed, 1 deletion(-)

diff --git a/geiser/evaluation.scm b/geiser/evaluation.scm
index d7d0a68..305ccfd 100644
--- a/geiser/evaluation.scm
+++ b/geiser/evaluation.scm
@@ -50,7 +50,6 @@
 
 (define (write-result result output)
   (write (list (cons 'result result) (cons 'output output)))
-  (write-char #\nul)
   (newline))
 
 (define (call-with-result thunk)



reply via email to

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