From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: File watch support in autorevert.el Date: Sat, 12 Jan 2013 20:08:11 +0100 Message-ID: <87ip72rzhg.fsf@gmx.de> References: <878v819kok.fsf@gmx.de> <83fw28uj9c.fsf@gnu.org> <8338y7vkyx.fsf@gnu.org> <87libzn4qt.fsf@gmx.de> <87pq1b2vdf.fsf@gmx.de> <838v7ytzbv.fsf@gnu.org> <87zk0esexv.fsf@gmx.de> <83mwwesajm.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1358017706 22142 80.91.229.3 (12 Jan 2013 19:08:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 12 Jan 2013 19:08:26 +0000 (UTC) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 12 20:08:43 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Tu6Re-0005y4-Ib for ged-emacs-devel@m.gmane.org; Sat, 12 Jan 2013 20:08:42 +0100 Original-Received: from localhost ([::1]:59605 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tu6RO-0006yX-FT for ged-emacs-devel@m.gmane.org; Sat, 12 Jan 2013 14:08:26 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:36693) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tu6RJ-0006xQ-11 for emacs-devel@gnu.org; Sat, 12 Jan 2013 14:08:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tu6RE-0000VS-KP for emacs-devel@gnu.org; Sat, 12 Jan 2013 14:08:20 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:58294) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tu6RE-0000VC-BA for emacs-devel@gnu.org; Sat, 12 Jan 2013 14:08:16 -0500 Original-Received: from mailout-de.gmx.net ([10.1.76.35]) by mrigmx.server.lan (mrigmx002) with ESMTP (Nemesis) id 0LtTy6-1SvV0d2LNE-010tz4 for ; Sat, 12 Jan 2013 20:08:15 +0100 Original-Received: (qmail invoked by alias); 12 Jan 2013 19:08:15 -0000 Original-Received: from p57BB82EE.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.130.238] by mail.gmx.net (mp035) with SMTP; 12 Jan 2013 20:08:15 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX18wEMFeSqAwFGwQ+GtTStPf64xLOJW/X+1Mm0yg3N wpKeYsT/oXEn6b In-Reply-To: <83mwwesajm.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 12 Jan 2013 17:09:17 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.15.19 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:156295 Archived-At: Eli Zaretskii writes: > Tracing what happens when I type "M-x revert-buffer RET yes RET", I > see that the watch is removed (as result of kill-buffer-hook) and then > a new watch is started. Is this intended? No, it's not intended. But the current implementation using kill-buffer-hook leads to this effect. I'll check, whether we could optimize. Best regards, Michael.