From: Kevin Rodgers <kevin.d.rodgers@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Automatic versioning
Date: Fri, 04 Apr 2008 06:24:58 -0600 [thread overview]
Message-ID: <ft56mp$9ep$1@ger.gmane.org> (raw)
In-Reply-To: <m38wzvfr6m.fsf@xo-10-E6-7E.localdomain>
Timothy Hobbs wrote:
> Kevin Rodgers <kevin.d.rodgers@gmail.com> writes:
>
>> (defadvice save-buffer (before version activate)
>> "I wish to have all files versioned, period."
>> (ad-set-arg 0 '(64)))
>
> What exactly does this do?
It makes save-buffer behave as if it were invoked as
`C-u C-u C-u C-x C-s' (see "Prefixed with three C-u's"
below).
,----[ C-h k C-x C-s ]
| C-x C-s runs the command save-buffer
| which is an interactive compiled Lisp function in `files.el'.
| It is bound to C-x C-s, <menu-bar> <file> <save-buffer>.
| (save-buffer &optional args)
|
| Save current buffer in visited file if modified.
| Variations are described below.
|
| By default, makes the previous version into a backup file
| if previously requested or if this is the first save.
| Prefixed with one C-u, marks this version
| to become a backup when the next save is done.
| Prefixed with two C-u's,
| unconditionally makes the previous version into a backup file.
| Prefixed with three C-u's, marks this version
| to become a backup when the next save is done,
| and unconditionally makes the previous version into a backup file.
|
| With a numeric argument of 0, never make the previous version
| into a backup file.
|
| If a file's name is FOO, the names of its numbered backup versions are
| FOO.~i~ for various integers i. A non-numbered backup file is called
FOO~.
| Numeric backups (rather than FOO~) will be made if value of
| `version-control' is not the atom `never' and either there are already
| numeric versions of the file being backed up, or `version-control' is
| non-nil.
| We don't want excessive versions piling up, so there are variables
| `kept-old-versions', which tells Emacs how many oldest versions to keep,
| and `kept-new-versions', which tells how many newest versions to keep.
| Defaults are 2 old versions and 2 new.
| `dired-kept-versions' controls dired's clean-directory (.) command.
| If `delete-old-versions' is nil, system will query user
| before trimming versions. Otherwise it does it silently.
|
| If `vc-make-backup-files' is nil, which is the default,
| no backup files are made for files managed by version control.
| (This is because the version control system itself records previous
versions.)
|
| See the subroutine `basic-save-buffer' for more information.
|
| [back]
`----
--
Kevin Rodgers
Denver, Colorado, USA
next prev parent reply other threads:[~2008-04-04 12:24 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-28 7:30 My dream work log: Albert
2008-03-28 16:50 ` B. T. Raven
2008-03-29 17:18 ` Mike Treseler
2008-03-30 17:21 ` Choosing a versioning system (was My dream work log:) rustom
2008-03-30 17:50 ` Choosing a versioning system Thierry Volpiatto
2008-03-30 18:32 ` Choosing a versioning system (was My dream work log:) Mike Treseler
2008-03-31 19:06 ` Choosing a versioning system Joel J. Adamson
[not found] ` <mailman.9728.1206990435.18990.help-gnu-emacs@gnu.org>
2008-03-31 20:24 ` Mike Treseler
2008-03-30 18:59 ` Choosing a versioning system (was My dream work log:) Oleg Katsitadze
[not found] ` <mailman.9661.1206909269.18990.help-gnu-emacs@gnu.org>
2008-03-31 3:55 ` rustom
2008-03-31 6:38 ` Choosing a versioning system Thierry Volpiatto
2008-03-31 21:06 ` Mike Mattie
2008-04-03 18:25 ` Nikolaj Schumacher
2008-04-03 18:51 ` Thierry Volpiatto
2008-04-04 16:41 ` Nikolaj Schumacher
2008-04-04 17:46 ` Thierry Volpiatto
2008-03-31 8:22 ` Tim X
2008-03-31 22:23 ` Timothy Hobbs
2008-04-01 15:37 ` Automatic versioning (was: Choosing a versioning system) Joel J. Adamson
2008-04-01 20:48 ` Automatic versioning Timothy Hobbs
2008-04-02 13:39 ` Joel J. Adamson
2008-04-03 2:00 ` Kevin Rodgers
2008-04-03 5:22 ` Timothy Hobbs
2008-04-04 12:24 ` Kevin Rodgers [this message]
2008-04-04 13:44 ` Joel J. Adamson
2008-04-04 20:35 ` Timothy Hobbs
2008-04-05 0:00 ` Xavier Maillard
2008-04-05 4:21 ` Timothy Hobbs
2008-04-03 14:18 ` Joel J. Adamson
2008-04-04 12:28 ` Kevin Rodgers
2008-03-31 19:04 ` Choosing a versioning system Joel J. Adamson
2008-03-28 17:03 ` My dream work log: Thierry Volpiatto
[not found] ` <mailman.9546.1206722977.18990.help-gnu-emacs@gnu.org>
2008-03-29 8:36 ` Albert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='ft56mp$9ep$1@ger.gmane.org' \
--to=kevin.d.rodgers@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).