all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.