all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

* 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.
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.