From: Tassilo Horn <tassilo@member.fsf.org>
To: help-gnu-emacs@gnu.org
Subject: Re: emacs exiting
Date: Thu, 08 Dec 2011 08:20:06 +0100 [thread overview]
Message-ID: <87d3bz4jix.fsf@tsdh.uni-koblenz.de> (raw)
In-Reply-To: 4EE058C3.7000005@sergio.spb.ru
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
next prev parent reply other threads:[~2011-12-08 7:20 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-07 22:16 emacs exiting sergio
2011-12-08 4:07 ` Alexander
2011-12-08 6:27 ` sergio
2011-12-08 7:20 ` Tassilo Horn [this message]
2011-12-08 10:20 ` sergio
2011-12-08 10:24 ` Andreas Röhler
2011-12-08 8:57 ` Eric S Fraga
2011-12-08 16:11 ` Peter Münster
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d3bz4jix.fsf@tsdh.uni-koblenz.de \
--to=tassilo@member.fsf.org \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).