From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: export to latex, make-backup-files, vc-make-backup-files Date: Fri, 21 Jun 2019 13:22:48 -0400 Message-ID: <87sgs2q2dz.fsf@alphaville.usersys.redhat.com> References: <8736k3ktwt.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:56634) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1heNFc-0007Ky-Rp for emacs-orgmode@gnu.org; Fri, 21 Jun 2019 13:23:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1heNFb-0003X6-HO for emacs-orgmode@gnu.org; Fri, 21 Jun 2019 13:23:00 -0400 Received: from [195.159.176.226] (port=34580 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1heNFb-0003VN-8R for emacs-orgmode@gnu.org; Fri, 21 Jun 2019 13:22:59 -0400 Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1heNFY-000sbo-S6 for emacs-orgmode@gnu.org; Fri, 21 Jun 2019 19:22:56 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Uwe Brauer writes: > Hi > > The following kills me. > > I have set > > make-backup-files t, > vc-make-backup-files nil > > I am in a directory which is under version control (mercurial). > > The file test.org and test.tex are *both* under VC control. > > However when I export test.org to test.tex say twice > the files > > test.tex > and > > test.tex.~1~ > > are generated and if I export once again I will have another backup > file. > > ... > > But it does not help > > Is this a bug? > FWIW, I tried a set-up with git (I don't have mercurial available) and I cannot reproduce this. I'm not using numbered backups but the two variables you mention are set the same way for me. Here's what I did: - created a directory "foo" and cd'ed to it. - `git init' - create "test.org" and export to create "test.tex". - `git add test.org test.tex' - `git status' to check that everything looks good. - modify test.org and export a few times. - at every export, do `ls -la'. I always get this: ,---- | $ ls -la | total 12 | drwxrwxr-x. 4 nick nick 62 Jun 21 13:04 . | drwxrwxr-x. 14 nick nick 4096 Jun 21 13:03 .. | drwxrwxr-x. 2 nick nick 21 Jun 21 13:04 auto | drwxrwxr-x. 7 nick nick 132 Jun 21 13:04 .git | -rw-rw-r--. 1 nick nick 67 Jun 21 13:04 test.org | -rw-rw-r--. 1 nick nick 788 Jun 21 13:04 test.tex `---- with no trace of backups. Maybe try with git and see if you can reproduce the problem? If not, I'd suspect either that the tex file is not under VC or there is some incompatibility between mercurial and the emacs vc package. Also, there are two ways to make a backup (renaming and copying - I use copying) and maybe the method you use is incompatible with mercurial. Maybe you can try the other method: check the setting of `make-backup-by-copying'. -- Nick "There are only two hard problems in computer science: cache invalidation, naming things, and off-by-one errors." -Martin Fowler