Commits

camlspotter committed 6ae7176

ocamlspot.el: use query directory path was not expanded

Comments (0)

Files changed (3)

 usage, then type ``C-c ;``. If things are properly installed and set up,
 Emacs should display the definition of the identifier.
 
+Key listing in Emacs:
+
+* ``C-c ;`` Jump to definition   
+* 
+
 If something goes wrong
 ---------------------------------------------------------------------------
 
 ; CR can be shared with ocamlspot-type
 (defun ocamlspot-query-uses ()
   (interactive)
-  (let ((dir (read-directory-name "Search directory: "
-				  (file-name-directory (buffer-file-name)))))
+  (let ((dir (expand-file-name 
+	      (read-directory-name "Search directory: "
+				   (file-name-directory (buffer-file-name))))))
     (ocamlspot-message-init (buffer-file-name))
     (ocamlspot-type-init)
     (ocamlspot-delete-overlays-now)
-    (ocamlspot-query-at-cursor (list "use" dir))
+    (ocamlspot-query-at-cursor (list "use") (list dir))
     (if (ocamlspot-find-tree)
 	(progn
 	 (ocamlspot-find-spot)
 camlp4_path.cmo: camlp4_path.ml
 	$(OCAMLC) -c -pp camlp4o -o $@ $<
 
-clean:
+clean::
 	rm -f *.cm* *.o *.annot *.sp*t  */*.cm* */*.annot */*.sp*t
 
+clean::
+	(cd dot_ocamlspot; $(MAKE) clean)
+
 # generic rules :
 #################