Skip to content
This repository
Browse code

Merge pull request #93 from purcell/patch-1

Explicitly require tramp and inf-lisp
  • Loading branch information...
commit 96e5a7efe1a7d641feb0dbfe8d0b374d7181de03 2 parents bc50cfe + fece709
Phil Hagelberg authored August 06, 2012

Showing 1 changed file with 4 additions and 1 deletion. Show diff stats Hide diff stats

  1. 5  clojure-mode.el
5  clojure-mode.el
@@ -68,6 +68,8 @@
68 68
 ;;; Code:
69 69
 
70 70
 (require 'cl)
  71
+(require 'tramp)
  72
+(require 'inf-lisp)
71 73
 
72 74
 (defgroup clojure-mode nil
73 75
   "A mode for Clojure"
@@ -1135,7 +1137,8 @@ The arguments are dir, hostname, and port.  The return value should be an `alist
1135 1137
 
1136 1138
     (when (and (functionp 'slime-disconnect)
1137 1139
                (slime-current-connection)
1138  
-               (and (interactive-p) (y-or-n-p "Close old connections first? ")))
  1140
+               (and (called-interactively-p 'any)
  1141
+                    (y-or-n-p "Close old connections first? ")))
1139 1142
       (slime-disconnect)
1140 1143
       (clojure-kill-swank-buffer swank-buffer-name))
1141 1144
     (clojure-jack-in-start-process connection-name swank-buffer-name

0 notes on commit 96e5a7e

Please sign in to comment.
Something went wrong with that request. Please try again.