emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] export to latex, make-backup-files, vc-make-backup-files


From: Nick Dokos
Subject: Re: [O] export to latex, make-backup-files, vc-make-backup-files
Date: Fri, 21 Jun 2019 13:22:48 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Uwe Brauer <address@hidden> 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




reply via email to

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