-
Notifications
You must be signed in to change notification settings - Fork 74
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 local variables and pdf / notes symbol #223
Comments
Very strange. Not sure what's happening here. However, I'm not too surprised because helm-bibtex wasn't designed to do that. Have you seen this section in the documentation?: https://github.com/tmalsburg/helm-bibtex#search-in-the-local-bibliography |
I already tried both ( |
In addition to the above the following also happens. When I add or delete an entry in the notes.org file, the note symbols are not updated accordingly. Then when I make another addition or deletion to the notes.org file , the note symbols will not update again. It continues to work correctly (reflecting the changes) as long as I keep switching the variables. It appears that the database/entries are updated/reloaded only when helm-bibtex sees as change in the reference.bib file path variable. |
This is exactly right. You can force a reload by prefixing |
Oh! my mistake. Sorry about that! But how did I miss that paragraph? (I went through the readMe up and down at least 10 times). Is it time to add a table of contents to the heavily grown-up readMe? Coming to the point, the issue with update is solved right away! Thank you @tmalsburg for pointing out. But the earlier issue with file local variables, still remains. I even tried |
When using the local bib, there's usually no need to With regards to the missing icons, I'm at a loss here. I don't see how changing these variables could lead to this problem. Could you try to pin down which of the three variables is triggering the problem? (I'm not using org-ref.) Thank you. |
Yes! I am using org-ref. |
I also see the same behaviour. I have to restart emacs before the notes symbols are updated. |
@djhogan are you using Could you try the following:
Do you see the notes symbol then? |
I haven't dealt with these options. I'm using the defaults except I've set the variables
I tried doing what you said and the notes symbol appeared. It also appears when I type C-u before firing up helm-bibtex |
Thanks. My understanding is that this issue only arises when the local bibliography is used. Are you using |
I am not sure this is totally relevant, but I was looking why I couldn't use a buffer local variable for
However I am not sure it fixes everything in this area. Regards, |
Oh, that makes sense. @fpopineau, would you mind making a PR. Can you see any downsides of your approach compared to the code we currently use? |
And sorry for the slow responses. I was (technically I still am) on parental leave and tried to cut down on screen time. |
I made the PR for my small patch. (No problem at all for the slow responses, hope the kids are alright!) |
Merged. Thank you. Not sure though whether this will fix the current issue. @jack836 would you mind trying it with the new code? Should be on MELPA in a couple of hours. Thank you! |
Never mind, @jack836. It doesn't work yet. I had a look at the code and fixing this unfortunately takes a bit more work. When I wrote this code, I just didn't think of buffer local customization variables and the current architecture is fundamentally incompatible with them. Sigh. The problem is that reading and all postprocessing the bib entries is all done in the context of a temp buffer. Instead we should do minimal work in the in temp buffer and then postprocess in the buffer where we started. |
When I set my variables (as global) in my .org file as shown below
On doing
helm-bibtex
, I get the following output with the pdf and notes symbols as expectedNow, when I try to set my variables buffer specific (as local), as shown below
Now, On doing
helm-bibtex
, I get the following output where the ** pdf and notes symbols are missing**I am using Emacs 26 and the latest version of bibtex-completion. Is this issue reproducible or Am I missing some thing?
Would be nice if this issue can be fixed!
The text was updated successfully, but these errors were encountered: