Permalink
Browse files

Fixed a minor quoting and path issue present on Windows. Added main f…

…unction snippet.
  • Loading branch information...
1 parent c3e43a2 commit b57c955d7c46d6f437aabb138a818887d97c8743 @ScottyB ScottyB committed Jul 29, 2012
Showing with 8 additions and 2 deletions.
  1. +2 −2 eclim.el
  2. +6 −0 snippets/java-mode/main.yasnippet
View
@@ -136,7 +136,7 @@ eclimd."
(loop for a = (rest args) then (rest (rest a))
for arg = (first a)
for val = (second a)
- while arg when val collect (concat arg " '" (if (numberp val) (number-to-string val) val) "' ")))))
+ while arg when val collect (concat arg " " (shell-quote-argument (if (numberp val) (number-to-string val) val)))))))
(if eclim-print-debug-messages (message "Executing: %s" cmd))
cmd))
@@ -331,7 +331,7 @@ FILENAME is given, return that file's project name instead."
:test #'string=)
(find project-dir project-list ;; case insensitive
:key (lambda (e) (assoc-default 'path e))
- :test (lambda (s1 s2) (string= s1 (downcase s2)))))))))))
+ :test (lambda (s1 s2) (string= (downcase s1) (downcase s2)))))))))))
(defun eclim--find-file (path-to-file)
(if (not (string-match-p "!" path-to-file))
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: main
+# --
+public static void main(String [] args) {
+ $0
+}

0 comments on commit b57c955

Please sign in to comment.