unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* write-file like function help needed
@ 2006-12-13 20:37 keithv
  2006-12-13 21:16 ` Leo
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: keithv @ 2006-12-13 20:37 UTC (permalink / raw)


Hi,

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?

Thanks in advance,
Keith

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

end of thread, other threads:[~2006-12-14 18:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-13 20:37 write-file like function help needed keithv
2006-12-13 21:16 ` Leo
2006-12-13 22:24 ` Juanma Barranquero
     [not found] ` <mailman.1845.1166044623.2155.help-gnu-emacs@gnu.org>
2006-12-14  2:35   ` Dan Sommers
2006-12-14 18:12 ` Kevin Rodgers

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