-
-
Notifications
You must be signed in to change notification settings - Fork 582
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
file-truename when caching current file. Closes #667 #691
Conversation
Change to commit message to "[Fix #667] Use file-truename ...". |
Mention the bugfix in the changelog and remove the |
@@ -30,6 +30,9 @@ to behave like `helm-find-files`, such as multifile selection and opening or del | |||
buffers by name | |||
* New `defcustom` `projectile-globally-ignored-file-suffixes` allows | |||
you to globally ignore files with particular extensions | |||
* Use file-truename when caching filenames to prevent |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be in the Bugs fixed
section of the master
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, so really, what you mean is that this needs to be merged with master...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes.
On Saturday, April 25, 2015, IvanMalison [email protected] wrote:
In CHANGELOG.md
#691 (comment):@@ -30,6 +30,9 @@ to behave like
helm-find-files
, such as multifile selection and opening or del
buffers by name
- New
defcustom
projectile-globally-ignored-file-suffixes
allows
you to globally ignore files with particular extensions
+* Use file-truename when caching filenames to preventOkay, so really, what you mean is that this needs to be merged with
master...—
Reply to this email directly or view it on GitHub
https://github.com/bbatsov/projectile/pull/691/files#r29098818.
Best Regards,
Bozhidar Batsov
@@ -45,6 +45,9 @@ to behave like `helm-find-files`, such as multifile selection and opening or del | |||
* Prevent `projectile-kill-buffers` from trying to kill indirect | |||
buffers. | |||
* [#412](https://github.com/bbatsov/projectile/issues/412): Handle multiple possible targets in `projectile-toggle-between-implementation-or-test`. | |||
* Use `file-truename` when caching filenames to prevent |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The place of this entry has to be updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What? Is it not currently in the right place?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
0.12 was already released. See the latest version of the changelog and you'll understand what I mean.
@IvanMalison ping |
I can take a look at this soon |
//cc @vspinu |
I think this patch indeed fixes a bug. As project root's name is always true name. Ths all files expanded against it should be truename as well. Also the defadvice on This function is not critical in any sense. It's called either interactively or from the |
@@ -548,7 +548,7 @@ The cache is created both in memory and on the hard drive." | |||
"Add the currently visited file to the cache." | |||
(interactive) | |||
(let* ((current-project (projectile-project-root)) | |||
(abs-current-file (buffer-file-name (current-buffer))) | |||
(abs-current-file (file-truename (buffer-file-name (current-buffer)))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please move these last two bindings inside the following (when
. There is no point for them unless that conditional is true.
Also remove the double call to projectile-project-root
on this occasion.
status? |
file-truename when caching current file. Closes #667
👍 |
That's a relative name, not true name. From what you have said, I don't understand what's the exact problem nor how the new behavior "is a bug". |
FWIW, even if you made that an absolute path, it would look like |
No description provided.