help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: emacs exiting


From: Tassilo Horn
Subject: Re: emacs exiting
Date: Thu, 08 Dec 2011 08:20:06 +0100
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.92 (gnu/linux)

sergio <mailbox@sergio.spb.ru> writes:

Hi Sergio,

>>> How to leave emacs without saving after some modification were made
>>> without leaving #file# (with moving it or switching off)?
>
>> I'm not sure what you're asking but try C-x C-c.
>
> This leaves auto save #file# after exit.

But only if you say "no" when being queried if the changes should be
saved to the file.  Well, in that case it might be ok not to auto-save,
because the user already stated that he doesn't want to persist his
changes.  But I don't see how that could be done easily.  One way would
be to write your own version of `server-kill-emacs-query-function' and
replace the original with yours in `kill-emacs-query-functions'...

You could also disable auto-saving completely:

,----[ C-h v auto-save-default RET ]
| auto-save-default is a variable defined in `files.el'.
| Its value is t
| 
| Documentation:
| Non-nil says by default do auto-saving of every file-visiting buffer.
| 
| You can customize this variable.
`----

But I don't think it's a good idea to turn off auto saving.

Bye,
Tassilo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]