Skip to content

Restore haskell-process-cd functionality.. #797

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Prev Previous commit
Next Next commit
haskell-utils-read-directory-name: make the name meaningful once again
  • Loading branch information
deepfire committed Aug 7, 2015
commit 4d5573f491a7e616b25b223b3feff25e6c047ae7
7 changes: 1 addition & 6 deletions haskell-utils.el
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,7 @@
"Read directory name and normalize to true absolute path.
Refer to `read-directory-name' for the meaning of PROMPT and
DEFAULT. If `haskell-process-load-or-reload-prompt' is nil, accept `default'."
(let ((filename (file-truename
(if haskell-process-load-or-reload-prompt
(read-directory-name prompt
default
default)
default))))
(let ((filename (file-truename (read-directory-name prompt default default))))
(concat (replace-regexp-in-string "/$" "" filename) "/")))

(defun haskell-utils-parse-import-statement-at-point ()
Expand Down