all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to disable auto save on Emacs 26.1
@ 2018-10-03 13:10 Tom Wallenfang
  2018-10-03 13:34 ` Martin Šlouf
                   ` (3 more replies)
  0 siblings, 4 replies; 17+ messages in thread
From: Tom Wallenfang @ 2018-10-03 13:10 UTC (permalink / raw)
  To: help-gnu-emacs

Hello dear emacs folk,
I have been seeing lately that the autosave feature is activated again
although I deactivated it :/

Here is a cut from my .emacs file:

> (custom-set-variables
> '(auto-save-default nil)
> '(auto-save-interval 0)
> '(auto-save-timeout 0)
> '(auto-save-visited-interval 0))
Does anyone here know what I have to do so I don't have to remove those
files everytime I quit editing

(yes, I do know the consequences that can come with disabling autosave,
and I am taking the full responsibility for what might/is going to
happen.)

Thanks in Regards
Tom


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

* Re: How to disable auto save on Emacs 26.1
  2018-10-03 13:10 How to disable auto save on Emacs 26.1 Tom Wallenfang
@ 2018-10-03 13:34 ` Martin Šlouf
  2018-10-03 13:55 ` Stefan Monnier
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 17+ messages in thread
From: Martin Šlouf @ 2018-10-03 13:34 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

I have been also irritated by the various 'spam' within my projects, but
than I have found this setting (keeps all the backups in single directory):

(custom-set-variables
  '(backup-directory-alist (quote (("." . "~/.emacs.d/backup-directory")))))

so I can keep my file system clean and still have the backups. I can
_recommend_ it.

Kind Regards,
Martin

P.S.

Documentation:
Alist of filename patterns and backup directory names.
Each element looks like (REGEXP . DIRECTORY).  Backups of files with
names matching REGEXP will be made in DIRECTORY.

Tom Wallenfang <tom@wallenfang.de> writes:

> Hello dear emacs folk,
> I have been seeing lately that the autosave feature is activated again
> although I deactivated it :/
>
> Here is a cut from my .emacs file:
>
>> (custom-set-variables
>> '(auto-save-default nil)
>> '(auto-save-interval 0)
>> '(auto-save-timeout 0)
>> '(auto-save-visited-interval 0))
> Does anyone here know what I have to do so I don't have to remove those
> files everytime I quit editing
>
> (yes, I do know the consequences that can come with disabling autosave,
> and I am taking the full responsibility for what might/is going to
> happen.)
>
> Thanks in Regards
> Tom



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

* Re: How to disable auto save on Emacs 26.1
  2018-10-03 13:10 How to disable auto save on Emacs 26.1 Tom Wallenfang
  2018-10-03 13:34 ` Martin Šlouf
@ 2018-10-03 13:55 ` Stefan Monnier
       [not found] ` <mailman.1669.1538575056.1284.help-gnu-emacs@gnu.org>
       [not found] ` <mailman.1668.1538573687.1284.help-gnu-emacs@gnu.org>
  3 siblings, 0 replies; 17+ messages in thread
From: Stefan Monnier @ 2018-10-03 13:55 UTC (permalink / raw)
  To: help-gnu-emacs

> I have been seeing lately that the autosave feature is activated again
> although I deactivated it :/

Could you describe exactly what you "have been seeing" that made you
conclude that "the autosave feature is activated again"?
It's common for Emacs users to confuse auto-saves and backups, for example.


        Stefan




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

* Re: How to disable auto save on Emacs 26.1
       [not found] ` <mailman.1669.1538575056.1284.help-gnu-emacs@gnu.org>
@ 2018-10-03 14:16   ` Tom Wallenfang
  2018-10-04 11:04     ` tomas
       [not found]     ` <mailman.1698.1538651613.1284.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 17+ messages in thread
From: Tom Wallenfang @ 2018-10-03 14:16 UTC (permalink / raw)
  To: help-gnu-emacs

> Could you describe exactly what you "have been seeing" that made you
> conclude that "the autosave feature is activated again"?
When I edited the Makefile, saved and looked at the filesystem, there
was Makefile~ which I don't want.
-- 
It works on my machine...


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

* Re: How to disable auto save on Emacs 26.1
       [not found] ` <mailman.1668.1538573687.1284.help-gnu-emacs@gnu.org>
@ 2018-10-03 14:19   ` Tom Wallenfang
  0 siblings, 0 replies; 17+ messages in thread
From: Tom Wallenfang @ 2018-10-03 14:19 UTC (permalink / raw)
  To: help-gnu-emacs

Thanks a lot!
-- 
It works on my machine...


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

* Re: How to disable auto save on Emacs 26.1
  2018-10-03 14:16   ` Tom Wallenfang
@ 2018-10-04 11:04     ` tomas
  2018-10-04 12:55       ` Skip Montanaro
       [not found]       ` <mailman.1701.1538657386.1284.help-gnu-emacs@gnu.org>
       [not found]     ` <mailman.1698.1538651613.1284.help-gnu-emacs@gnu.org>
  1 sibling, 2 replies; 17+ messages in thread
From: tomas @ 2018-10-04 11:04 UTC (permalink / raw)
  To: Tom Wallenfang; +Cc: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 1306 bytes --]

On Wed, Oct 03, 2018 at 04:16:37PM +0200, Tom Wallenfang wrote:
> > Could you describe exactly what you "have been seeing" that made you
> > conclude that "the autosave feature is activated again"?
> When I edited the Makefile, saved and looked at the filesystem, there
> was Makefile~ which I don't want.

Seems Stefan's crystal ball is working perfectly (as almost always).

The files with the tilde at the end are (typically) backup files. They
are supposed to survive the session and give you a "previous state" to
fall back to should your session do a catastrophic thing.

The "auto save" file name would rather look like ".#Makefile", and the
file strives to contain the most current buffer status. In case of a
(Emacs or system) crash, you can thus recover the most recent edits.

Note that this file is supposed to be ephemeral: if all ends well, you
won't see it.

So it seems you want to configure backup, described in info node
"Backup Files".

If your concern is file system clutter, better leave auto-save alone.
It's not going to clutter your file system (unless something else is
going horribly wrong). As for backup, you can disable it or even teach
it to use one directory for all backups (I have typically something
beneath my ~/.emacs.d).

Cheers
-- tomás

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

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

* Re: How to disable auto save on Emacs 26.1
  2018-10-04 11:04     ` tomas
@ 2018-10-04 12:55       ` Skip Montanaro
  2018-10-04 14:47         ` Van L
  2018-10-04 17:21         ` How to disable auto save on Emacs 26.1 Marcin Borkowski
       [not found]       ` <mailman.1701.1538657386.1284.help-gnu-emacs@gnu.org>
  1 sibling, 2 replies; 17+ messages in thread
From: Skip Montanaro @ 2018-10-04 12:55 UTC (permalink / raw)
  To: tomas; +Cc: Help GNU Emacs, tom

> If your concern is file system clutter, better leave auto-save alone.
> It's not going to clutter your file system (unless something else is
> going horribly wrong). As for backup, you can disable it or even teach
> it to use one directory for all backups (I have typically something
> beneath my ~/.emacs.d).

Coming a bit late to the game... Adding to Tomás's point, if you want
to eliminate backup files, don't just disable it. Replace it with a
proper version control system of some sort. Think of backup files (I
generally use numeric backups to actually retain more than one old
copy - more clutter!) as a defense against shooting yourself in the
foot. A version control system does that, only better. Tools like Git
or Mercurial make it trivial to create and manage little repositories
("git init" creates a new repo in the current directory, for example).
You need not push changes to a central server if you don't care to.
The elements in the filesystem which support the repository will
generally be invisible to the casual glance (hiding as directories
with leading dots on Unix-type systems). Most are well-integrated with
Emacs, so you can manage commits and other activities directly from
within Emacs (I use the vc package). Furthermore, once Emacs knows a
version control system has your back, it stops saving those
(pesky-to-you) backup files.

I apologize if this is all old hat. I wanted to make sure you
understood that backup files serve a valuable purpose (as do their big
brethren, version control systems). I suspect most folks reading this
mailing list have been thankful for this feature on more than one
occasion.

Skip



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

* Re: How to disable auto save on Emacs 26.1
       [not found]     ` <mailman.1698.1538651613.1284.help-gnu-emacs@gnu.org>
@ 2018-10-04 13:10       ` Stefan Monnier
  2018-10-04 14:49         ` tomas
  2018-10-04 13:44       ` Tom Wallenfang
  1 sibling, 1 reply; 17+ messages in thread
From: Stefan Monnier @ 2018-10-04 13:10 UTC (permalink / raw)
  To: help-gnu-emacs

> The files with the tilde at the end are (typically) backup files.

Indeed.

> They are supposed to survive the session and give you a "previous
> state" to fall back to should your session do a catastrophic thing.

No, they're not meant to handle crashes but rather pilot errors
(they're supposed to hold the state of the file before the last time you
edited it with Emacs).

> The "auto save" file name would rather look like ".#Makefile", and the

No, the .#foo "files" are the symlinks used as "lock files" to indicate
that the file is being edited by an Emacs session (can be disabled by
setting `create-lockfiles`).

The autosave files have names of the form #foo#


        Stefan


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

* Re: How to disable auto save on Emacs 26.1
       [not found]     ` <mailman.1698.1538651613.1284.help-gnu-emacs@gnu.org>
  2018-10-04 13:10       ` Stefan Monnier
@ 2018-10-04 13:44       ` Tom Wallenfang
  1 sibling, 0 replies; 17+ messages in thread
From: Tom Wallenfang @ 2018-10-04 13:44 UTC (permalink / raw)
  To: help-gnu-emacs

Thanks for that response!
Now I know why it didn't work when I searched for ways to disable
autosave.
The solution Martin Šlouf gave me works great, it's what I've been
searching for so long.
Regards
Tom
-- 
It works on my machine...


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

* Re: How to disable auto save on Emacs 26.1
  2018-10-04 12:55       ` Skip Montanaro
@ 2018-10-04 14:47         ` Van L
  2018-10-06 11:34           ` Fossil [Was: Re: How to disable auto save on Emacs 26.1] Garreau, Alexandre
  2018-10-04 17:21         ` How to disable auto save on Emacs 26.1 Marcin Borkowski
  1 sibling, 1 reply; 17+ messages in thread
From: Van L @ 2018-10-04 14:47 UTC (permalink / raw)
  To: Help GNU Emacs


> Think of backup files (I
> generally use numeric backups to actually retain more than one old
> copy - more clutter!) as a defense against shooting yourself in the
> foot. A version control system does that, only better. Tools like Git
> or Mercurial make it trivial to create and manage little repositories
> ("git init" creates a new repo in the current directory, for example).
> You need not push changes to a central server if you don't care to.

A complete beginner might want to try fossil.

It has builtin wiki, ticket tracking, and web-frontend.

http://www.fossil-scm.org/



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

* Re: How to disable auto save on Emacs 26.1
  2018-10-04 13:10       ` Stefan Monnier
@ 2018-10-04 14:49         ` tomas
  0 siblings, 0 replies; 17+ messages in thread
From: tomas @ 2018-10-04 14:49 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 898 bytes --]

On Thu, Oct 04, 2018 at 09:10:27AM -0400, Stefan Monnier wrote:
> > The files with the tilde at the end are (typically) backup files.
> 
> Indeed.
> 
> > They are supposed to survive the session and give you a "previous
> > state" to fall back to should your session do a catastrophic thing.
> 
> No, they're not meant to handle crashes but rather pilot errors

Correct. Actually that was what I was trying to say (but didn't manage).
You delete (by mistake) the whole thing. Then save. Oops. That kind of
stuff.

> > The "auto save" file name would rather look like ".#Makefile", and the
> 
> No, the .#foo "files" are the symlinks used as "lock files" to indicate
> that the file is being edited by an Emacs session (can be disabled by
> setting `create-lockfiles`).
> 
> The autosave files have names of the form #foo#

Oh. Thanks for the clarification...

Cheers
-- t

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

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

* Re: How to disable auto save on Emacs 26.1
  2018-10-04 12:55       ` Skip Montanaro
  2018-10-04 14:47         ` Van L
@ 2018-10-04 17:21         ` Marcin Borkowski
  2018-10-06  6:24           ` Marcin Borkowski
  1 sibling, 1 reply; 17+ messages in thread
From: Marcin Borkowski @ 2018-10-04 17:21 UTC (permalink / raw)
  To: Skip Montanaro; +Cc: Help GNU Emacs, tom


On 2018-10-04, at 14:55, Skip Montanaro <skip.montanaro@gmail.com> wrote:

>> If your concern is file system clutter, better leave auto-save alone.
>> It's not going to clutter your file system (unless something else is
>> going horribly wrong). As for backup, you can disable it or even teach
>> it to use one directory for all backups (I have typically something
>> beneath my ~/.emacs.d).
>
> Coming a bit late to the game... Adding to Tomás's point, if you want
> to eliminate backup files, don't just disable it. Replace it with a
> proper version control system of some sort. Think of backup files (I
> generally use numeric backups to actually retain more than one old
> copy - more clutter!) as a defense against shooting yourself in the
> foot. A version control system does that, only better. [...]

That is a very sound advice.  I'd like to point out, however, that the
backup files (even the numbered ones) actually do have their place even
in the presence of VCSs.  (Coincidentally, I have a blog post ready for
publishing about exactly this issue, and I plan to post it online on
Saturday.)  My use-case is a .env file, containing sensitive data (like
passwords) the application I'm working on needs.  It must not be
committed to a Git repo, but being able to look at one (or more)
previous versions (as in, "what was the last version that wan't somehow
broken") is sometimes quite valuable.

Just my 2 cents,

--
Marcin Borkowski
http://mbork.pl



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

* Re: How to disable auto save on Emacs 26.1
       [not found]       ` <mailman.1701.1538657386.1284.help-gnu-emacs@gnu.org>
@ 2018-10-05 18:04         ` James K. Lowden
  0 siblings, 0 replies; 17+ messages in thread
From: James K. Lowden @ 2018-10-05 18:04 UTC (permalink / raw)
  To: help-gnu-emacs

On Thu, 4 Oct 2018 07:55:45 -0500
Skip Montanaro <skip.montanaro@gmail.com> wrote:

> Think of backup files (I generally use numeric backups to actually
> retain more than one old copy - more clutter!) as a defense against
> shooting yourself in the foot. A version control system does that,
> only better. Tools like Git or Mercurial make it trivial to create
> and manage little repositories ("git init" creates a new repo in the
> current directory, for example).

Yeah, no.  The operative word is "manage".  Backups happen
automatically; version control happens intentionally.  Who wants to
execute "add" and "commit" all day long, just in case?  

Most files don't need or want management.  The very last thing you need
is a copy of your .profile from 1992, but it well might be handy to
have .profile~ when .profile gets overwritten by mistake.  

There are better answers, although of course Unix is immune to them.
VMS had automatic, numbered backups for all files.  How many was
controlled by properties on the directory by default, or explicitly of
the file. The command-line shell syntax supported acting on "the
file" (the latest version) by default, or on all versions.  I never
remember anyone complaining the system was too complicated or hard to
understand.  

--jkl


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

* Re: How to disable auto save on Emacs 26.1
  2018-10-04 17:21         ` How to disable auto save on Emacs 26.1 Marcin Borkowski
@ 2018-10-06  6:24           ` Marcin Borkowski
  0 siblings, 0 replies; 17+ messages in thread
From: Marcin Borkowski @ 2018-10-06  6:24 UTC (permalink / raw)
  To: Skip Montanaro; +Cc: Help GNU Emacs, tom


On 2018-10-04, at 19:21, Marcin Borkowski <mbork@mbork.pl> wrote:

> On 2018-10-04, at 14:55, Skip Montanaro <skip.montanaro@gmail.com> wrote:
>
>>> If your concern is file system clutter, better leave auto-save alone.
>>> It's not going to clutter your file system (unless something else is
>>> going horribly wrong). As for backup, you can disable it or even teach
>>> it to use one directory for all backups (I have typically something
>>> beneath my ~/.emacs.d).
>>
>> Coming a bit late to the game... Adding to Tomás's point, if you want
>> to eliminate backup files, don't just disable it. Replace it with a
>> proper version control system of some sort. Think of backup files (I
>> generally use numeric backups to actually retain more than one old
>> copy - more clutter!) as a defense against shooting yourself in the
>> foot. A version control system does that, only better. [...]
>
> That is a very sound advice.  I'd like to point out, however, that the
> backup files (even the numbered ones) actually do have their place even
> in the presence of VCSs.  (Coincidentally, I have a blog post ready for
> publishing about exactly this issue, and I plan to post it online on
> Saturday.)  My use-case is a .env file, containing sensitive data (like
> passwords) the application I'm working on needs.  It must not be
> committed to a Git repo, but being able to look at one (or more)
> previous versions (as in, "what was the last version that wan't somehow
> broken") is sometimes quite valuable.

Just in case someone was interested, here's my blog post about Emacs and
backup copies of files it saves:
http://mbork.pl/2018-10-06_The_version-control_variable

Best,

-- 
Marcin Borkowski
http://mbork.pl



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

* Fossil [Was: Re: How to disable auto save on Emacs 26.1]
  2018-10-04 14:47         ` Van L
@ 2018-10-06 11:34           ` Garreau, Alexandre
  2018-10-06 14:32             ` Van L
  2018-10-06 19:17             ` tomas
  0 siblings, 2 replies; 17+ messages in thread
From: Garreau, Alexandre @ 2018-10-06 11:34 UTC (permalink / raw)
  To: Van L; +Cc: Help GNU Emacs

On 2018-10-05 at 00:47, Van L wrote:
>> Think of backup files (I
>> generally use numeric backups to actually retain more than one old
>> copy - more clutter!) as a defense against shooting yourself in the
>> foot. A version control system does that, only better. Tools like Git
>> or Mercurial make it trivial to create and manage little repositories
>> ("git init" creates a new repo in the current directory, for example).
>> You need not push changes to a central server if you don't care to.
>
> A complete beginner might want to try fossil.

Isn’t fossil (also?) Plan9’s versioned immutable file system?

> It has builtin wiki, ticket tracking, and web-frontend.

isn’t that even more cluttered if you don’t need that but only backups?



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

* Re: Fossil [Was: Re: How to disable auto save on Emacs 26.1]
  2018-10-06 11:34           ` Fossil [Was: Re: How to disable auto save on Emacs 26.1] Garreau, Alexandre
@ 2018-10-06 14:32             ` Van L
  2018-10-06 19:17             ` tomas
  1 sibling, 0 replies; 17+ messages in thread
From: Van L @ 2018-10-06 14:32 UTC (permalink / raw)
  To: Help GNU Emacs


>> A complete beginner might want to try fossil.
> 
> Isn’t fossil (also?) Plan9’s versioned immutable file system?

Without looking into it, I don’t know. The identical name may 
at rockbottom refer to a totally different thing. The concept
is the same, I suppose.

>> It has builtin wiki, ticket tracking, and web-frontend.
> 
> isn’t that even more cluttered if you don’t need that but only backups?

That depends how one approaches their mental model.
One way of seeing that is in three perspectives on 
the one thing, which is undifferentiated and if it 
is cluttered in detail like an unmanaged desktop that 
will need to be changed by a will to be different and
to self-improve.


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

* Re: Fossil [Was: Re: How to disable auto save on Emacs 26.1]
  2018-10-06 11:34           ` Fossil [Was: Re: How to disable auto save on Emacs 26.1] Garreau, Alexandre
  2018-10-06 14:32             ` Van L
@ 2018-10-06 19:17             ` tomas
  1 sibling, 0 replies; 17+ messages in thread
From: tomas @ 2018-10-06 19:17 UTC (permalink / raw)
  To: Garreau, Alexandre; +Cc: Van L, Help GNU Emacs

[-- Attachment #1: Type: text/plain, Size: 423 bytes --]

On Sat, Oct 06, 2018 at 01:34:17PM +0200, Garreau, Alexandre wrote:

[...]

> Isn’t fossil (also?) Plan9’s versioned immutable file system?

I don't think so. I think this was meant:

  https://fossil-scm.org/index.html/doc/trunk/www/index.wiki
  https://en.wikipedia.org/wiki/Fossil_(software)

It's the VC & bug tracker used by the Tcl folks (by D. Richard Hipp, of
SQLie fame), I think.

Cheers
-- t

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

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

end of thread, other threads:[~2018-10-06 19:17 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-03 13:10 How to disable auto save on Emacs 26.1 Tom Wallenfang
2018-10-03 13:34 ` Martin Šlouf
2018-10-03 13:55 ` Stefan Monnier
     [not found] ` <mailman.1669.1538575056.1284.help-gnu-emacs@gnu.org>
2018-10-03 14:16   ` Tom Wallenfang
2018-10-04 11:04     ` tomas
2018-10-04 12:55       ` Skip Montanaro
2018-10-04 14:47         ` Van L
2018-10-06 11:34           ` Fossil [Was: Re: How to disable auto save on Emacs 26.1] Garreau, Alexandre
2018-10-06 14:32             ` Van L
2018-10-06 19:17             ` tomas
2018-10-04 17:21         ` How to disable auto save on Emacs 26.1 Marcin Borkowski
2018-10-06  6:24           ` Marcin Borkowski
     [not found]       ` <mailman.1701.1538657386.1284.help-gnu-emacs@gnu.org>
2018-10-05 18:04         ` James K. Lowden
     [not found]     ` <mailman.1698.1538651613.1284.help-gnu-emacs@gnu.org>
2018-10-04 13:10       ` Stefan Monnier
2018-10-04 14:49         ` tomas
2018-10-04 13:44       ` Tom Wallenfang
     [not found] ` <mailman.1668.1538573687.1284.help-gnu-emacs@gnu.org>
2018-10-03 14:19   ` Tom Wallenfang

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.