(save-some-buffers (not compilation-ask-about-save) nil)
(let ((dir default-directory))
(when (string-match "^\\s-*cd\\s-+\"\\([^\"]+\\)\"\\s-*;" command)
- (setq dir (expand-file-name (match-string 1 command)))
+ (setq dir (match-string 1 command))
(setq command (replace-match "" t t command)))
+ (setq dir (expand-file-name dir))
(with-current-buffer (sml-proc-buffer)
(setq default-directory dir)
(sml-send-string (concat (format sml-cd-command dir) "; " command) t t))))