Skip to content
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

(bugfix): fix inserting backup files into database #509

Merged
merged 3 commits into from
Apr 22, 2020
Merged

Conversation

jethrokuan
Copy link
Member

Motivation for this change

In #470, the and clause was removed, so org-roam--org-roam-file-p
returns t on foo.org~ backup files. This PR adds that back in.

In addition, the after-save-hook function was not checking for whether
the file was within the org-roam system, which meant files from outside
org-roam would also be added into the database. This PR adds a guard
clause.

In #470, the `and` clause was removed, so `org-roam--org-roam-file-p`
returns `t` on `foo.org~` backup files. This PR adds that back in.

In addition, the `after-save-hook` function was not checking for whether
the file was within the org-roam system, which meant files from outside
`org-roam` would also be added into the database. This PR adds a guard
clause.
@jethrokuan jethrokuan merged commit d01f7b2 into master Apr 22, 2020
@jethrokuan jethrokuan deleted the fix/backup branch April 22, 2020 06:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant