From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#25478: 26.0.50; No hooks are called when auto-saving Date: Sun, 26 Mar 2017 21:45:59 +0300 Message-ID: <83wpbb98rc.fsf@gnu.org> References: <837f5q6rxq.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1490554040 16455 195.159.176.226 (26 Mar 2017 18:47:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 26 Mar 2017 18:47:20 +0000 (UTC) Cc: 25478@debbugs.gnu.org To: Philipp Stephani Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Mar 26 20:47:16 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 1csDC4-0003H5-JS for geb-bug-gnu-emacs@m.gmane.org; Sun, 26 Mar 2017 20:47:12 +0200 Original-Received: from localhost ([::1]:41923 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1csDC7-0006t1-H6 for geb-bug-gnu-emacs@m.gmane.org; Sun, 26 Mar 2017 14:47:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42069) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1csDBy-0006sF-RP for bug-gnu-emacs@gnu.org; Sun, 26 Mar 2017 14:47:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1csDBu-0002Yy-UI for bug-gnu-emacs@gnu.org; Sun, 26 Mar 2017 14:47:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47967) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1csDBu-0002Yr-QX for bug-gnu-emacs@gnu.org; Sun, 26 Mar 2017 14:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1csDBu-00055K-HL for bug-gnu-emacs@gnu.org; Sun, 26 Mar 2017 14:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 26 Mar 2017 18:47:02 +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.149055397219451 (code B ref 25478); Sun, 26 Mar 2017 18:47:02 +0000 Original-Received: (at 25478) by debbugs.gnu.org; 26 Mar 2017 18:46:12 +0000 Original-Received: from localhost ([127.0.0.1]:46166 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1csDB5-00053c-MQ for submit@debbugs.gnu.org; Sun, 26 Mar 2017 14:46:11 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50793) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1csDB4-00053O-WB for 25478@debbugs.gnu.org; Sun, 26 Mar 2017 14:46:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1csDAv-0001xt-E8 for 25478@debbugs.gnu.org; Sun, 26 Mar 2017 14:46:05 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42212) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1csDAv-0001xo-9Z; Sun, 26 Mar 2017 14:46:01 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3020 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1csDAu-0007Rw-B1; Sun, 26 Mar 2017 14:46:00 -0400 In-reply-to: (message from Philipp Stephani on Sun, 26 Mar 2017 18:21:01 +0000) 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:130987 Archived-At: > From: Philipp Stephani > Date: Sun, 26 Mar 2017 18:21:01 +0000 > Cc: 25478@debbugs.gnu.org > > All in all, I think this option is subtly dangerous and should be > either deprecated or completely reimplemented to invoke > basic-save-buffer instead. I'm quite sure this option made sense in > the past, when complications with encoding and save-related hooks > didn't exist, but that is no longer the case in Emacs these days. > If someone thinks using this option will allow them not to bother with > saving their edits, they are in for an unpleasant surprise. > > That's quite unfortunate, as not having to bother with saving edits manually is a very desirable feature that I > think Emacs should offer out of the box. > > If you really want to deprecate auto-save-visited-file-name, how about adding a simple global minor mode that > invokes save-some-buffers from an idle timer to files.el? As I wrote, I'm also okay with Someoneā„¢ volunteering to reimplement this option such that it invokes basic-save-buffer instead. A minor mode that you describe would also be fine, but then it should probably disable auto-saving if auto-save-visited-file-name is set, right?