From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: make pred customable in auto-save-visited-mode Date: Sun, 01 Apr 2018 20:35:02 +0300 Message-ID: <83d0zi7ruh.fsf@gnu.org> References: <83a7uo8wk5.fsf@gnu.org> <83605c8qwr.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1522604022 18250 195.159.176.226 (1 Apr 2018 17:33:42 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 1 Apr 2018 17:33:42 +0000 (UTC) Cc: jixiuf@qq.com, emacs-devel@gnu.org To: Philipp Stephani Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 01 19:33:37 2018 Return-path: Envelope-to: ged-emacs-devel@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 1f2grH-0004aQ-9i for ged-emacs-devel@m.gmane.org; Sun, 01 Apr 2018 19:33:35 +0200 Original-Received: from localhost ([::1]:50433 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f2gtK-0006Op-LZ for ged-emacs-devel@m.gmane.org; Sun, 01 Apr 2018 13:35:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38766) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f2gsh-0006O8-Q9 for emacs-devel@gnu.org; Sun, 01 Apr 2018 13:35:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f2gsd-000798-A5 for emacs-devel@gnu.org; Sun, 01 Apr 2018 13:35:03 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50804) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f2gsd-00078s-6m; Sun, 01 Apr 2018 13:34:59 -0400 Original-Received: from [176.228.60.248] (port=2534 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1f2gsc-0002wA-KK; Sun, 01 Apr 2018 13:34:59 -0400 In-reply-to: (message from Philipp Stephani on Sun, 01 Apr 2018 17:19:38 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:224224 Archived-At: > From: Philipp Stephani > Date: Sun, 01 Apr 2018 17:19:38 +0000 > Cc: jixiuf@qq.com, emacs-devel@gnu.org > > > Probably the second option is better because the first option would prevent PRED from running for > > non-file-visiting buffers. Patch attached. > > AFAIU, this will unconditionally disable auto-saving in *ediff-merge* > and all the similar buffers, when auto-save-visited-mode is turned > on. Is that what we want? And if that's going to be the default, how > are users supposed to override it if they want? > > I think not prompting is the right approach. It's not very user-friendly to interrupt the user every couple of > seconds, and no other application I know that has autosave prompts the user for filenames. I think we should > change the behavior by applying the patch; if some users do want to be interrupted, we can still add a > customization option later. AFAIU, you are not disabling the prompt, you are disabling the auto-saving itself for such buffers. I'm asking if that is what we want -- disable auto-saving for buffers like *ediff-merge* when auto-save-visited-mode is turned on.