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: Emacs does not detect a buffered file got deleted Date: Mon, 08 Aug 2016 17:55:16 +0300 Message-ID: <83twevia3v.fsf@gnu.org> References: 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 1470668205 11961 195.159.176.226 (8 Aug 2016 14:56:45 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 8 Aug 2016 14:56:45 +0000 (UTC) Cc: schwab@suse.de, emacs-devel@gnu.org To: =?utf-8?B?6Lev5a6i?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 08 16:56:42 2016 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 1bWlyJ-0001rx-QB for ged-emacs-devel@m.gmane.org; Mon, 08 Aug 2016 16:56:07 +0200 Original-Received: from localhost ([::1]:57926 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWlyG-0000Mt-Lt for ged-emacs-devel@m.gmane.org; Mon, 08 Aug 2016 10:56:04 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36128) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWly6-0000Kv-7d for emacs-devel@gnu.org; Mon, 08 Aug 2016 10:55:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bWly2-0006sN-3r for emacs-devel@gnu.org; Mon, 08 Aug 2016 10:55:53 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:33925) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWly1-0006ri-UL; Mon, 08 Aug 2016 10:55:50 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4552 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bWlxx-0001nx-SI; Mon, 08 Aug 2016 10:55:48 -0400 In-reply-to: (message from =?utf-8?B?6Lev5a6i?= on Mon, 8 Aug 2016 16:55:55 +0800) 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:206485 Archived-At: > From: 路客 > Date: Mon, 8 Aug 2016 16:55:55 +0800 > Cc: Emacs developers > > Yes, I understood that. My intention is to notify the user about the deletion but not > really want to revert the file. Emacs provide other options other than reverting. A > "revert" here might mean "close this buffer". However,this might need further > modification to notify the user about the deletion instead of the normal modification > notification. Using the original `ask-user-about-supersession-threat' might be a bit > confusing if file is deleted. What do you think? Emacs doesn't do anything like that anywhere else, AFAIK. Not even auto-revert mode does something like that for deleted files. I'm not sure I see good reasons to do anything in this particular case. Let me turn the table and ask you what kind of trouble you saw with buffers whose files were deleted by Git (or any other VCS)? Why would you like Emacs to do something special in this case? An extra buffer is a non-issue in Emacs. Thanks.