[slime-cvs] CVS update: slime/slime.el

Helmut Eller heller at common-lisp.net
Fri Jan 9 18:56:08 UTC 2004


Update of /project/slime/cvsroot/slime
In directory common-lisp.net:/tmp/cvs-serv16992

Modified Files:
	slime.el 
Log Message:
Place (require 'cl) inside a eval-and-compile.

(slime-with-connection-buffer): Move definition upwards before the
first use.

Date: Fri Jan  9 13:56:08 2004
Author: heller

Index: slime/slime.el
diff -u slime/slime.el:1.166 slime/slime.el:1.167
--- slime/slime.el:1.166	Thu Jan  8 11:47:53 2004
+++ slime/slime.el	Fri Jan  9 13:56:08 2004
@@ -52,18 +52,18 @@
 
 ;;; Dependencies, major global variables and constants
 
+(eval-and-compile
+  (require 'cl)
+  (unless (fboundp 'define-minor-mode)
+    (require 'easy-mmode)
+    (defalias 'define-minor-mode 'easy-mmode-define-minor-mode)))
 (require 'inf-lisp)
-(require 'cl)
 (require 'pp)
 (require 'hideshow)
 (require 'hyperspec)
 (require 'font-lock)
 (when (featurep 'xemacs)
   (require 'overlay))
-(eval-when (compile load eval)
-  (unless (fboundp 'define-minor-mode)
-    (require 'easy-mmode)
-    (defalias 'define-minor-mode 'easy-mmode-define-minor-mode)))
 (require 'easymenu)
 
 (defvar slime-path
@@ -307,6 +307,10 @@
   ;; Fake binding to coax `define-minor-mode' to create the keymap
   '((" " 'undefined)))
 
+(defvar slime-state-name "[??]"
+  "Name of the current state of `slime-default-connection'.
+For display in the mode-line.")
+
 ;; Setup the mode-line to say when we're in slime-mode, and which CL
 ;; package we think the current buffer belongs to.
 (add-to-list 'minor-mode-alist
@@ -1148,20 +1152,16 @@
         (setq slime-buffer-connection nil)
       (error "Buffer's connection closed."))))
 
-(defun slime-connection-number (&optional connection)
-  (slime-with-connection-buffer (connection)
-    slime-connection-number))
-
-(defvar slime-state-name "[??]"
-  "Name of the current state of `slime-default-connection'.
-For display in the mode-line.")
-
 (defmacro* slime-with-connection-buffer ((&optional process) &rest body)
   "Execute BODY in the process-buffer of PROCESS.
 If PROCESS is not specified, `slime-connection' is used."
   `(with-current-buffer
        (process-buffer (or ,process (slime-connection) (error "No connection")))
      , at body))
+
+(defun slime-connection-number (&optional connection)
+  (slime-with-connection-buffer (connection)
+    slime-connection-number))
 
 (defun slime-select-connection (process)
   (setq slime-default-connection process)





More information about the slime-cvs mailing list