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
Separate compile-history #1601
Separate compile-history #1601
Conversation
'(compile-history . 1) | ||
'compile-history))) | ||
(let ((compile-history | ||
(ring-elements (projectile--get-command-history (projectile-ensure-project (projectile-project-root)))))) |
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.
I don't quite get how this is supposed to work, so can you explain it in more details?
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.
Yup, I see the package has projectile--get-command-history
function. It provides command history per project.
I would like to separate the command history per project. So I tried to set compile-history
value from projectile--get-command-history
(I think it as reference/a pointer). And I see it works. I ever did xref--marker-ring
with the same idea.
If you ask me in detail how it works, I don't think I know the deep
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.
I was mostly curious why do you need ring-elements
here, but I assume you copied it from somewhere else in the code.
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, you're right. I copied from here https://github.com/bbatsov/projectile//blob/7b6ac286120421216faae43f9e234d801a30ee3d/projectile.el#L4231
This change will need a changelog entry. I'll also have to see what's happened with the CI. |
Unfortunately I have to complain that this change (I bisected and arrived at the commit 0d52268) has broken the compile history completely for me. The commands executed from |
Hi @bbatsov, The first thank you for the great package.
I would like to send a PR, that is useful for me.
projectile-compile
will have separated compile-history by usingprojectile--get-command-history
. If something needs to be improved please tell me, I will try to resolve it.Hope it is useful!
Before submitting a PR make sure the following things have been done (and denote this
by checking the relevant checkboxes):
eldev test
)M-x checkdoc
warningsThanks!