help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Use fsutil with emacs


From: Stefan Monnier
Subject: Re: Use fsutil with emacs
Date: Sun, 07 Jan 2007 17:37:02 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 (gnu/linux)

> here is the story of my problem.
> I want to have use latex and bibtex on emacs and have only ONE file
> with extension .bib
> Let call it biblio.bib
> Now on my tex files that in other directories, I want to use this file
> to make a nice bibliography.
> If I write
> \bibliography{biblio} it does not work because biblio.bib is not in the
> same directory if I put all the path c:\directory\biblio...it does not
> work.

Try it with "C:/directory/biblio..." (i.e. forward slashes).

> So I have try to use an hard link like ln on unix.
> For windows the command is fsutil hardlink create <new name> <oldname>
> for example
> fsutil hardlink create c:\bibliography\localbiblio.bib c:\biblio.bib
> if you do that and one modify one file, the other is also modify but
> not if it is modify by emacs...may be because emacs doesn't use really
> the file but a copy...I don't know.

The problem is that Emacs creates the backup file "foo.bib~" by first moving
"foo.bib" to "foo.bib~" and then creating a new "foo.bib", so the hardlink
ends up in "foo.bib~".  You can fix this problem with:

   (setq backup-by-copying t)


-- Stefan



reply via email to

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