From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#57536: 28.1; filenotify problems on macOS with symbolic links to directories Date: Sun, 04 Sep 2022 16:26:54 +0200 Message-ID: <87czcbb4gh.fsf@gmx.de> References: <890113EA-44AF-42FB-87AF-130D7AB164AD@easesoftware.com> <83edwuqome.fsf@gnu.org> <87h71nbc2v.fsf@gmx.de> <83mtbfl1z5.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24810"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: pedz@easesoftware.com, 57536@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 04 16:28:10 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 1oUqba-0006I6-D8 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 04 Sep 2022 16:28:10 +0200 Original-Received: from localhost ([::1]:48798 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oUqbZ-0001b1-8F for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 04 Sep 2022 10:28:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39092) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oUqbS-0001as-IM for bug-gnu-emacs@gnu.org; Sun, 04 Sep 2022 10:28:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56675) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oUqbS-000550-9s for bug-gnu-emacs@gnu.org; Sun, 04 Sep 2022 10:28:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oUqbS-0002Wf-0f for bug-gnu-emacs@gnu.org; Sun, 04 Sep 2022 10:28:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Sep 2022 14:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57536 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 57536-submit@debbugs.gnu.org id=B57536.16623016699688 (code B ref 57536); Sun, 04 Sep 2022 14:28:01 +0000 Original-Received: (at 57536) by debbugs.gnu.org; 4 Sep 2022 14:27:49 +0000 Original-Received: from localhost ([127.0.0.1]:45374 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUqbE-0002WC-TD for submit@debbugs.gnu.org; Sun, 04 Sep 2022 10:27:49 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:49367) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUqbA-0002Vq-W8 for 57536@debbugs.gnu.org; Sun, 04 Sep 2022 10:27:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1662301616; bh=GET5GA2zTgIAFqMyXv5UR1tZUFhbcRLVSEmoRu66CH8=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=Z+rV/WUadhtA9aoGTLVPE8FPxaZdnJ00xn408b7QLGET2DX36smfST92SpzcxOjpj wCVDRH+kLHYO6GHk041X4AD1ENqxJ67NJCWjqABCPfYujL3P/2eS0v8V8i/QirBl6Y IJHEzaqVNiVQJ4nD8DLmyMJNZNuJhbXF01ebY+mY= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([213.220.149.173]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Ml6m4-1pDmBA0kWq-00lZKw; Sun, 04 Sep 2022 16:26:56 +0200 In-Reply-To: <83mtbfl1z5.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 04 Sep 2022 16:10:22 +0300") X-Provags-ID: V03:K1:z1Dk88F7VB2w+MMcjpguVvfh1p+3UnQXw5Xu9BeS881p1oLl1Fa SDuC0gz5zxS11vIu+CPGm/YN+RzFxpKAIJu2lJwKManJkmpng1vfjZlR6PJRzFmipwBNgu9 rY4Z2+Pkbp00wJ6gBFefKhq7wYgfbxvPk/dYuu3w2DD28+1iXMiFLA2H56DfvkjfF+L7wJ+ 98JMnxz55GCUi9HYEGWgQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:JexLCenA/pM=:MRGeWLCmLTu58kEQ3tHKuY MM+JReBEqmOu+jrFSo2p8kbw15e7Yyzn9UOBgvKSc5dqV25pgg9h3SfLL58mkj3BidIKD5TBN n5E4LjljU7276zUu8qNhlZXZegPADQOd0yWb82dX7XdYLNNN+m4TCDgFsaQr7QNq5hQR8zfIU N9mpbE1/0a4eUIl3IEIgok/MzXKnyQdNpxl8P5Ppwwl29+D6FmVdwiiS7AK6rGvbXqbNS6AWR nGqfmRodVeL1JmcTeELcfiFSRwjcN1S9P5bEQ6pUUcKHflI0l1BfeX1XANopacPYAmXq3/umY K1i4gujDPJeA3RvsJQK4dGlbeVrn9qyMDwYjYmTkcJGdF1POBXEJY0aUUJRUmqnI7wt+JKuyb G9Nihc094/8a/4F6DX9VoPA9+JtX37/+JNVgFLpdEtadqwxTcBHbXjhL+Tu6i+Mqk0mhC385V IDJ0JugTU5J2/4qP6hpduV+Z3MUFJ9Bs7iItEfnA6EzABqnAB+Qg5xT5X1ecB4anFkrci8iVg JgJERu4spz2OBAsV8r/DSykmuLL9uXWm2ccDPE+0WgCj7iPRRKPBPWBPeYR0KjDMPbi75GYnT lSnDLIXFZXyIoNP2Z7P/hCylRMqGBPUe6uU6yFo7A94u9VMe1dtMoGop1SFVkydlqgiMCmyNe r8s8F0ptN6dLywww0J8FyZ4rilfgON910hkMzVrPHf9Mjjh437M+WF/6mzq9cctICnQ49ASxY zUSVepwzXF7bAZXbtd2dyQoQMK6o/HURbDUAe0cZUlQHa7Cx4ih0jA4l9xITR/vxQj/wzLRf 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:241503 Archived-At: Eli Zaretskii writes: Hi Eli, >> Btw, there are bug#16113 and bug#18883, which report a similar problem >> in auto-reverting. A possible solution could be to extend the FLAGS arg >> of file-notify-add-watch by a condition 'follow', which means to >> supervise the expanded symlink instead of the link file itself. > > I think it would be better to handle that option in Lisp, before we > call the OS-specific notification library. That way, we can control > better what exactly "follow symlinks" means. Of course, that's why I've mentioned file-notify-add-watch. >> inotify knows the mask bit IN_DONT_FOLLOW (which we haven't set yet), >> see inotify(7). Other libraries might offer similar possibilities, which >> I haven't checked yet. > > I see that w32notify.c currently follows symlinks; that will need to > be fixed. Yep. I guess you'll care about w32notify.c. and I'll check inotify.c, kqueue.c and gfilenotify.c? Best regards, Michael.