Commits

camlspotter committed c8325bc

"Fatal error:" is now also scanned by ocamlspot.el

Comments (0)

Files changed (1)

 ;        (add-hook 'tuareg-mode-hook
 ;              '(lambda ()
 ;                 (local-set-key "\C-c;" 'ocamlspot-query)
-;      	     (local-set-key "\C-c:" 'ocamlspot-query-interface)
+;                 (local-set-key "\C-c:" 'ocamlspot-query-interface)
 ;                 (local-set-key "\C-c'" 'ocamlspot-query-uses)
 ;                 (local-set-key "\C-c\C-t" 'ocamlspot-type)
 ;                 (local-set-key "\C-c\C-i" 'ocamlspot-xtype)
 	      (if err
 		  (ocamlspot-message-add (concat "Error: ocamlspot raised an exception!!: " err))))
 		
+	    (let ((err (ocamlspot-find-query-result "Fatal error")))
+	      (if err
+		  (ocamlspot-message-add (concat "Error: ocamlspot raised an exception!!: " err))))
+		
 	    nil))))))
 
 ;; Jump to [position] of [filename], with highlighting the spot overlay