From: Glenn Morris <rgm@gnu.org>
To: Philipp Stephani <p.stephani2@gmail.com>
Cc: 25478@debbugs.gnu.org
Subject: bug#25478: 26.0.50; No hooks are called when auto-saving
Date: Thu, 19 Jan 2017 15:29:04 -0500 [thread overview]
Message-ID: <o260laoktr.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <wvr4inpcdp4u.fsf@gmail.com> (Philipp Stephani's message of "Wed, 18 Jan 2017 22:39:13 +0100")
Philipp Stephani wrote:
> The Emacs manual states:
>
> "If you want auto-saving to be done in the visited file rather than in
> a separate auto-save file, set the variable
> 'auto-save-visited-file-name' to a non-'nil' value. In this mode, there
> is no real difference between auto-saving and explicit saving."
>
> However, there is a significant difference between auto-saving and
> explicit saving, even in this mode: auto-saving doesn't run
> before-save-hook, after-save-hook, write-contents-functions, or
> write-file-functions. Either some of these hooks should be run during
> auto-saving if auto-save-visited-file-name is t, or new hooks should be
> created to run in this case.
The phrasing of the manual can easily be changed if it's creating
unreasonable expectations.
Do you have a use case for autosave running hooks?
One could argue that it is a low-level
operation that should not be modifiable in this way.
next prev parent reply other threads:[~2017-01-19 20:29 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-18 21:39 bug#25478: 26.0.50; No hooks are called when auto-saving Philipp Stephani
2017-01-19 20:29 ` Glenn Morris [this message]
2017-01-20 8:45 ` Eli Zaretskii
2017-01-20 17:42 ` Glenn Morris
2017-03-26 18:21 ` Philipp Stephani
2017-03-26 18:45 ` Eli Zaretskii
2017-03-26 19:17 ` Philipp Stephani
2017-04-22 19:01 ` Philipp Stephani
2017-04-28 9:27 ` Eli Zaretskii
2017-04-29 18:47 ` Philipp Stephani
2017-04-29 18:49 ` bug#25478: [PATCH] Reimplement auto-saving to visited files Philipp Stephani
[not found] ` <20170429184909.40204-1-phst@google.com>
2017-04-29 19:20 ` Eli Zaretskii
2017-04-29 19:31 ` Philipp Stephani
[not found] ` <CAArVCkR-BeJDgC5tu0PfN-63PRB5UN9Yid-UbuVdT-CpafVeAg@mail.gmail.com>
2020-08-11 8:08 ` Stefan Kangas
2020-10-01 12:11 ` Stefan Kangas
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=o260laoktr.fsf@fencepost.gnu.org \
--to=rgm@gnu.org \
--cc=25478@debbugs.gnu.org \
--cc=p.stephani2@gmail.com \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).