From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Emacs inotify support? Date: Thu, 17 Sep 2009 18:12:09 +0300 Organization: JURTA Message-ID: <87iqfhbo6u.fsf@mail.jurta.org> References: <87hbv6gel6.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1253200841 13909 80.91.229.12 (17 Sep 2009 15:20:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Sep 2009 15:20:41 +0000 (UTC) Cc: Paul R , joakim@verona.se, emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 17 17:20:34 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MoImf-0007XJ-Fv for ged-emacs-devel@m.gmane.org; Thu, 17 Sep 2009 17:20:33 +0200 Original-Received: from localhost ([127.0.0.1]:56440 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MoIme-0005ew-RY for ged-emacs-devel@m.gmane.org; Thu, 17 Sep 2009 11:20:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MoImY-0005cc-GS for emacs-devel@gnu.org; Thu, 17 Sep 2009 11:20:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MoImU-0005Xn-A8 for emacs-devel@gnu.org; Thu, 17 Sep 2009 11:20:26 -0400 Original-Received: from [199.232.76.173] (port=50728 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MoImU-0005XY-2i for emacs-devel@gnu.org; Thu, 17 Sep 2009 11:20:22 -0400 Original-Received: from smtp-out1.starman.ee ([85.253.0.3]:33019 helo=mx1.starman.ee) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MoImQ-0005VL-KF; Thu, 17 Sep 2009 11:20:18 -0400 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Original-Received: from mail.starman.ee (82.131.31.47.cable.starman.ee [82.131.31.47]) by mx1.starman.ee (Postfix) with ESMTP id 3C7C83F4145; Thu, 17 Sep 2009 18:20:08 +0300 (EEST) In-Reply-To: (Richard Stallman's message of "Tue, 15 Sep 2009 03:17:03 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:115419 Archived-At: > - trivialy mergeable divergence (f.e. you mark a file that gets touched > externally) : AFAIK, dired already handles this kind of situation > when you press 'g' while working, so it could do so without > interupting the user work. > > Mergeable differences can be more than that. For instance, > if some files appear and others disappear. > > g makes these updates, of course. But you expect them when you type > g. They may surprise you otherwise. > > What happens if the file whose line point is on gets renamed? That > seems like a mergeable difference, but you might be a bit surprised to > see the line move to some other position in the buffer. Most file managers automatically update changed files and that doesn't surprise users. > Ultimately the only way to see how good or bad this feature is is to > try it. But I think that paying a lot of attention to minimizing the > bad aspect is crucial to making the good outweigh the bad. > > - unmergeable divergence (f.e. you initiate a rename operation but in > the meantime the file gets removed) : Dired will have to complain > that source file is missing, the situation would not be worse with > instant reflexion than without. > > Well, it might be worse, because the very line you are editing may > disappear! `auto-revert-mode' takes precautions against this case with the help of `dired-buffer-stale-p' that defines that dired buffers shouldn't be reverted when in editing mode. -- Juri Linkov http://www.jurta.org/emacs/