Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion write-file like function help needed
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Kevin Rodgers  
View profile  
 More options Dec 14 2006, 1:12 pm
Newsgroups: gnu.emacs.help
From: Kevin Rodgers <ihs_4...@yahoo.com>
Date: Thu, 14 Dec 2006 11:12:52 -0700
Local: Thurs, Dec 14 2006 1:12 pm
Subject: Re: write-file like function help needed

keithv wrote:
> I need help writing a function that works like write-file but
> first modifies the file name by locating and incrementing
> any numbers in the file name. For example, if the buffer
> name is "test1.txt", repeatedly invoking this function
> would save files with the names "test2.txt", "test3.txt",
> "test4.txt", etc.

> The goal being to keep all versions of a given file.

> My elisp is rusty--I know how I would do the
> number locate and increment on the buffer text
> but not for an arbitrary string.

> Or better yet, is there a package out there
> to do something similar?

,----[ C-h v version-control RET ]
| version-control is a variable defined in `files.el'.
| Its value is nil
|
| Documentation:
| *Control use of version numbers for backup files.
| t means make numeric backup versions unconditionally.
| nil means make them for files that have some already.
| `never' means do not make them.
|
| You can customize this variable.
|
| [back]
`----

--
Kevin


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.