all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Is it possible to prevent emacs auto saving the filename~?
@ 2009-05-03 11:34 明覺
  2009-05-03 17:18 ` Drew Adams
  0 siblings, 1 reply; 7+ messages in thread
From: 明覺 @ 2009-05-03 11:34 UTC (permalink / raw)
  To: help-gnu-emacs

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

-- 
My platform is Gnu/Linux Debian(sid-amd64, lenny-intelx86) Gnome
Mozilla/Iceweasel Gmail/Evolution Gtkmm/Anjuta/Emacs Scim Totem
Pidgin.




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

* RE: Is it possible to prevent emacs auto saving the filename~?
  2009-05-03 11:34 明覺
@ 2009-05-03 17:18 ` Drew Adams
  0 siblings, 0 replies; 7+ messages in thread
From: Drew Adams @ 2009-05-03 17:18 UTC (permalink / raw)
  To: '??', help-gnu-emacs

> 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

`C-h r' (or, if not available for your Emacs version, `C-h i', choose Emacs, for
the Emacs manual).

`i backup TAB file RET' (or `go Backup'), to go to node Backup.

Read about backup files. The manual is your friend.





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

* Re: Is it possible to prevent emacs auto saving the filename~?
       [not found] <mailman.6483.1241369266.31690.help-gnu-emacs@gnu.org>
@ 2009-05-03 17:26 ` Teemu Likonen
  2009-05-03 19:19   ` Tassilo Horn
  0 siblings, 1 reply; 7+ messages in thread
From: Teemu Likonen @ 2009-05-03 17:26 UTC (permalink / raw)
  To: help-gnu-emacs

明覺 wrote:

> 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:

    C-h r m Backup RET


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

* Re: Is it possible to prevent emacs auto saving the filename~?
  2009-05-03 17:26 ` Is it possible to prevent emacs auto saving the filename~? Teemu Likonen
@ 2009-05-03 19:19   ` Tassilo Horn
  2009-05-03 19:24     ` Drew Adams
                       ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Tassilo Horn @ 2009-05-03 19:19 UTC (permalink / raw)
  To: help-gnu-emacs

Teemu Likonen <tlikonen@iki.fi> 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:
>
>     C-h r m Backup RET

As an addition to the previous tips.  In general making backup files is
a good thing, so you most probably don't want to turn it off.  But I
understand that you don't want to clutter the filesystem.  But emacs
allows to place the backup files in one single directory.  Here'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
      '((".*" . "~/.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/.  (Yes, I'm paranoid!  Additionally all my
important files are under version control (git, svn), too.)

Bye,
Tassilo





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

* RE: Is it possible to prevent emacs auto saving the filename~?
  2009-05-03 19:19   ` Tassilo Horn
@ 2009-05-03 19:24     ` Drew Adams
  2009-05-04  2:50     ` 明覺
  2009-05-05  6:54     ` 明覺
  2 siblings, 0 replies; 7+ messages in thread
From: Drew Adams @ 2009-05-03 19:24 UTC (permalink / raw)
  To: 'Tassilo Horn', help-gnu-emacs

> emacs allows to place the backup files in one single directory.

Another tip: You can easily get rid of backup files in the current directory,
using Dired's `~' command. IOW, if you don't want to use a separate directory,
any temporary clutter can be removed using `~'.

FWIW, that's what I do: I let Emacs create and keep backup files while I
working, and when I'm done with a task and want to clean things up, I hit `~'.





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

* Re: Is it possible to prevent emacs auto saving the filename~?
  2009-05-03 19:19   ` Tassilo Horn
  2009-05-03 19:24     ` Drew Adams
@ 2009-05-04  2:50     ` 明覺
  2009-05-05  6:54     ` 明覺
  2 siblings, 0 replies; 7+ messages in thread
From: 明覺 @ 2009-05-04  2:50 UTC (permalink / raw)
  To: help-gnu-emacs

On Mon, May 4, 2009 at 3:19 AM, Tassilo Horn <tassilo@member.fsf.org> wrote:
> Teemu Likonen <tlikonen@iki.fi> 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:
>>
>>     C-h r m Backup RET
>
> As an addition to the previous tips.  In general making backup files is
> a good thing, so you most probably don't want to turn it off.  But I
> understand that you don't want to clutter the filesystem.  But emacs
> allows to place the backup files in one single directory.  Here'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
>      '((".*" . "~/.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/.  (Yes, I'm paranoid!  Additionally all my
> important files are under version control (git, svn), too.)

thanks all, this is a good way.

>
> Bye,
> Tassilo
>
>
>
>



-- 
My platform is Gnu/Linux Debian(sid-amd64, lenny-intelx86) Gnome
Mozilla/Iceweasel Gmail/Evolution Gtkmm/Anjuta/Emacs Scim Totem
Pidgin.




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

* Re: Is it possible to prevent emacs auto saving the filename~?
  2009-05-03 19:19   ` Tassilo Horn
  2009-05-03 19:24     ` Drew Adams
  2009-05-04  2:50     ` 明覺
@ 2009-05-05  6:54     ` 明覺
  2 siblings, 0 replies; 7+ messages in thread
From: 明覺 @ 2009-05-05  6:54 UTC (permalink / raw)
  To: help-gnu-emacs

On Mon, May 4, 2009 at 3:19 AM, Tassilo Horn <tassilo@member.fsf.org> wrote:
> Teemu Likonen <tlikonen@iki.fi> 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:
>>
>>     C-h r m Backup RET
>
> As an addition to the previous tips.  In general making backup files is
> a good thing, so you most probably don't want to turn it off.  But I
> understand that you don't want to clutter the filesystem.  But emacs
> allows to place the backup files in one single directory.  Here'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
>      '((".*" . "~/.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/.  (Yes, I'm paranoid!  Additionally all my
> important files are under version control (git, svn), too.)

I created 3 directories under .emacs.d/, they are ebackup, eautosave,
etemp, and created ~/.emacs with the following conent:
---------------------------------------------------------------
;; Backup
(defvar backup-dir (expand-file-name "~/.emacs.d/ebackup/"))
(defvar autosave-dir (expand-file-name "~/.emacs.d/eautosave/"))
(setq backup-directory-alist (list (cons ".*" backup-dir)))
(setq auto-save-list-file-prefix autosave-dir)
(setq auto-save-file-name-transforms `((".*" ,autosave-dir t)))
---------------------------------------------------------------
after that all the files ending with ~ go to the subfolders of
.emacs.d/, that's good, but I found that when I'm editing a file, a
.#filename will appear in my working folder, I hope I can also move
that file into .emacs.d/etemp/, by what configuration could I reach
that? thanks

>
> Bye,
> Tassilo
>
>
>
>



-- 
My platform is Gnu/Linux Debian(sid-amd64, lenny-intelx86) Gnome
Mozilla/Iceweasel Gmail/Evolution Gtkmm/Anjuta/Emacs Scim Totem
Pidgin.




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

end of thread, other threads:[~2009-05-05  6:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.6483.1241369266.31690.help-gnu-emacs@gnu.org>
2009-05-03 17:26 ` Is it possible to prevent emacs auto saving the filename~? Teemu Likonen
2009-05-03 19:19   ` Tassilo Horn
2009-05-03 19:24     ` Drew Adams
2009-05-04  2:50     ` 明覺
2009-05-05  6:54     ` 明覺
2009-05-03 11:34 明覺
2009-05-03 17:18 ` Drew Adams

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.