unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* emacs not creating backup ~ files to file under git control. Why not?
@ 2015-07-05  4:17 emacs+git-user
  2015-07-05  6:34 ` Alex Kost
  0 siblings, 1 reply; 2+ messages in thread
From: emacs+git-user @ 2015-07-05  4:17 UTC (permalink / raw)
  To: help-gnu-emacs

I was working on a file and it created backups as usual. However I noticed that when i decided to put it under git countrol and created a git directory, then emacs stops to create a backup file~ ever since then.

So to test, i created a new directory and edited a file in it and it creates a backup in the directory.

Then I deleted the file~ then I did 

git int 
in the directory and then did 
git add file
then i edited the file and now it does not create then file~.
Why not and what code controls this to shut it off?

Mitchell


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: emacs not creating backup ~ files to file under git control. Why not?
  2015-07-05  4:17 emacs not creating backup ~ files to file under git control. Why not? emacs+git-user
@ 2015-07-05  6:34 ` Alex Kost
  0 siblings, 0 replies; 2+ messages in thread
From: Alex Kost @ 2015-07-05  6:34 UTC (permalink / raw)
  To: emacs+git-user; +Cc: help-gnu-emacs

emacs+git-user (2015-07-05 07:17 +0300) wrote:

> I was working on a file and it created backups as usual. However I
> noticed that when i decided to put it under git countrol and created a
> git directory, then emacs stops to create a backup file~ ever since
> then.
>
> So to test, i created a new directory and edited a file in it and it creates a backup in the directory.
>
> Then I deleted the file~ then I did 
>
> git int 
> in the directory and then did 
> git add file
> then i edited the file and now it does not create then file~.
> Why not and what code controls this to shut it off?

Look at `vc-make-backup-files' variable.

-- 
Alex



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-07-05  6:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-05  4:17 emacs not creating backup ~ files to file under git control. Why not? emacs+git-user
2015-07-05  6:34 ` Alex Kost

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).