From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#57536: 28.1; filenotify problems on macOS with symbolic links to directories Date: Sat, 17 Sep 2022 18:37:29 +0300 Message-ID: <83edwa107a.fsf@gnu.org> References: <890113EA-44AF-42FB-87AF-130D7AB164AD@easesoftware.com> <83edwuqome.fsf@gnu.org> <87h71nbc2v.fsf@gmx.de> <83mtbfl1z5.fsf@gnu.org> <87czcbb4gh.fsf@gmx.de> <83leqzkxdi.fsf@gnu.org> <87v8pmw2pa.fsf@gmx.de> <83k062150s.fsf@gnu.org> <87k062oww7.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37016"; mail-complaints-to="usenet@ciao.gmane.io" Cc: pedz@easesoftware.com, 57536-done@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 17 17:38:38 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oZZtt-0009V7-5l for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 17 Sep 2022 17:38:37 +0200 Original-Received: from localhost ([::1]:45090 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oZZts-0006GK-4P for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 17 Sep 2022 11:38:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39976) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZZtK-0005T6-SM for bug-gnu-emacs@gnu.org; Sat, 17 Sep 2022 11:38:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47900) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oZZtK-0003NH-9G for bug-gnu-emacs@gnu.org; Sat, 17 Sep 2022 11:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oZZtJ-0002UT-V3 for bug-gnu-emacs@gnu.org; Sat, 17 Sep 2022 11:38:01 -0400 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Sep 2022 15:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 57536 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Mail-Followup-To: 57536@debbugs.gnu.org, eliz@gnu.org, pedz@easesoftware.com Original-Received: via spool by 57536-done@debbugs.gnu.org id=D57536.16634290639543 (code D ref 57536); Sat, 17 Sep 2022 15:38:01 +0000 Original-Received: (at 57536-done) by debbugs.gnu.org; 17 Sep 2022 15:37:43 +0000 Original-Received: from localhost ([127.0.0.1]:46977 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZZt1-0002Tr-H2 for submit@debbugs.gnu.org; Sat, 17 Sep 2022 11:37:43 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:57350) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZZsw-0002Tb-QT for 57536-done@debbugs.gnu.org; Sat, 17 Sep 2022 11:37:41 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40838) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZZsr-0003LR-BD; Sat, 17 Sep 2022 11:37:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=b5bmtuARwzWpakUVLNcFaXLUwm4ECd9yC9L+gpdvhuY=; b=sAR8zpBTNSQww/qs5LOw BQZL5Ej6MoFW4SR2lGl7ubuBgoAgWvkDvthP96PJMKaVVMLHPbXthC7lOHyHpfHuyhs6+rBuEAUPf onKo/UMvmbSdj+U3ZKDXKZm4/exH2OauVTLNtBBXAh0NVn7fcWhvTfZyfbuFuGtF4qK0cd4U7qvCJ 0Kld1XQpPMyXqkVht4LOcyYXp74UmnNfvV+YZ4NtNas9uCaDa0yIjINpEG5Y8IBYSqBNy0/4eXf5K LSKQSPAsEkmTLjbbawaPxHx8NUcYSvbMoGsPjJerAvYeo/nYK2qLYoHt/a9ornvO4H/D/pVwbOkk3 KHCIcrcRufY1+w==; Original-Received: from [87.69.77.57] (port=3124 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZZsp-00005H-Jw; Sat, 17 Sep 2022 11:37:32 -0400 In-Reply-To: <87k062oww7.fsf@gmx.de> (message from Michael Albinus on Sat, 17 Sep 2022 17:15:04 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:242880 Archived-At: > From: Michael Albinus > Cc: pedz@easesoftware.com, 57536@debbugs.gnu.org > Date: Sat, 17 Sep 2022 17:15:04 +0200 > > > I'd start by documenting that we no longer follow symlinks when > > watching: that's a kind-of incompatible change. Then I'd go by > > complaints, if any. > > I've extended already the doc yesterday, see (info "(elisp) File Notifications") > > --8<---------------cut here---------------start------------->8--- > If FILE is a symlink, it doesn’t follow that link. Just FILE > itself will be watched. > --8<---------------cut here---------------end--------------->8--- > > And it isn't a visible incompatibility. Yes, inotify and w32notify did > follow the link, and they have raised events for the link target. But in > file-notify-handle-event this event must be adapted in order to keep the > unified action names we have introduced in filenotify.el. And the event > will be propagated only in case the full file name in that event is > supervised via file-notify-add-watch. This didn't happen for the > followed file names (the symlink targets), such events weren't > propagated, and the effect for the users was the same as when inotify > and w32notify didn't follow the link (as we have now). So I believe we > have nothing to explain but just the clarification I have done > yesterday. Yes, you are right. > >From my pov, this bug can be closed. The problem with kqueue I will work > on once I have a new FreeBSD VM. Fine by me, closing. Thanks.