It's because slime-compile-file (C-c M-k) doesn't do anything unless the
optional load parameter is true, and when you run the function from the
keyboard shortcut, it doesn't get set. C-c C-k ends up calling that function
with load=true. The distinction between to the two is false in Clojure
anyway, because compiling also loads, so keep using C-c C-k and you should
be fine. I think compile without load shouldn't even appear in the menu when
connected to Clojure, but I don't know where the right place would be to fix
that.

Shawn

On Sat, Aug 21, 2010 at 10:56 AM, Arie van Wingerden <xapw...@gmail.com>wrote:

> Hi,
>
> when i compile the following little snippet (which i explicitly have saved
> before compiling) with C-c C-k (Compile/Load file) it always succeeds;
> however, when I use C-c M-k (Compile File) compilation always fails (i am
> sure i did save the file before compiling it).
>
> <snip>
> (ns nsp.tst
>   (:refer-clojure)
>   (:gen-class))
>
> (defn dubbel [x]
>   (* 2 x))
>
> (defn -main []
>   (println (dubbel 20)))
> </snip>
>
> Any ideas?
>
> Regards,
>    Arie
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com<clojure%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to