From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#25478: 26.0.50; No hooks are called when auto-saving Date: Thu, 19 Jan 2017 15:29:04 -0500 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1484857830 5562 195.159.176.226 (19 Jan 2017 20:30:30 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 19 Jan 2017 20:30:30 +0000 (UTC) User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) Cc: 25478@debbugs.gnu.org To: Philipp Stephani Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 19 21:30:25 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cUJLZ-0008Hz-Tm for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Jan 2017 21:30:14 +0100 Original-Received: from localhost ([::1]:50806 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cUJLb-0007JK-8m for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Jan 2017 15:30:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54945) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cUJLR-0007FG-26 for bug-gnu-emacs@gnu.org; Thu, 19 Jan 2017 15:30:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cUJLQ-0005Lo-9q for bug-gnu-emacs@gnu.org; Thu, 19 Jan 2017 15:30:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37589) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cUJLQ-0005LF-6A for bug-gnu-emacs@gnu.org; Thu, 19 Jan 2017 15:30:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cUJLP-0007pN-J5 for bug-gnu-emacs@gnu.org; Thu, 19 Jan 2017 15:30:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 Jan 2017 20:30:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25478 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25478-submit@debbugs.gnu.org id=B25478.148485775730010 (code B ref 25478); Thu, 19 Jan 2017 20:30:03 +0000 Original-Received: (at 25478) by debbugs.gnu.org; 19 Jan 2017 20:29:17 +0000 Original-Received: from localhost ([127.0.0.1]:35788 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cUJKe-0007ny-QI for submit@debbugs.gnu.org; Thu, 19 Jan 2017 15:29:16 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:35605) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cUJKd-0007ne-UJ for 25478@debbugs.gnu.org; Thu, 19 Jan 2017 15:29:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cUJKX-00052b-Mf for 25478@debbugs.gnu.org; Thu, 19 Jan 2017 15:29:10 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:47449) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cUJKT-00050P-Vz; Thu, 19 Jan 2017 15:29:06 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1cUJKS-00040a-BN; Thu, 19 Jan 2017 15:29:04 -0500 X-Spook: [Hello to all my friends and fans in domestic X-Ran: fxPO`HO}OgNcYH}!v/tTH`vv5^26E~r[;sf%~`-M6(ezIa7CBBm*M!.f. (Philipp Stephani's message of "Wed, 18 Jan 2017 22:39:13 +0100") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:128251 Archived-At: 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.