Patch: New variable ilisp-*process-connection-type*

Matthias Koeppe <[email protected]>
Newsgroups gmane.lisp.ilisp.devel
Message-ID <[email protected]>
I will commit the change below unless there are objections.

(Does anyone remember what the "strings can be long" comment means?
Are there problems with ptys on some systems?)

Index: ilisp-def.el
===================================================================
RCS file: /cvsroot/ilisp/ILISP/ilisp-def.el,v
retrieving revision 1.17
diff -u -r1.17 ilisp-def.el
--- ilisp-def.el	28 May 2002 18:52:29 -0000	1.17
+++ ilisp-def.el	29 Aug 2002 08:52:39 -0000
@@ -109,6 +109,13 @@
 This will speed up completion, but you no longer get partial
 completion.")
 
+(defvar ilisp-*process-connection-type* nil
+  "*Control type of device used to communicate with the inferior LISP.
+This is the value of `process-connection-type' used by ILISP buffers.
+The default is nil, i.e., use a pipe, so that \"strings can be long\".  On
+some systems, it should be set to t, i.e., use a pseudo terminal, or
+signalling would not work right.")
+
 (deflocal ilisp-filter-regexp nil
   "*What not to save on an inferior LISP's input history.
 Input matching this regexp is not saved on the input history in ilisp
Index: ilisp-mod.el
===================================================================
RCS file: /cvsroot/ilisp/ILISP/ilisp-mod.el,v
retrieving revision 1.5
diff -u -r1.5 ilisp-mod.el
--- ilisp-mod.el	12 May 2001 22:10:53 -0000	1.5
+++ ilisp-mod.el	29 Aug 2002 08:52:39 -0000
@@ -95,8 +95,7 @@
       (let* ((dialect (car ilisp-dialect))
 	     (program ilisp-program)
 	     (args (lisp-command-args program))
-	     ;; Use pipes so that strings can be long
-	     (process-connection-type nil)
+	     (process-connection-type ilisp-*process-connection-type*)
 	     (names (format "%s" name))
 	     start)
 	(apply 'make-comint name (car args) nil (cdr args))

-- 
Matthias Köppe -- http://www.math.uni-magdeburg.de/~mkoeppe


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.