unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* backup files and version control
@ 2005-02-17 10:14 Heiko Gerdau
  0 siblings, 0 replies; 6+ messages in thread
From: Heiko Gerdau @ 2005-02-17 10:14 UTC (permalink / raw)


Hi,

I need some advice concerning backup files and version control.

I have written my own elisp function "make-backup-file-name" to collect backup 
files in subdirectories named ".backup~". (function is attached at the end of 
this mail)

It works fine for all regular files except if they are under version control. 
Than the backup files are scattering with the version numbers  attached in 
the same directory as the original file which is realy unconfortable if I 
want to use tools like grep etc.

I also tried (setq version-control (quote never)) with no effect.

So my question:
What can I do to put also those files into my backup subdirectory that are 
under version control?

Any help is appriciated
Thanks
Heiko

Here is my version of "make-backup-file-name"
;; Create backup files in a separate subdirectory
(defun make-backup-file-name (file)
  (let ((dir (concat (file-name-directory file) ".backup~")))
    (if (not (file-exists-p dir))
	(make-directory dir))
    (concat dir "/" (file-name-nondirectory file) "~")))

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

end of thread, other threads:[~2005-02-18 14:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.286.1108636126.32256.help-gnu-emacs@gnu.org>
2005-02-17 15:27 ` backup files and version control timseal
2005-02-17 19:44 ` Kevin Rodgers
2005-02-18 10:39   ` Heiko Gerdau
     [not found]   ` <mailman.452.1108724397.32256.help-gnu-emacs@gnu.org>
2005-02-18 12:44     ` Thien-Thi Nguyen
2005-02-18 14:23       ` Heiko Gerdau
2005-02-17 10:14 Heiko Gerdau

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).