unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Denis Bueno" <dbueno@gmail.com>
To: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Reliable indication that auto-saving should not be done
Date: Thu, 29 Mar 2007 20:10:47 -0400	[thread overview]
Message-ID: <6dbd4d000703291710q237ede80n81a155ddb1b621f8@mail.gmail.com> (raw)

All-

I wrote a pretty simple function that saves the current buffer to a
file in a local darcs repo and records its changes. I wanted versioned
records of changes I make to the files I edit.

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? Secondly, if so, what is a reliable indication
that auto-save is on (or off)?

(In particular when I open encrypted files using crypt++.el, it sends
a message to the minibuffer, saying "Auto save off (in this buffer)"
and my hook is run just the same.)

Thanks in advance.

-Denis

             reply	other threads:[~2007-03-30  0:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-30  0:10 Denis Bueno [this message]
     [not found] <mailman.1599.1175213615.7795.help-gnu-emacs@gnu.org>
2007-03-30 11:13 ` Reliable indication that auto-saving should not be done Johan Bockgård

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=6dbd4d000703291710q237ede80n81a155ddb1b621f8@mail.gmail.com \
    --to=dbueno@gmail.com \
    --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).