From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#22736: 25.0.91; file-notify calls wrong callbacks Date: Fri, 19 Feb 2016 09:46:55 +0100 Message-ID: <87d1rt5bpc.fsf@gmx.de> References: <877fi1x2k7.fsf@gnu.org> <83a8mxu6fl.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1455871704 30059 80.91.229.3 (19 Feb 2016 08:48:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Feb 2016 08:48:24 +0000 (UTC) Cc: Tassilo Horn , 22736@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 19 09:48:12 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1aWgjT-0001EU-4G for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Feb 2016 09:48:11 +0100 Original-Received: from localhost ([::1]:49962 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWgjS-0006xo-De for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Feb 2016 03:48:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41246) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWgjO-0006w3-17 for bug-gnu-emacs@gnu.org; Fri, 19 Feb 2016 03:48:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aWgjK-0005BQ-RM for bug-gnu-emacs@gnu.org; Fri, 19 Feb 2016 03:48:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36340) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWgjK-0005BL-O1 for bug-gnu-emacs@gnu.org; Fri, 19 Feb 2016 03:48:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aWgjK-00008S-Gc for bug-gnu-emacs@gnu.org; Fri, 19 Feb 2016 03:48:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 19 Feb 2016 08:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22736 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22736-submit@debbugs.gnu.org id=B22736.1455871625438 (code B ref 22736); Fri, 19 Feb 2016 08:48:02 +0000 Original-Received: (at 22736) by debbugs.gnu.org; 19 Feb 2016 08:47:05 +0000 Original-Received: from localhost ([127.0.0.1]:33467 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aWgiP-00006z-Hg for submit@debbugs.gnu.org; Fri, 19 Feb 2016 03:47:05 -0500 Original-Received: from mout.gmx.net ([212.227.17.21]:60287) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aWgiN-00006P-F1 for 22736@debbugs.gnu.org; Fri, 19 Feb 2016 03:47:03 -0500 Original-Received: from detlef.gmx.de ([79.195.30.152]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0MX19U-1aR8Im2WfM-00W0Vi; Fri, 19 Feb 2016 09:46:56 +0100 In-Reply-To: <83a8mxu6fl.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 18 Feb 2016 22:09:18 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-Provags-ID: V03:K0:rmIRJJ4ygQdC6PLXOBjk6wKR0Jbpi5AhuRfN4SVo3S1v8Q3qeKm 5uj2ZsoC/hkgn8omIbwMAaJkctjNcxCIluIc+wBOelGrkenDRsA4r3rIYIOns0U0KViFGtK j69HiaX+uA/WCw7XLOxic7XyVMRebhwJhl9gqN1O5KwXbLeJEQK+rP1qj7nOuu/GRah9l+Y bLtTJwYs/X5OIeDh3Ud4g== X-UI-Out-Filterresults: notjunk:1;V01:K0:vAhZzQC9u5M=:V/gOvGT5ICT5ok/ausFct4 gSApynvL5l8RiyVmUiyGF0aj0DjAvIoZkIdKnqcvU9jnujWkIoFU5l0BxddAagk5KgL8mqkoV mXlyO4/qjtLbUR1XP0X2VaKzB3flru8XaeY9dpJ3gU/T38jmamrrWMg2npGd1zhIAVHB0zNG1 YNJ3NTlEU1voLsZm9cUxhU+RKKVKQY/rOOuKeWIbsLd5ON0JkIaHlyzBRbKz8MdEzI7oLKCcz uaxVXAvnDbDYYQip3/mRxFrEavFus570RG4hwpejD35+nNrdRkgDCqXsmRBAKbQ1LYLFWV0KZ 1ONrN/8SSrYxk7nr7rtQ+Avqtbu2h8/3k4PeqFK7lEM1k5wdjlNXwKR/PEUsMXQTAiMiasD70 Ne98W3tG4VD+EYJ1GGcNPm8BmmHwSlTAyR0xQpTVQrtoAzod1rYKlQ0I6F1NiGaQr6ycal8qm 0Vk8mZ1oJZJKdI7qy4Qj8eBnznlTMMYo9uuuos45s2u/CprSq59mk7frrU4v408UaalO9Y7pl VJVCTo52g0P1p9oNBDajqy6ep9xy0FzPaMNSzYNyYPiAaigaGIhZeqEdaLoFvdDZJisjMkN4S P6WixXJ/hTU5nI6uKYCMi/e8K8oD9Es0s8ouN2AGHXWiw9+wQEc3iOcYLfuvWvEWFk/dyHFb3 whBkysjCdY3ANaucKE9mUrZNxBUOsjbtFJtk0eFTPGOEAJKHqb995ngu1JujlhsRg3aXeKkY+ hLG0QsD56t+/394xI2dk1tHzyCBOaYDRCJqn8xfOhZJXFp8PlALxhYC8IYVs+S7whRMAKynf X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:113277 Archived-At: Eli Zaretskii writes: >> The problem is that when there is a directory watch on some directory >> and a file watch on a file in that directory, the callback for the >> directory watch gets an event with the descriptor of the file watch. > > I think this is because when you ask to watch a file, we actually > watch its parent directory. Although we watch the parent directory internally (except with kqueue), the given scenario by Tassilo shall work as he expected. There shall be two file notification events in the given case, calling magit-filenotify--callback and auto-revert-notify-handler with the respective descriptor. I'll check. Tassilo, would you be willing to write an ert test case for the problem? Best regards, Michael.