Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…unction snippet.
  • Loading branch information...
commit b57c955d7c46d6f437aabb138a818887d97c8743 1 parent c3e43a2
@ScottyB ScottyB authored
Showing with 8 additions and 2 deletions.
  1. +2 −2 eclim.el
  2. +6 −0 snippets/java-mode/main.yasnippet
View
4 eclim.el
@@ -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))
View
6 snippets/java-mode/main.yasnippet
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: main
+# --
+public static void main(String [] args) {
+ $0
+}
Please sign in to comment.
Something went wrong with that request. Please try again.