Skip to content

Commit

Permalink
Merge branch 'project-root-file-truename' of nico/Indium into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Petton authored and Gitea committed Oct 28, 2019
2 parents 9b50e75 + aafb117 commit 7d25101
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions indium-interaction.el
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
(interactive)
(indium-maybe-quit)
(unless (indium-client-process-live-p)
(let ((dir (expand-file-name default-directory)))
(let ((dir (indium-interaction--current-directory)))
(indium-client-start
(lambda ()
(indium-client-list-configurations
Expand All @@ -66,7 +66,7 @@
(interactive)
(indium-maybe-quit)
(unless (indium-client-process-live-p)
(let ((dir (expand-file-name default-directory)))
(let ((dir (indium-interaction--current-directory)))
(indium-client-start
(lambda ()
(indium-client-list-configurations
Expand Down Expand Up @@ -422,6 +422,12 @@ hitting a breakpoint."
(when (indium-breakpoint-at-point)
(user-error "There is already a breakpoint on the current line")))

(defun indium-interaction--current-directory ()
"Return the true name of the current directory.
For the project root to be correctly set, symlinks are resolved."
(file-truename default-directory))

(add-hook 'kill-buffer-hook #'indium-interaction-kill-buffer)

(provide 'indium-interaction)
Expand Down

0 comments on commit 7d25101

Please sign in to comment.