Closed rails-to-cosmos closed 1 month ago
Hi @rails-to-cosmos , in your submitted code, should you not use a let*
form instead of a let
form? The let*
form allows each VALUEFORM to refer to the symbols bound by the previous ones, but not the let
form.
Hey @pierre-rouleau, thank you! Sure, let*
should work properly now.
@bling You can bring this in.
Modified the code to determine the true root directory. By using
file-truename
ondefault-directory
, we resolve any symlinks, ensuring we get the actual physical location even if we're currently within a symlinked directory.Example Scenario:
default-directory
is set under '~/.emacs.d', the original function fails to find the project root, as it doesn't resolve the symlink and searches within the symbolic link's hierarchy.This patch fixes this behavior by ensuring we search the actual physical location by resolving any symlinks with
file-truename
.