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

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.