Improve reliability of 'nocache & without-project-cache! macro
This commit is contained in:
parent
1352ac4553
commit
ce091ddde6
1 changed files with 3 additions and 1 deletions
|
@ -53,7 +53,9 @@
|
|||
(defmacro without-project-cache! (&rest body)
|
||||
"Run BODY with projectile's project-root cache disabled. This is necessary if
|
||||
you want to interactive with a project other than the one you're in."
|
||||
`(let (projectile-project-name
|
||||
`(let ((projectile-project-root-files-functions
|
||||
(remq 'projectile-root-local projectile-project-root-files-functions))
|
||||
projectile-project-name
|
||||
projectile-require-project-root
|
||||
projectile-cached-buffer-file-name
|
||||
projectile-cached-project-root)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue