From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: Automatic versioning Date: Fri, 04 Apr 2008 06:24:58 -0600 Message-ID: References: <0fadnf78Nt8kvHDanZ2dnUVZ_q7inZ2d@sysmatrix.net> <657buvF2ep4flU1@mid.individual.net> <89aaa431-b54b-4edd-9c55-adb87fb13afa@s19g2000prg.googlegroups.com> <87myof5mml.fsf@lion.rapttech.com.au> <8763v1mvro.fsf_-_@W0053328.mgh.harvard.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1207312241 10936 80.91.229.12 (4 Apr 2008 12:30:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Apr 2008 12:30:41 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 04 14:31:13 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jhl4a-0005dO-9B for geh-help-gnu-emacs@m.gmane.org; Fri, 04 Apr 2008 14:31:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jhl3x-00015V-JL for geh-help-gnu-emacs@m.gmane.org; Fri, 04 Apr 2008 08:30:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jhkyt-0006lD-KN for help-gnu-emacs@gnu.org; Fri, 04 Apr 2008 08:25:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jhkyi-0006cC-Lv for help-gnu-emacs@gnu.org; Fri, 04 Apr 2008 08:25:10 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jhkyh-0006bu-Mt for help-gnu-emacs@gnu.org; Fri, 04 Apr 2008 08:25:07 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Jhkyh-0005sQ-BN for help-gnu-emacs@gnu.org; Fri, 04 Apr 2008 08:25:07 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Jhkye-0000LI-Hj for help-gnu-emacs@gnu.org; Fri, 04 Apr 2008 12:25:04 +0000 Original-Received: from c-67-162-159-170.hsd1.co.comcast.net ([67.162.159.170]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 Apr 2008 12:25:04 +0000 Original-Received: from kevin.d.rodgers by c-67-162-159-170.hsd1.co.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 Apr 2008 12:25:04 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 64 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-67-162-159-170.hsd1.co.comcast.net User-Agent: Thunderbird 2.0.0.12 (Macintosh/20080213) In-Reply-To: X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:53040 Archived-At: Timothy Hobbs wrote: > Kevin Rodgers 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, . | (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