Browse Source

Merge branch 'project-root-file-truename' of nico/Indium into master

blackbox-patterns
Nicolas Petton 1 year ago
committed by Gitea
parent
commit
7d251019a2
1 changed files with 8 additions and 2 deletions
  1. +8
    -2
      indium-interaction.el

+ 8
- 2
indium-interaction.el View File

@ -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
@ -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
@ -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)


Loading…
Cancel
Save