From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-2022-JP?B?GyRCTEBrNBsoQg==?= Newsgroups: gmane.emacs.help Subject: Re: Is it possible to prevent emacs auto saving the filename~? Date: Mon, 4 May 2009 10:50:26 +0800 Message-ID: <6a8fced30905031950o185758c6lde78e481ee7f40d3@mail.gmail.com> References: <87iqkiw111.fsf@iki.fi> <87iqkiq9jf.fsf@thinkpad.tsdh.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1241405466 14915 80.91.229.12 (4 May 2009 02:51:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 May 2009 02:51:06 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon May 04 04:50:56 2009 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 1M0oGd-0000IK-Lm for geh-help-gnu-emacs@m.gmane.org; Mon, 04 May 2009 04:50:55 +0200 Original-Received: from localhost ([127.0.0.1]:58721 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M0oGc-00055Y-Uv for geh-help-gnu-emacs@m.gmane.org; Sun, 03 May 2009 22:50:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M0oGH-00055J-FK for help-gnu-emacs@gnu.org; Sun, 03 May 2009 22:50:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M0oGC-000554-3g for help-gnu-emacs@gnu.org; Sun, 03 May 2009 22:50:32 -0400 Original-Received: from [199.232.76.173] (port=59713 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M0oGB-000551-U8 for help-gnu-emacs@gnu.org; Sun, 03 May 2009 22:50:27 -0400 Original-Received: from mail-gx0-f176.google.com ([209.85.217.176]:47632) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M0oGB-0001ab-KR for help-gnu-emacs@gnu.org; Sun, 03 May 2009 22:50:27 -0400 Original-Received: by gxk24 with SMTP id 24so4605672gxk.18 for ; Sun, 03 May 2009 19:50:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=ruNIdzFxfMpukZHjLX0Pto+b/N2KKVannFy3L1e1OC4=; b=SQ5nfrWRXx5ab1+645K20O246P+puJBWWT0toqcp8wn5+GBySCkjMhuhp2bFoAVK0W m5VLXSy2NNuV/WvL8mdG/1ruJvOj+wOjYbylzpK7W6YVuj5rFFF1JVR0hKnr0W7f1YN2 JybfvRVUXDVqpW798kMgqAxI52F7YDS5tVYEU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=pPCMoHvWzpHOd8nEKrH5SjxshQMyuv21smPsVYaIGeJb0J9QxcAVlzrsLci5yMzngf koN3574TBBs3TNxn5Z0+5noZamRfv2g8By4wx+gcXhHUJzsioE9s6tNsZqGq5Tg2cOXo ydk+ZcasItz94/J0YgRIOhpXp8KiJenXjNLgs= Original-Received: by 10.90.74.7 with SMTP id w7mr3811485aga.77.1241405426924; Sun, 03 May 2009 19:50:26 -0700 (PDT) In-Reply-To: <87iqkiq9jf.fsf@thinkpad.tsdh.de> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:64163 Archived-At: On Mon, May 4, 2009 at 3:19 AM, Tassilo Horn wrote= : > Teemu Likonen writes: > > Hi! > >>> I know that emacs auto save a file named filename~ when I modified >>> the file filename, but I do not like the autosaved copy, could i stop >>> this function? thanks >> >> The variable that you are probably looking for is make-backup-files. >> Read also the related section in the Emacs reference manual: >> >> =A0 =A0 C-h r m Backup RET > > As an addition to the previous tips. =A0In general making backup files is > a good thing, so you most probably don't want to turn it off. =A0But I > understand that you don't want to clutter the filesystem. =A0But emacs > allows to place the backup files in one single directory. =A0Here's the > config: > > --8<---------------cut here---------------start------------->8--- > (setq version-control t) > (setq kept-old-versions 0) > (setq kept-new-versions 20) > (setq delete-old-versions t) > (setq backup-directory-alist > =A0 =A0 =A0'((".*" . "~/.emacs.d/backup-files/"))) > --8<---------------cut here---------------end--------------->8--- > > This saves the last 20 versions of all files I edit in > ~/.emacs.d/backup-files/. =A0(Yes, I'm paranoid! =A0Additionally all my > important files are under version control (git, svn), too.) thanks all, this is a good way. > > Bye, > Tassilo > > > > --=20 My platform is Gnu/Linux Debian(sid-amd64, lenny-intelx86) Gnome Mozilla/Iceweasel Gmail/Evolution Gtkmm/Anjuta/Emacs Scim Totem Pidgin.