[slime-cvs] CVS slime

heller heller at common-lisp.net
Mon Jan 29 23:41:35 UTC 2007


Update of /project/slime/cvsroot/slime
In directory clnet:/tmp/cvs-serv8510

Modified Files:
	slime.el 
Log Message:
(slime-start): Continue even if the user, after
prompting, didn't recompile the stale .elc file.
(slime-urge-bytecode-recompile) [xemacs]: Abort immediately if the
user doesn't want to continue.
(slime-recompile-bytecode): Don't use byte-compile-warning-types;
it may not exist in XEmacs.

Patch from Sean O'Rourke <sorourke at cs.ucsd.edu>.


--- /project/slime/cvsroot/slime/slime.el	2007/01/24 22:55:13	1.753
+++ /project/slime/cvsroot/slime/slime.el	2007/01/29 23:41:31	1.754
@@ -1549,11 +1549,11 @@
                     :coding-system coding-system :init init :name name
                     :init-function init-function)))
     (slime-check-coding-system coding-system)
-    (when (or (not (slime-bytecode-stale-p))
-              (slime-urge-bytecode-recompile))
-      (let ((proc (slime-maybe-start-lisp program program-args buffer)))
-        (slime-inferior-connect proc args)
-        (pop-to-buffer (process-buffer proc))))))
+    (when (slime-bytecode-stale-p)
+      (slime-urge-bytecode-recompile))
+    (let ((proc (slime-maybe-start-lisp program program-args buffer)))
+      (slime-inferior-connect proc args)
+      (pop-to-buffer (process-buffer proc)))))
 
 (defun slime-connect (host port &optional coding-system)
   "Connect to a running Swank server."
@@ -1642,21 +1642,20 @@
 Warning: don't use this in XEmacs, it seems to crash it!"
   (interactive)
   (let ((sourcefile (concat (file-name-sans-extension (locate-library "slime"))
-                            ".el"))
-        (byte-compile-warning-types (remove 'cl-functions 
-                                            byte-compile-warning-types)))
+                            ".el")))
     (byte-compile-file sourcefile t)))
 
 (defun slime-urge-bytecode-recompile ()
   "Urge the user to recompile slime.elc.
 Return true if we have been given permission to continue."
-  (if (featurep 'xemacs)
-      ;; My XEmacs crashes and burns if I recompile/reload an elisp
-      ;; file from itself. So they have to do it themself.
-      (y-or-n-p "slime.elc is older than slime.el. Continue? ")
-    (if (y-or-n-p "slime.elc is older than slime.el. Recompile/reload first? ")
-        (progn (slime-recompile-bytecode) t)
-      nil)))
+  (cond ((featurep 'xemacs)
+         ;; My XEmacs crashes and burns if I recompile/reload an elisp
+         ;; file from itself. So they have to do it themself.
+         (or (y-or-n-p "slime.elc is older than source.  Continue? ")
+             (signal 'quit nil)))
+        ((y-or-n-p "slime.elc is older than source.  Recompile first? ")
+         (slime-recompile-bytecode))
+        (t)))
 
 (defun slime-abort-connection ()
   "Abort connection the current connection attempt."




More information about the slime-cvs mailing list