From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alejandro =?UTF-8?Q?P=C3=A9rez?= Carballo Newsgroups: gmane.emacs.bugs Subject: bug#58964: 28.2; `file-notify--handle-event` setting callback function to nil Date: Wed, 02 Nov 2022 08:41:38 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21189"; mail-complaints-to="usenet@ciao.gmane.io" To: 58964@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 02 14:08: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 1oqDTV-0005G2-DW for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 02 Nov 2022 14:08:09 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oqD4G-0005PT-ON; Wed, 02 Nov 2022 08:42:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oqD4F-0005PA-9T for bug-gnu-emacs@gnu.org; Wed, 02 Nov 2022 08:42:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oqD4F-0001aP-0E for bug-gnu-emacs@gnu.org; Wed, 02 Nov 2022 08:42:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oqD4E-000337-L6 for bug-gnu-emacs@gnu.org; Wed, 02 Nov 2022 08:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alejandro =?UTF-8?Q?P=C3=A9rez?= Carballo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 02 Nov 2022 12:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58964 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.166739290611695 (code B ref -1); Wed, 02 Nov 2022 12:42:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Nov 2022 12:41:46 +0000 Original-Received: from localhost ([127.0.0.1]:45122 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqD3x-00032Z-O6 for submit@debbugs.gnu.org; Wed, 02 Nov 2022 08:41:46 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:53698) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqD3w-00032R-EC for submit@debbugs.gnu.org; Wed, 02 Nov 2022 08:41:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oqD3w-0005Oo-3u for bug-gnu-emacs@gnu.org; Wed, 02 Nov 2022 08:41:44 -0400 Original-Received: from mail-qk1-x732.google.com ([2607:f8b0:4864:20::732]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oqD3u-0001Ng-Av for bug-gnu-emacs@gnu.org; Wed, 02 Nov 2022 08:41:43 -0400 Original-Received: by mail-qk1-x732.google.com with SMTP id s20so5175673qkg.5 for ; Wed, 02 Nov 2022 05:41:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umass.edu; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=j1Lfwylv2e0vUUp9hA/wBp6gXOPLWYpCadobN4H33ug=; b=AtKfZXOcuOTEPOGU2Gcmk6wIyVktcx0JRlmCMxpyrJ3OPG1oEfu55M2FyZi+0gre2S UN6GtCTfKMWOqcOoG9VirFAlGRmeRnMJ+P2ThOpDp0egsbQKd6UzLEVV6o+S9J+6Wbax NC9v7aFzYwoffT+ftLCK+WP/UaQSlMRr56WCA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=j1Lfwylv2e0vUUp9hA/wBp6gXOPLWYpCadobN4H33ug=; b=kkjQY1l8YfEZIDy3myjSngepcOc044IQVSBAXlJeZW7vxCFrymdM8WipfUanlmBzOS nfMVPFGC41Wv8JIuHsrXNTkV4gggG++OLghsL/dEa/YM65vtsw08XmxN5329eJHaxc2/ hOBOcxbvCNOVFQHfxAsry5P38lJE2x/O0sLuz81yChtIe4CMk4AlkYUoMRw5BZmiFxpg kCotMzMd61n8HIUz6FO2alg7yzJxK+E8dYRTMEjrzL8btOzc25WVWsM+suE1mAlRsHz2 iiT6FrTeWfXaOdPHZGF314dPYKWzasG4LpCeKkzJosQ/098f7X5wGW+n2tDswgUUglt0 HOdg== X-Gm-Message-State: ACrzQf2gBsY1EmDG++Gu1y0IPIUnBRz8Z0WjTlJ+RbHY9A0yVjwmVFOu R7/fPLF4bRMVNEm/hKH/NMvNbgJM1Ws+nmPp X-Google-Smtp-Source: AMsMyM5gUUxPJLcRyMFQ2Nn8BGEfCSvfeHVZpPE/x0zWIfTyk9BwdFDpccHlGjj3+r3hWFH9abBrZA== X-Received: by 2002:a05:620a:410e:b0:6ee:b96b:a831 with SMTP id j14-20020a05620a410e00b006eeb96ba831mr17733562qko.734.1667392899546; Wed, 02 Nov 2022 05:41:39 -0700 (PDT) Original-Received: from localhost (c-71-234-176-197.hsd1.ma.comcast.net. [71.234.176.197]) by smtp.gmail.com with ESMTPSA id n17-20020a05620a295100b006ce1bfbd603sm8509760qkp.124.2022.11.02.05.41.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Nov 2022 05:41:39 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::732; envelope-from=apc@umass.edu; helo=mail-qk1-x732.google.com 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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: , Original-Sender: "bug-gnu-emacs" Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:246863 Archived-At: The following minimal configuration can be used to trigger the bug on my end, replacing =E2=80=9C~/tmp/test.el=E2=80=9D with a path to a file of you= r choice: (require 'filenotify) (require 'autorevert) (require 'subr-x) (global-auto-revert-mode) =20=20=20=20 (save-window-excursion (find-file "~/tmp/test.el")) Once that=E2=80=99s loaded, calling this: (file-notify--handle-event (car (hash-table-keys file-notify-descriptor= s)) '(renamed attribute-changed deleted) (expand-file-name "~/tmp/test.el")= nil) gives me an error file-notify--call-handler: Symbol=E2=80=99s function definition is void= : nil Here=E2=80=99s the backtrace: Debugger entered--Lisp error: (void-function nil) nil((18 attribute-changed "/Users/apc/tmp/test.el")) file-notify--call-handler(#s(file-notify--watch :directory "/Users/ap= c/tmp" :filename "test.el" :callback nil) 18 attribute-changed "/Users/apc/= tmp/test.el" nil) file-notify--handle-event(18 (renamed attribute-changed deleted) "/Us= ers/apc/tmp/test.el" nil) (progn (file-notify--handle-event (car (hash-table-keys file-notify-d= escriptors)) '(renamed attribute-changed deleted) (expand-file-name "~/tmp/= test.el") nil)) eval((progn (file-notify--handle-event (car (hash-table-keys file-not= ify-descriptors)) '(renamed attribute-changed deleted) (expand-file-name "~= /tmp/test.el") nil)) t) elisp--eval-last-sexp(nil) eval-last-sexp(nil) funcall-interactively(eval-last-sexp nil) call-interactively(eval-last-sexp nil nil) command-execute(eval-last-sexp) Unfortunately, I cannot figure out at which step is `nil` being passed as t= he value of `:callback`. In GNU Emacs 28.2 (build 1, x86_64-apple-darwin21.6.0, NS appkit-2113.60 Ve= rsion 12.5 (Build 21G72)) of 2022-09-13 built on APCiMacwork.local Windowing system distributor 'Apple', version 10.3.2113 System Description: macOS 12.6 Configured using: 'configure --disable-dependency-tracking --disable-silent-rules --enable-locallisppath=3D/usr/local/share/emacs/site-lisp --infodir=3D/usr/local/Cellar/emacs-plus@28/28.2/share/info/emacs --prefix=3D/usr/local/Cellar/emacs-plus@28/28.2 --with-xml2 --with-gnutls --without-dbus --without-imagemagick --with-modules --with-rsvg --with-ns --disable-ns-self-contained 'CFLAGS=3D-Os -w -pipe -march=3Dnehalem -mmacosx-version-min=3D12 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk' 'CPPFLAGS=3D-I/usr/local/opt/icu4c/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/readline/include -F/usr/local/Frameworks -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk' 'LDFLAGS=3D-L/usr/local/opt/icu4c/lib -L/usr/local/opt/openssl@1.1/lib -L/usr/local/opt/readline/lib -L/usr/local/lib -F/usr/local/Frameworks -Wl,-headerpad_max_install_names -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk'' Configured features: ACL GIF GLIB GMP GNUTLS JPEG JSON LCMS2 LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER PNG RSVG THREADS TIFF TOOLKIT_SCROLL_BARS XIM ZLIB Important settings: value of $LC_ALL: en_US.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-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 indent-tabs-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util rmail rmail-loaddefs auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map text-property-search time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils 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 51202 7299) (symbols 48 6554 1) (strings 32 18351 1706) (string-bytes 1 613349) (vectors 16 13830) (vector-slots 8 191781 15356) (floats 8 21 42) (intervals 56 275 0) (buffers 992 10))