Re: re-scanning bibliography for org-cite

2022-07-04 Thread Bruce D'Arcus
On Thu, Jun 9, 2022 at 12:00 PM Fraga, Eric wrote: > > On Thursday, 9 Jun 2022 at 10:34, Bruce D'Arcus wrote: > > It should take another few days of development and testing before I'm > > ready to merge it, but it pretty much works now, and any help with > > code review and/or testing would be mu

Re: re-scanning bibliography for org-cite

2022-06-09 Thread Bruce D'Arcus
BTW, just to give some context of why we didn't implement it by default earlier; there are two reasons: 1. it seems vast differences in the size of user bib files, and those with very large ones would be annoyed if it re-generated the completions on every change. 2. citar also covers notes and rel

Re: re-scanning bibliography for org-cite

2022-06-09 Thread Fraga, Eric
On Thursday, 9 Jun 2022 at 10:34, Bruce D'Arcus wrote: > It should take another few days of development and testing before I'm > ready to merge it, but it pretty much works now, and any help with > code review and/or testing would be much appreciated. Okay, let me know. It's easy enough for me t

Re: re-scanning bibliography for org-cite

2022-06-09 Thread Bruce D'Arcus
On Thu, Jun 9, 2022 at 10:19 AM Fraga, Eric wrote: > > On Thursday, 26 May 2022 at 18:24, Ihor Radchenko wrote: > > The relevant function is org-cite-basic--parse-bibliography. > > To finally follow up on this, the problem is not with org-cite but > appears to be due to my use of citar. Citar see

Re: re-scanning bibliography for org-cite

2022-06-09 Thread Fraga, Eric
On Thursday, 26 May 2022 at 18:24, Ihor Radchenko wrote: > The relevant function is org-cite-basic--parse-bibliography. To finally follow up on this, the problem is not with org-cite but appears to be due to my use of citar. Citar seems to cache the keys somewhere/somehow and this cache is not up

Re: re-scanning bibliography for org-cite

2022-05-26 Thread Ihor Radchenko
Timothy writes: > Hi Eric, > >> The difficulty will be knowing whether they work or not given the sporadic >> nature of the problem… > > If it’s any help, I consistently have this issue when producing the bib file > by tangling. Then, can you also try the proposed steps? If you can reproduce th

Re: re-scanning bibliography for org-cite

2022-05-26 Thread Timothy
Hi Eric, > The difficulty will be knowing whether they work or not given the sporadic > nature of the problem… If it’s any help, I consistently have this issue when producing the bib file by tangling. All the best, Timothy

Re: re-scanning bibliography for org-cite

2022-05-26 Thread Eric S Fraga
Hi Ihor, I will try these out, hopefully tomorrow. The difficulty will be knowing whether they work or not given the sporadic nature of the problem... Thank you, eric -- : Eric S Fraga, with org release_9.5.3-513-g292116 in Emacs 29.0.50

Re: re-scanning bibliography for org-cite

2022-05-26 Thread Ihor Radchenko
Eric S Fraga writes: > Is there a function I can call to force a rescan? That would satisfy me > as I could put it into a hook for org-bibtex (or advice the function if > no hook available). The relevant function is org-cite-basic--parse-bibliography. You can try 2 things: 1. Set org-cite-basi

Re: re-scanning bibliography for org-cite

2022-05-26 Thread Eric S Fraga
On Thursday, 26 May 2022 at 13:00, Ihor Radchenko wrote: > In theory, it might be related to one of the changes I made in this > area. I am not 100% sure, but bibliography might not be rescanned if you > edit a bibliography file in Emacs buffer, but do not actually save it. > Is this what is happen

Re: re-scanning bibliography for org-cite

2022-05-25 Thread Ihor Radchenko
Eric S Fraga writes: > sorry to revisit this but I continue to run into the problem of the > bibliography not being rescanned automatically. What is the easiest way > (other than leaving Emacs and restarting) to force it, assuming there is > one? I.e. maybe I can invalidate or clear the cache?

Re: re-scanning bibliography for org-cite

2022-05-24 Thread Eric S Fraga
On Wednesday, 3 Nov 2021 at 17:21, Nicolas Goaziou wrote: > oc-basic relies on a cache. The cache key contains a hash of the > contents of the bib file. So whenever the bib file is modified, the > cache is invalidated, and oc-basic parses again the file. > > IOW, rescanning happens automatically i

Re: re-scanning bibliography for org-cite

2021-11-03 Thread Bruce D'Arcus
On Wed, Nov 3, 2021 at 12:21 PM Nicolas Goaziou wrote: > oc-basic relies on a cache. The cache key contains a hash of the > contents of the bib file. So whenever the bib file is modified, the > cache is invalidated, and oc-basic parses again the file. Of course; clever! Bruce

Re: re-scanning bibliography for org-cite

2021-11-03 Thread Nicolas Goaziou
Hello, "Bruce D'Arcus" writes: > On Thu, Oct 21, 2021 at 10:12 AM Eric S Fraga wrote: >> >> Dear all, >> >> simple question: how can I get org-cite to rescan my bibliography (.bib) >> file when it changes? When I'm writing a paper, as I'm doing now, I add >> entries to my bibliography as I wri

Re: re-scanning bibliography for org-cite

2021-10-21 Thread Bruce D'Arcus
On Thu, Oct 21, 2021 at 10:12 AM Eric S Fraga wrote: > > Dear all, > > simple question: how can I get org-cite to rescan my bibliography (.bib) > file when it changes? When I'm writing a paper, as I'm doing now, I add > entries to my bibliography as I write but org-cite is not aware of any > new

Re: re-scanning bibliography for org-cite

2021-10-21 Thread Eric S Fraga
On Thursday, 21 Oct 2021 at 16:51, Uwe Brauer wrote: > Do you use > org-ref-insert-cite-link > org-ref-helm-insert-cite-link Neither. I use org-cite-insert. -- : Eric S Fraga via Emacs 28.0.60, Org release_9.5-149-g781080 : Latest paper written in org: https://arxiv.org/abs/2106.05096

Re: re-scanning bibliography for org-cite

2021-10-21 Thread Uwe Brauer
>>> "ESF" == Eric S Fraga writes: > Dear all, > simple question: how can I get org-cite to rescan my bibliography > (.bib) file when it changes? When I'm writing a paper, as I'm doing > now, I add entries to my bibliography as I write but org-cite is not > aware of any new entries. > I have gon

re-scanning bibliography for org-cite

2021-10-21 Thread Eric S Fraga
Dear all, simple question: how can I get org-cite to rescan my bibliography (.bib) file when it changes? When I'm writing a paper, as I'm doing now, I add entries to my bibliography as I write but org-cite is not aware of any new entries. I have gone through the code but cannot see where the bib