From: bojohan+news@dd.chalmers.se (Johan Bockgård)
To: help-gnu-emacs@gnu.org
Subject: Re: Reliable indication that auto-saving should not be done
Date: Fri, 30 Mar 2007 13:13:48 +0200 [thread overview]
Message-ID: <yoijd52roufn.fsf@gamma02.me.chalmers.se> (raw)
In-Reply-To: mailman.1599.1175213615.7795.help-gnu-emacs@gnu.org
"Denis Bueno" <dbueno@gmail.com> writes:
> I install that function in `auto-save-hook'. However, in some buffers
> auto-saving is off (for security reasons) but my hook still gets run.
> My questions are, first of all, should the auto-save hook be run when
> auto-saving is off?
The auto-saving mechanism is global. Periodically Emacs runs the
function `do-auto-save' ("Auto-save all buffers that need it"). This
runs `auto-save-hook' once before saving the buffers.
> Secondly, if so, what is a reliable indication that auto-save is on
> (or off)?
Variable: buffer-auto-save-file-name
This buffer-local variable is the name of the file used for
auto-saving the current buffer. It is `nil' if the buffer should
not be auto-saved.
--
Johan Bockgård
next parent reply other threads:[~2007-03-30 11:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.1599.1175213615.7795.help-gnu-emacs@gnu.org>
2007-03-30 11:13 ` Johan Bockgård [this message]
2007-03-30 0:10 Reliable indication that auto-saving should not be done Denis Bueno
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=yoijd52roufn.fsf@gamma02.me.chalmers.se \
--to=bojohan+news@dd.chalmers.se \
--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).