   (if (get-buffer "*roscore*")
       (switch-to-buffer (get-buffer "*roscore*"))
     (progn (start-process "roscore" (get-buffer-create "*roscore*") "roscore")
-	   (message "roscore started"))))
+           (message "roscore started"))))
 
 (defun ros-set-master-uri (host port)
   "Set the master uri used by other commands (e.g. rostopic)"

                
                (if other-window (display-buffer buf) (switch-to-buffer buf))
                buf)))
	(error "Did not find %s in the ros package list." package-name)))))

(defun ros-launch-current ()
  (interactive)

  (let ((prefix (comint-get-ros-package-prefix)))
    (when prefix 
      (multiple-value-bind (package dir-prefix dir-suffix) (parse-ros-file-prefix prefix)
        (if dir-prefix
            (let ((dir (concat (ros-package-dir package) dir-prefix)))
              (let ((completions (all-completions dir-suffix (directory-files dir nil (concat "^" dir-suffix)))))
                (comint-dynamic-simple-complete dir-suffix completions)
                (skip-syntax-backward " ")))
          (progn
            (comint-dynamic-simple-complete prefix (all-completions prefix ros-package-completor))
            (skip-syntax-backward " ")))))))

