[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX] Re: forcing reftex to reload .bib file after external modificat

From: Leo
Subject: [AUCTeX] Re: forcing reftex to reload .bib file after external modification of said file
Date: Sun, 12 Apr 2009 01:09:35 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (darwin)

On 2009-04-11 20:33 +0100, Joseph Lorenzo Hall wrote:
> On Sat, Apr 11, 2009 at 2:58 PM, Leo <address@hidden> wrote:
>> Have you checked the menu entry provided by reftex?
>> Reftex > Parse Document > ...
> Thanks, but I did try that.
> Even after reparsing, it doesn't see changes to the .bib file after
> it's read the .bib file for the first time.  I have to close and
> re-open emacs to get it to notice the new .bib file.  There's
> something performed on the first time I do `C-c [` that I can't get
> reftex to do over again without opening and closing emacs.
> Although...
> Here's something that does seem to work:
> If I keep my .bib file open in emacs---which I don't normally do
> because I use JabRef to edit my .bib files---when it changes due to
> external modification, I can change to that buffer (`C-x b foo.bib`)
> and hit any key and emacs will say "foo.bib changed on disk..." and
> then I can hit "r" to revert the version open in emacs to the fresh
> version on disk with any changes from JabRef.

I tried AUCTeX cvs and the default reftex in Emacs 23.0.92, it worked
beautifully. The problem probably is because you don't have
auto-revert-mode enabled, thus the file changed on disk has not been
promptly reflected on the buffer associated with that file.

In Emacs 23, global-auto-revert-mode is enabled by default. Could you
try (global-auto-revert-mode t) and see if that fixes your problem?

> After doing this, reftex' `C-c [` *does* now know about any changes to
> the .bib file.
> While this workaround fixes my problem, I wonder if there isn't an
> easier way to reload the .bib file... a way that doesn't require me to
> keep a copy of the .bib file open in emacs?
> best, Joe

.: Leo :. [ sdl.web AT ] .: I use Emacs :.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]