From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Emacs inotify support? Date: Fri, 18 Sep 2009 14:10:12 +0200 Organization: Organization?!? Message-ID: <87d45ozc63.fsf@lola.goethe.zz> References: <87hbv6gel6.fsf@gmail.com> <87iqfhbo6u.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1253280266 27700 80.91.229.12 (18 Sep 2009 13:24:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Sep 2009 13:24:26 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 18 15:24:19 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 1ModRh-0001Iw-7O for ged-emacs-devel@m.gmane.org; Fri, 18 Sep 2009 15:24:17 +0200 Original-Received: from localhost ([127.0.0.1]:38688 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ModRg-0007UP-Ed for ged-emacs-devel@m.gmane.org; Fri, 18 Sep 2009 09:24:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MocIY-0003Uz-RD for emacs-devel@gnu.org; Fri, 18 Sep 2009 08:10:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MocIT-0003Th-Ua for emacs-devel@gnu.org; Fri, 18 Sep 2009 08:10:45 -0400 Original-Received: from [199.232.76.173] (port=42238 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MocIT-0003Tc-MZ for emacs-devel@gnu.org; Fri, 18 Sep 2009 08:10:41 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:35379) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MocIT-0000Wh-AR for emacs-devel@gnu.org; Fri, 18 Sep 2009 08:10:41 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1MocIO-0004np-Ey for emacs-devel@gnu.org; Fri, 18 Sep 2009 14:10:36 +0200 Original-Received: from p5b2c1ada.dip.t-dialin.net ([91.44.26.218]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 18 Sep 2009 14:10:36 +0200 Original-Received: from dak by p5b2c1ada.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 18 Sep 2009 14:10:36 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 24 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: p5b2c1ada.dip.t-dialin.net X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) Cancel-Lock: sha1:1nCfhEarLj+KcT7oB6nn0r47x3Y= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:115462 Archived-At: Richard Stallman writes: > > 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. > > The precise details of display format can have a big effect on whether > the update bothers users, and how much. > > Ultimately, the only way to judge whether it bothers users too much > is to try it. But we should POLL THE USERS before enabling it by default. I think that any updates should try to keep the line that point is in under point, preferably at the same window position. In that case editing would not usually be disrupted, just navigation. Any unsaved editing operation in progress can continue as long as the file name identity is not changed (if the file disappears, that would be reason to throw an error and abort pending editing changes on that line). -- David Kastrup