[slime-cvs] CVS update: slime/slime.el
Helmut Eller
heller at common-lisp.net
Tue Nov 22 20:42:20 UTC 2005
Update of /project/slime/cvsroot/slime
In directory common-lisp.net:/tmp/cvs-serv1045
Modified Files:
slime.el
Log Message:
(slime-connect): Use slime-net-coding system if the optinal
coding-system was not supplied. From Marco Monteiro.
Date: Tue Nov 22 21:42:19 2005
Author: heller
Index: slime/slime.el
diff -u slime/slime.el:1.565 slime/slime.el:1.566
--- slime/slime.el:1.565 Tue Nov 22 11:36:22 2005
+++ slime/slime.el Tue Nov 22 21:42:19 2005
@@ -1317,11 +1317,12 @@
(when (and (interactive-p) slime-net-processes
(y-or-n-p "Close old connections first? "))
(slime-disconnect))
- (slime-check-coding-system coding-system)
- (message "Connecting to Swank on port %S.." port)
- (let* ((process (slime-net-connect host port coding-system))
- (slime-dispatching-connection process))
- (slime-setup-connection process)))
+ (let ((coding-system (or coding-system slime-net-coding-system)))
+ (slime-check-coding-system coding-system)
+ (message "Connecting to Swank on port %S.." port)
+ (let* ((process (slime-net-connect host port coding-system))
+ (slime-dispatching-connection process))
+ (slime-setup-connection process))))
(defun slime-start-and-load (filename &optional package)
"Start Slime, if needed, load the current file and set the package."
@@ -1619,12 +1620,11 @@
(file-error nil)))
;;; Interface
-(defun slime-net-connect (host port &optional coding-system)
+(defun slime-net-connect (host port coding-system)
"Establish a connection with a CL."
(let* ((inhibit-quit nil)
(proc (open-network-stream "SLIME Lisp" nil host port))
- (buffer (slime-make-net-buffer " *cl-connection*"))
- (coding-system (or coding-system slime-net-coding-system)))
+ (buffer (slime-make-net-buffer " *cl-connection*")))
(push proc slime-net-processes)
(set-process-buffer proc buffer)
(set-process-filter proc 'slime-net-filter)
More information about the slime-cvs
mailing list