Commits

camlspotter committed a65e9a8

display the type only if available

Comments (0)

Files changed (1)

ocamlspot/ocamlspot.el

 	;; display the result
 	(let ((type (ocamlspot-find-type-in-buffer)))
 	  (ocamlspot-jump-to-spot filename position)
-	  (message "Type: %s" type)))
+	  (if type (message "Type: %s" type))))
     (progn
       (if (re-search-forward "^Spot: \\(.*\\)" nil t)
 	  (message (buffer-substring (match-beginning 1) (match-end 1)))