From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Perry Smith Newsgroups: gmane.emacs.bugs Subject: bug#57536: 28.1; filenotify problems on macOS with symbolic links to directories Date: Thu, 1 Sep 2022 18:34:39 -0500 Message-ID: <890113EA-44AF-42FB-87AF-130D7AB164AD@easesoftware.com> Reply-To: Perry Smith Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Content-Type: multipart/signed; boundary="Apple-Mail=_9017D980-8EC2-4463-BA38-85A62609F67B"; protocol="application/pgp-signature"; micalg=pgp-sha256 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37564"; mail-complaints-to="usenet@ciao.gmane.io" To: 57536@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 02 01:36:14 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 1oTtjI-0009ZW-OJ for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 02 Sep 2022 01:36:13 +0200 Original-Received: from localhost ([::1]:57246 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oTtjH-0002Uy-Oi for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 01 Sep 2022 19:36:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57446) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTtj8-0002Te-TH for bug-gnu-emacs@gnu.org; Thu, 01 Sep 2022 19:36:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54640) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oTtj8-0004DX-Jj for bug-gnu-emacs@gnu.org; Thu, 01 Sep 2022 19:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oTtj8-0004ka-Cm for bug-gnu-emacs@gnu.org; Thu, 01 Sep 2022 19:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Perry Smith Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 01 Sep 2022 23:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57536 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.166207535318244 (code B ref -1); Thu, 01 Sep 2022 23:36:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Sep 2022 23:35:53 +0000 Original-Received: from localhost ([127.0.0.1]:44389 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTtiy-0004kC-V7 for submit@debbugs.gnu.org; Thu, 01 Sep 2022 19:35:53 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:55204) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTtiw-0004k1-6a for submit@debbugs.gnu.org; Thu, 01 Sep 2022 19:35:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45878) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTtiw-0002Ob-14 for bug-gnu-emacs@gnu.org; Thu, 01 Sep 2022 19:35:50 -0400 Original-Received: from aye.elm.relay.mailchannels.net ([23.83.212.6]:54136) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTtiY-0003hC-JO for bug-gnu-emacs@gnu.org; Thu, 01 Sep 2022 19:35:49 -0400 X-Sender-Id: a2hosting|x-authuser|pedz+easesoftware.com@mi3-ss4.a2hosting.com Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 2522C1220AC for ; Thu, 1 Sep 2022 23:34:42 +0000 (UTC) Original-Received: from mi3-ss4.a2hosting.com (unknown [127.0.0.6]) (Authenticated sender: a2hosting) by relay.mailchannels.net (Postfix) with ESMTPA id 77BD6122039 for ; Thu, 1 Sep 2022 23:34:41 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1662075281; a=rsa-sha256; cv=none; b=62FXPKYGwizXOQECF69RbDCCE2O+BkLc3kFT9MDSDWjYQlptqfZJUaMt0tVjcxOK6DBSYs HoiMJUrds3SRJQaSyTlUbRedQCQ5vEzaPQWtXQ1gzMt9jXrSy9zX/AMW5Uh7L6cxywGkaF 5N8fpJ/HtqiN9yirTkyq2BAHPn/z8RZzX1/puPEqassUiRjdJ4XDG3sEfuLfCoRcboJPkc LQB8cXWL2U2SXUuZZo100vP62ZVXT8+DQVFgtTVG5R11cLqbMqp4fGiKC0DA8KDN+UxrmW m2yvFj2yTaFSadp7TqxxLqm9CaCNAQ/dCEta17S7zLDskQ+eS+zlj651j+4Wpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1662075281; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:dkim-signature; bh=qM1ZptJIUzRdIl1RJpORZkdyrTCXwzQiYLpn6FMSHL4=; b=MUp/o/TtaXz+SokyYlsXv9cT+WH/WdGk0/xzuXoh6rO83Axaz5aW0sGlwcsOLwWj8xzSwT ycpH0PHHV2sSGuOPzoeZ5CMew4NgWP3bFmRr01H2v5hTwURMmKv0DoMOIFsO8K2/nzRPfv cZsAQk19fVnwricxrANY+CSHyFPjvce+LADiogaX0gSUO/L3lQ+jGMjSWaoR69hDAdgdCJ nVjt5Lv5sRJZhMcRwsGBLIXVVZDr0zfKyWU4cZ3fdvsNAguew2OqOqAI1cLTdHBh+kzfsw 7yWoqmaF4C1jJouZAnbsK8luB6ZgqyYLdBICbpRaL3RewWrievQ3bixxUyabGQ== ARC-Authentication-Results: i=1; rspamd-64cc6f7466-89dtr; auth=pass smtp.auth=a2hosting smtp.mailfrom=pedz@easesoftware.com X-Sender-Id: a2hosting|x-authuser|pedz+easesoftware.com@mi3-ss4.a2hosting.com X-MC-Relay: Neutral X-MailChannels-SenderId: a2hosting|x-authuser|pedz+easesoftware.com@mi3-ss4.a2hosting.com X-MailChannels-Auth-Id: a2hosting X-Plucky-Soft: 7e4d379a4383f32d_1662075281900_1406983035 X-MC-Loop-Signature: 1662075281900:1008533702 X-MC-Ingress-Time: 1662075281899 Original-Received: from mi3-ss4.a2hosting.com (mi3-ss4.a2hosting.com [68.66.200.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.126.240.197 (trex/6.7.1); Thu, 01 Sep 2022 23:34:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=easesoftware.com; s=default; h=To:Date:Message-Id:Subject:Mime-Version: Reply-To:Content-Type:From:Sender:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=qM1ZptJIUzRdIl1RJpORZkdyrTCXwzQiYLpn6FMSHL4=; b=NqrTxTBKrCs0rjCuGZlKxoMqW2 WF1top49GDsfSUHdJRnahvQRl0++Qx5pUKrGXiKiySksorwbFNG7A8ugO5bEB3zeit0PN8opuHiPM 1z+fajnjB2JPPqnLGeBowLYCXQLHPG+IPS7PE4KhyL3PSN+vefXfurwZU2BYY6W4lVMZPhhswas6T zqGFlQc+Wyk35bSNbcPYtrxaP1QGcKHzdmObeJ6wJohkOD1pcMF/nFrKxuwwr0S2POWIqzmmFXj8k ULpxcqR8fgn3o3Em6rTru/3RXVybvxkzbjbAB4fZ3HNu5/hvmVksDMf9mSVVgpANX4EzRgbABPvvX WYBWvFfA==; Original-Received: from cpe-70-94-128-193.satx.res.rr.com ([70.94.128.193]:52711 helo=smtpclient.apple) by mi3-ss4.a2hosting.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1oTtho-0001aQ-3C for bug-gnu-emacs@gnu.org; Thu, 01 Sep 2022 19:34:40 -0400 X-Mailer: Apple Mail (2.3696.120.41.1.1) X-AuthUser: pedz+easesoftware.com@mi3-ss4.a2hosting.com Received-SPF: pass client-ip=23.83.212.6; envelope-from=pedz@easesoftware.com; helo=aye.elm.relay.mailchannels.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:241279 Archived-At: --Apple-Mail=_9017D980-8EC2-4463-BA38-85A62609F67B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Referencing these commands: ; 1 (require 'filenotify) ; 2 (defun my-callback (directory) (message (format "called %s" directory))) ; 3 (file-notify-add-watch "/private/tmp" '(change attribute-change) = 'my-callback) ; 4 (file-notify-add-watch "/tmp" '(change attribute-change) 'my-callback) Starting with a fresh emacs -Q, if I execute lines 1, 2, and 3 and then touch a file such as /tmp/OUT, I get the notification as I should. However if I start fresh, execute lines 1, 2, and 4, and touch /tmp/OUT, I do not get a notification. On a Mac, /tmp is a symbolic link to private/tmp (relative path). I first discovered this issue using Helm's find-file and I entered a report with Helm. The Helm developer reports that it works in his case with Linux. I'm using a new M1 Mac, macOS 12.5.1 and using the newish AFS. I built this emacs myself so it might be pilot error with my build but that seems less likely since file notify does generally work but not when the watched file is a symbolic link to a directory. Also, this is not /tmp =3D> private/tmp specific. I can recreate the = same issue using ~/Desktop/Dog/tmp and a symbolic link ~/Desktop/tmp that has a relative path of Dog/tmp and I get the same issue. In GNU Emacs 28.1 (build 1, aarch64-apple-darwin21.4.0, NS = appkit-2113.40 Version 12.3.1 (Build 21E258)) of 2022-04-04 built on Peace.lan Repository revision: bffd375b378025c8f5fd947fdac8ed710cb980d7 Repository branch: master Windowing system distributor 'Apple', version 10.3.2113 System Description: macOS 12.5.1 Configured features: ACL GNUTLS LCMS2 LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER PNG THREADS TOOLKIT_SCROLL_BARS ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: ELisp/d Minor modes in effect: global-git-commit-mode: t magit-auto-revert-mode: t global-rbenv-mode: t recentf-mode: t display-time-mode: t helm-mode: t helm-minibuffer-history-mode: t shell-dirtrack-mode: t helm--remap-mouse-mode: t async-bytecomp-package-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: /Users/pedz/.config/emacs/el-get/lua-mode/init-tryout hides = /Users/pedz/.config/emacs/el-get/ample-regexps/init-tryout /Users/pedz/.config/emacs/el-get/transient/lisp/transient hides = /Applications/Emacs.app/Contents/Resources/lisp/transient Features: (cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs debug shadow sort mail-extr warnings emacsbug sendmail cus-start cus-load sh-script executable markdown-mode color make-mode apropos yari ebuff-menu tabify man vc-mtn vc-hg vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs vc bug-reference face-remap magit-bookmark git-rebase magit-extras magit-sparse-checkout magit-gitignore magit-ediff ediff ediff-merg ediff-mult ediff-wind ediff-diff ediff-help ediff-init ediff-util magit-subtree magit-patch magit-submodule magit-obsolete magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log which-func imenu magit-diff smerge-mode diff git-commit log-edit pcvs-util add-log magit-core magit-autorevert autorevert magit-margin magit-transient magit-process with-editor server magit-mode transient magit-git magit-base magit-section crm dash rbenv ruby-mode smie rect find-dired grep compile shortdoc misearch multi-isearch recentf tree-widget helm-x-files helm-for-files helm-bookmark helm-adaptive org-duration org-clock org-element avl-tree generator ol-eww eww xdg url-queue mm-url ol-rmail ol-mhe ol-irc ol-info ol-gnus nnselect gnus-search eieio-opt speedbar ezimage dframe gnus-art mm-uu mml2015 mm-view mml-smime smime dig gnus-sum shr kinsoku svg dom gnus-group gnus-undo gnus-start gnus-dbus gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo gnus-spec gnus-int gnus-range message rmc puny rfc822 mml mml-sec epa derived epg rfc6068 epg-config mm-decode mm-bodies mm-encode mailabbrev gmm-utils mailheader gnus-win gnus nnheader gnus-util rmail rmail-loaddefs mail-utils wid-edit ol-docview doc-view jka-compr ol-bibtex ol-bbdb ol-w3m ol-doi org-link-doi org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-src ob-comint org-pcomplete org-list org-faces org-entities noutline outline org-version ob-emacs-lisp ob-core ob-eval org-table oc-basic bibtex ol rx org-keys oc org-compat advice org-macs org-loaddefs cal-menu calendar cal-loaddefs cl-print help-fns dired-aux image-file image-converter helm-external helm-net ffap vc-git diff-mode vc-dispatcher flyspell ispell bookmark text-property-search winner thingatpt tramp-archive tramp-gvfs dbus xml helm-command helm-elisp helm-eval edebug backtrace find-func helm-info info helm-setup pedz resize ruby-setup time el-get-setup helm-mode helm-misc helm-files image-dired image-mode exif filenotify tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat shell pcomplete comint ring parse-time iso8601 time-date ls-lisp helm-buffers helm-occur helm-tags helm-locate helm-grep helm-regexp format-spec ansi-color helm-utils helm-help helm-types helm helm-global-bindings helm-easymenu helm-core easy-mmode edmacro kmacro async-bytecomp helm-source helm-multi-match helm-lib async helm-config helm-autoloads el-get el-get-autoloading el-get-list-packages el-get-dependencies el-get-build el-get-status pp el-get-methods el-get-fossil el-get-svn el-get-pacman el-get-github-zip el-get-github-tar el-get-http-zip el-get-http-tar el-get-hg el-get-go el-get-git-svn el-get-fink el-get-emacswiki el-get-http el-get-notify el-get-emacsmirror el-get-github el-get-git el-get-elpa package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap url-handlers url-parse auth-source eieio eieio-core cl-macs eieio-loaddefs password-cache json map url-vars el-get-darcs el-get-cvs el-get-bzr el-get-brew el-get-builtin el-get-apt-get el-get-recipes el-get-byte-compile subr-x el-get-custom cl-extra help-mode seq byte-opt gv cl-seq el-get-core autoload radix-tree lisp-mnt mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr bytecomp byte-compile cconv dired dired-loaddefs cl-loaddefs cl-lib iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads kqueue cocoa ns lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 792904 71749) (symbols 48 42889 12) (strings 32 204756 30906) (string-bytes 1 7937607) (vectors 16 88687) (vector-slots 8 1724598 211160) (floats 8 529 451) (intervals 56 79268 873) (buffers 992 91)) --Apple-Mail=_9017D980-8EC2-4463-BA38-85A62609F67B Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE5yOa/gCtQpb3oCpljxzk9yzE+MAFAmMRQY8ACgkQjxzk9yzE +MC7KQ//d0lIdyVAelNL8RrPsELso91whE8tIG9mL/pWopsTRofxjG/hMHV50D4D Kf2QUt+L7VB3LVhFl3ZYZwOi3wb562QUkBgKCLdxVe/CrLpnGh6zLj2ra0Gh6+bG +wCanF+eqP4sA5WWuH1Vy6MlXaVrjWDglF+22tlUzd9CFExrGG+kLYrTlnz5xdis HoHW37Q5AaDSuHdcwFN6R28SufUKsN5IL9HZM6682nVZIiwJ3W0Z1KFdKFl2UySd UQguaLdWYCPy0hUJk/9DlC+nqSQCykDZ+3w7br1oTetfCAZlko4A1tEDeeXXAC5e ec4/ieK3lmiNjspct5K1ZeAJFilGB/q1CosoH4lkx1JBnL2NKbwgAk8n+EacEsxT AcEdrAf8fLJ/y33MGYEe/QtBow6bWgenz8Glh/ncZLMxA+a6ZNarAKgYood8Qf4n tS3zKalbpYPe3voWMMtPNawZpIsDYY/dpYaTqUfxQbf40ylUGa8zMAojjD3cHuFQ Xjjjx4HSbWXT3Q7varuizDRlj8Ay9r80IYtSGKaMYv4kFQftgfLEe5GSLdhWEdK3 duUZBikN3bICT391dPJ6Pd8ddvA8+gLoYyKHDfLhzeaMe7DX1itSABOJK7E6YkTf DXJ3mhnEj+OhmSSwiAyBX3dE5+wTcMdEwjRGfSpkIKaQ0v7Qu3s= =GYC5 -----END PGP SIGNATURE----- --Apple-Mail=_9017D980-8EC2-4463-BA38-85A62609F67B--