From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 02 08:41:46 2022 Received: (at submit) by debbugs.gnu.org; 2 Nov 2022 12:41:46 +0000 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 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 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 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 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) 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) From: =?utf-8?Q?Alejandro_P=C3=A9rez_Carballo?= To: bug-gnu-emacs@gnu.org Subject: 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 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-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) 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)) From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 03 03:46:51 2022 Received: (at 58964) by debbugs.gnu.org; 3 Nov 2022 07:46:51 +0000 Received: from localhost ([127.0.0.1]:47739 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqUw7-00063o-K7 for submit@debbugs.gnu.org; Thu, 03 Nov 2022 03:46:51 -0400 Received: from mout.gmx.net ([212.227.15.15]:48959) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqUw2-00063I-Az for 58964@debbugs.gnu.org; Thu, 03 Nov 2022 03:46:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1667461597; bh=w1lieDpxBpwgwOwEfng1L//lnGHuMqVb4Tub1zCKpcs=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=H3zrWx8bD02Z9haWOdfbRWF/kFq+/9dnzzBllEMUlPR2Id5YcrdhmLPB7843I/H7I O4Lllsfv0TRuhhFens5sB3TvyLsG3D1fDW90H4Abxfkm/GNj/5SMIUVtUMlKVu1bXw v/pMIrbtgPO9RP0pNVMm+yluexVNgl14IC122kS1iKForxtBp9sTiicMP15wjZIShD D/z4w8LkbjCicAlld/tl4OugktfQtfZosw0W8WUhPZ2keSdFmwU/Wz7mH5xPx/HZQ/ 4qawed4vujA0cptipzgFpxCjli2o/u3F5d88qfeWbBx648302j3TFniBRYrXrkYCAa 0MCt/9NDAv3sQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([213.220.148.93]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MNswE-1ofQ9t0jAu-00OFeE; Thu, 03 Nov 2022 08:46:37 +0100 From: Michael Albinus To: Alejandro =?utf-8?Q?P=C3=A9rez?= Carballo Subject: Re: bug#58964: 28.2; `file-notify--handle-event` setting callback function to nil In-Reply-To: ("Alejandro =?utf-8?Q?P=C3=A9rez?= Carballo"'s message of "Wed, 02 Nov 2022 08:41:38 -0400") References: Date: Thu, 03 Nov 2022 08:46:35 +0100 Message-ID: <87fsf0bhus.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:ufbyktnAjfui2/gjgF2i3MBAQ7wq8KU+JSshyeZHhL0qgmj3eu8 eGn5sXJ7FIgUnALF5+YygEPlsFyLI0+BDUAEpMAgor5xj2DoUiX/+2C64p8SmcZDHId3JLe MFK3wxa/jyKY1UaZam5FZc3F/NcL9j/L3BB8nFVYzOO9oJdivvAHo6z7G8Z1nog80b19DaH 0AVf0Q+LJrpPQEnL4XurA== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:n9Crm60nnK0=;PkabBqWzxnXa4eNPQEhF9u1VTKE mI7cp8gskh4Dx5WkHOrC95oUDTFsNLaDU270jj9h9Q/YVo8CxgTwn+ihBZCQvniFXd8E/eyJX BTZ8T8ssg2pVjUCgyxdeHGofU7R7QhT1s+yZg84lV6gwBhoc1M82/YQVdrzGOhl+6Zm8cKQPl mTf636riMIbpX7yeOM9jYuoYgoBy3xr+wQ6nX3r3MBuCUCP6t4iu31VJ3C0RN/+GRXLRwhCZo gVHA08IS90sVW8HnF/VOzXQH6bYXIpBK4S6Htauu4YjhKjV99fCfBZiFudtSyqVDYw8gKD3Lk xopIt3Z64T2f72PEx2D/WM1cs+QRpHzXh9ovidZkqreUfJW8LEBQCFy1cl9m2cbiLulljP1WH T8B5A+7c7l1RLG98IvgK9aM+F1hDE2E4q9xextZQkFLrFnE4BH/lCq8SSCCutHkVOv6rz3cO9 ncJnHvi48liIdEPRDXavcwgw5gp7odFQhjF4e2p0NYQfiv9mlCdPppAiL5mZpIBNwlb257MZy fAelu5Ur2QwKmmNYlI9xvuTBQpIv9F3T5fa5MfHVbp8rxpQrmllRezdXK2NduVZ6M0t2FLFXT Awx7hqnadq4GaSjS+UuYU8uXq+xf38JzPp41XYletdVrhMV+fyfQBe+FAhxWnv7mrnwa1K2B/ oI9uMRmdgfP6zwr8eMX8szJaXcDpa+F4FaUr0DHPWOkTWqPCtx9qxfmA7R937WLY5P9YxhqB5 O2Dj0Myx0P2Odgxq+L2QdEieDMSAymi1tBrjOYBS3fm43AB6Z86w0QhmjKCUfG2CQcjqDvDcR PJGR1ktleh0gu4pu4efw7LHg1NtvS5yO/OJAL3YLxntkjNUoGOovURocJvFZjzJua2Its6TNk jQ5g85vhvbUZ/IU5d0eI2vTTeBGskKXa+2ST7Wy7KAhbBvuX+9qLeTtAbHLoKqxUINN8+HKmv lzO9VQ== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 58964 Cc: 58964@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Alejandro P=C3=A9rez Carballo writes: Hi Alejandro, > 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 y= our choice: > > (require 'filenotify) > (require 'autorevert) > (require 'subr-x) > (global-auto-revert-mode) >=20=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-descript= ors)) '(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 vo= id: nil This is not a valid call of `file-notify--handle-event', see its docstring how it shall be applied. Furthermore, this function is an internal one which shouldn't be called from outside filenotify.el. What's your use case for this? Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 03 20:11:45 2022 Received: (at 58964) by debbugs.gnu.org; 4 Nov 2022 00:11:45 +0000 Received: from localhost ([127.0.0.1]:51032 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqkJF-0003uA-61 for submit@debbugs.gnu.org; Thu, 03 Nov 2022 20:11:45 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:45982) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqkJC-0003tt-GP for 58964@debbugs.gnu.org; Thu, 03 Nov 2022 20:11:44 -0400 Received: by mail-qt1-f195.google.com with SMTP id cg5so2230171qtb.12 for <58964@debbugs.gnu.org>; Thu, 03 Nov 2022 17:11:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umass.edu; s=google; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=YXouRhLMsdBdhQ1oh1xyjeUzN/Y3CEKiimk4zPNkO94=; b=iyz/P3homTGMKlMWnWGwoSRnBrLno71cNuxA/mP3+Z3/ZbJ46tUMHKMdQEQAscjfbg PoK0D/+0om5Ki4c/+l/AWyfVuk1Dx5vJLI7Hqi5nwXh8qYRCtMs9y1vpB5B6D5ddEr4W 3bgYTxZpHEKPuJm3rBQyrE22rXE+JgpvCZd2U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YXouRhLMsdBdhQ1oh1xyjeUzN/Y3CEKiimk4zPNkO94=; b=Vti622X7pWBp5iS4BCNSGOSKE4aq+ytOVlqT7Brtb4iGDCF7pZKZWARujhh64Wgvts vDhxOW0eHfKi0Ca8M70q8L4Sy+sbZL5RT846L1kt9on8sclVEk1vaOamThGbzum6TG/9 RATSrfPiFAZAxsK6RiTkzJ0EooHO2bO+ek8Ms0qqzowupSb3z+zpNnnOBYa3kgw8bTAV r+ykyMNRuEHGFZSWUIHAU1wLe2OhHO4HGvFhzxrwAHmDRChsig9Vrbec8y0zbkqrN6Wm 0cAnipJEp99zwUqbWMrmhDpoe9mJ/+sqmfKM5P7ZDVpF5R90TgRkBy6EQR/86uCvkvxW 3gNQ== X-Gm-Message-State: ACrzQf2QfDMMAjWhIp3V12UQVq4NLPImNNtMA3ue2r59zg45oW2WWFwU 9vTpDy06/xv4ze3DFywUpP51cA== X-Google-Smtp-Source: AMsMyM7NLdozS+4GG7PEaCp3eSWtpCzfbjlNydff5Ny7/zDRUvON8d8pu/EXDeE284vdIk/DPhQO6Q== X-Received: by 2002:a05:622a:4d3:b0:3a5:c99:9471 with SMTP id q19-20020a05622a04d300b003a50c999471mr26999622qtx.325.1667520696758; Thu, 03 Nov 2022 17:11:36 -0700 (PDT) Received: from smtpclient.apple (c-71-234-176-197.hsd1.ma.comcast.net. [71.234.176.197]) by smtp.gmail.com with ESMTPSA id x10-20020a05620a448a00b006cf19068261sm1866347qkp.116.2022.11.03.17.11.35 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 Nov 2022 17:11:36 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Subject: Re: bug#58964: 28.2; `file-notify--handle-event` setting callback function to nil From: =?utf-8?Q?Alejandro_P=C3=A9rez_Carballo?= In-Reply-To: <87fsf0bhus.fsf@gmx.de> Date: Thu, 3 Nov 2022 20:11:34 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <02BBE794-5B9D-4249-8A7F-51E1B03146E5@umass.edu> References: <87fsf0bhus.fsf@gmx.de> To: Michael Albinus X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 58964 Cc: 58964@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Michael,=20 Thanks for writing back.=20 > This is not a valid call of `file-notify--handle-event', see its > docstring how it shall be applied. I've looked at the docstring but don't really see why what I gave is not = a valid call of the function.=20 Signature (file-notify--handle-event DESC ACTIONS FILE FILE1-OR-COOKIE) =20 Documentation Handle an event returned from file notification. =20 DESC is the back-end descriptor. ACTIONS is a list of: created changed attribute-changed deleted renamed -- FILE is old name, FILE1-OR-COOKIE is new name = or nil renamed-from -- FILE is old name, FILE1-OR-COOKIE is cookie or = nil renamed-to -- FILE is new name, FILE1-OR-COOKIE is cookie or = nil stopped -- no more events after this should be sent I thought the descriptor would just be one of the keys in the hash table = that is the value of `file-notify-descriptors', but maybe I'm = misunderstanding how that's all supposed to work. So basically, the call = that's giving me the error is this:=20 (file-notify--handle-event 18 '(renamed attribute-changed deleted) = "/Users/apc/tmp/test.el" nil) Is that not a valid call? (I was passing as first argument `(car = (hash-table-keys file-notify-descriptors))` because I thought it would = be easier to use for reproduction purposes than asking people to see = what the key associated with the visited file in = `file-notify-descriptors` was.) As for your other questions: I am not trying to call this function = directly, but instead trying to find the source of an error message I've = been getting on and off for months. After leaving `debug-on-error' on = for a while, I finally got a backtrace. =46rom what I could tell, that = was the cause of the trouble. Something in my system is making a call to = `file-notify--handle-event' with similar arguments (it was a different = file, and a different key, the one that in fact was associated with the = file in question in the `file-notify-descriptors` table).=20 Unfortunately, I cannot find the original backtrace information. If = indeed what I provided was not a valid call of the function, I'll have = to wait until next time the error shows up and see if I get more = information about what could be making that invalid call in my system.=20= Best,=20 A. > On Nov 3, 2022, at 3:46 AM, Michael Albinus = wrote: >=20 > Alejandro P=C3=A9rez Carballo writes: >=20 > Hi Alejandro, >=20 >> 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 your choice: >>=20 >> (require 'filenotify) >> (require 'autorevert) >> (require 'subr-x) >> (global-auto-revert-mode) >>=20 >> (save-window-excursion >> (find-file "~/tmp/test.el")) >>=20 >> Once that=E2=80=99s loaded, calling this: >>=20 >> (file-notify--handle-event (car (hash-table-keys = file-notify-descriptors)) '(renamed attribute-changed deleted) = (expand-file-name "~/tmp/test.el") nil) >>=20 >> gives me an error >>=20 >> file-notify--call-handler: Symbol=E2=80=99s function definition is = void: nil >=20 > This is not a valid call of `file-notify--handle-event', see its > docstring how it shall be applied. >=20 > Furthermore, this function is an internal one which shouldn't be = called > from outside filenotify.el. What's your use case for this? >=20 > Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 04 09:10:14 2022 Received: (at 58964-done) by debbugs.gnu.org; 4 Nov 2022 13:10:14 +0000 Received: from localhost ([127.0.0.1]:52082 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqwSb-0001xc-Ll for submit@debbugs.gnu.org; Fri, 04 Nov 2022 09:10:14 -0400 Received: from mout.gmx.net ([212.227.15.15]:54529) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqwSZ-0001xK-DL for 58964-done@debbugs.gnu.org; Fri, 04 Nov 2022 09:10:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1667567402; bh=h2srloibRlzfAb+K3xkuujjgZ55aD9DOm31LNdNEiwI=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=uHh0oFDCQdJEPX+Vws4+M3CNnw9Ae9zbc99ZwVD6XRrJxOL6EUZ6EH8Gh3XlXpSHP t8QKvTnyGt1tyyWWqmOZ7LlHWCK25SALFjGDWDxdLIdt2N3pii0UXeyQAMC1hGKH/o zdSmxTjlEhZOqfTpluxgX8fIiyk/7cju3yH76aEEIHS2pYO2OuqhxwG1WZKSe+5189 nTmLdXluochIvMmJy7qVepU13hqPiugjaaeokW3U1ToWVklVIeCNXrhnAfWr3obTmW /5O/OHklJkdJ1gwRA/LJXm0PPvPbg220rjniJ9lt3gLETJbTlWEJTLoN9FRwaFBkBn GLRiaMmYPh/xg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([213.220.158.250]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MMXUD-1oYZzi3kVb-00JZW4; Fri, 04 Nov 2022 14:10:02 +0100 From: Michael Albinus To: Alejandro =?utf-8?Q?P=C3=A9rez?= Carballo Subject: Re: bug#58964: 28.2; `file-notify--handle-event` setting callback function to nil In-Reply-To: <02BBE794-5B9D-4249-8A7F-51E1B03146E5@umass.edu> ("Alejandro =?utf-8?Q?P=C3=A9rez?= Carballo"'s message of "Thu, 3 Nov 2022 20:11:34 -0400") References: <87fsf0bhus.fsf@gmx.de> <02BBE794-5B9D-4249-8A7F-51E1B03146E5@umass.edu> Date: Fri, 04 Nov 2022 14:09:56 +0100 Message-ID: <877d0ac1cr.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:p5tR8qO5oDoAXh5/ydya2wopBJkPS+snOhq9iS7SDBZk9+ejYE7 kVKT+ypHlseEjMu8W0M3VBkY0H3CmmIxOHo/y1QJpkBoewiGSBZZvccC8MG1G5zPmds1oew 2NaPEmdzriZDjALIEhj6COE5JM0W1RBniVMoHTbaiS26QCgUr0DQu18du1YoG5KTg2P/AzX DAMzuvz4P0r7fdvfRPS+A== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:Os87owMviqk=;Dt/t0LT+2AE+pnzzDh1WuXMszxr OP+qbWaR9uwEuUX4bWy1HqnVpcDZWkjYB8Mc57kP4exwCawHqV6ksH6//u7Nbqqq4hn5/1cDF 49qVhAja7cTvUs3ielq07rCoMUoLtfRidKDmycZ3bBi07b2O91Y4uxA9IJu/438Qc4Ljj3Sg4 YkHM5tnx5F9chaj4F2pCyknFiVLofh2fPIzy28tZQf/fexFSQCpJrKVnsHnF9km9QZNV2rk6a LVMNwxX7rAvZpECkElPO/gPZCyS9ZYZwZEkswZ91/7QcpPDLTHQBOjg7qHh4+9Q4Gw4vWgm4X E0K6eq6rdtFFD2pDYECPbU62r9QkzPODcbs24i4NGGjY6SuZ30MAvaZIkN8hxYFtPtwFb+NuD CuXQtN2w+2RPjKYcK83jkx5mNb5a91IRk5bJa441mumvGKF4DnqX1FMjt1AybK6GvamlgPVWG v87Czf4r6LtxuWh3aXqbCIpzZi7Yz04ahheM81Qw/gYymmxQXSZ5uv1MgpcuEE9UYOBjM94kV Fme0YFn5OrAT0PZ5MZEBPG+RszLtcm+Dp4hcWPxl/tEiw6tKUnBJ9qhqsgdPGxpNCinEgO4p1 moyuIoBltFFbXTnrZLJLyyHQ4qgYcHVkxaFZDxio/WIGbO81M+Y2Ou82I7J2o1zzUC8m9b7SE YPL7sqYOgp4TTA/IZFZtjPq7O3h7Zefb9lynia2NLSOGefviufonZg+4gBPEGHSTtQnSZEgte cEbwu9h0UaTJrGtpithr6CyatNuT5SJpAbTDf5rqrz9cuTUqvFWJB9CWhDbU2m9Si5RUC7jya tSIU4jzx1p4MD7IZsYH9XpM5/FRqBWkRYvLv5EXUy/NHUFlKpj2zMwwpMCQYVSoEllFihIrF5 YKUJtHDwL1DSsIrPuKwUpBfLezTBfSiOGZK9yeqZZYS92NflJ4f+gio3IsZ8Fop3jyX72EvcJ 0exvTBKWBJkY2srVAWiHN9020Sk= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 58964-done Cc: 58964-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Alejandro P=C3=A9rez Carballo writes: > Hi Michael,=20 Hi Alejandro, >> This is not a valid call of `file-notify--handle-event', see its >> docstring how it shall be applied. > > I've looked at the docstring but don't really see why what I gave is > not a valid call of the function. > > Signature > (file-notify--handle-event DESC ACTIONS FILE FILE1-OR-COOKIE) >=20=20=20=20=20 > Documentation > Handle an event returned from file notification. >=20=20=20=20=20 > DESC is the back-end descriptor. ACTIONS is a list of: > created > changed > attribute-changed > deleted > renamed -- FILE is old name, FILE1-OR-COOKIE is new name o= r nil > renamed-from -- FILE is old name, FILE1-OR-COOKIE is cookie or = nil > renamed-to -- FILE is new name, FILE1-OR-COOKIE is cookie or = nil > stopped -- no more events after this should be sent > > I thought the descriptor would just be one of the keys in the hash > table that is the value of `file-notify-descriptors', but maybe I'm > misunderstanding how that's all supposed to work. So basically, the > call that's giving me the error is this: > > (file-notify--handle-event 18 '(renamed attribute-changed deleted) "/= Users/apc/tmp/test.el" nil) > > Is that not a valid call? (I was passing as first argument `(car > (hash-table-keys file-notify-descriptors))` because I thought it would > be easier to use for reproduction purposes than asking people to see > what the key associated with the visited file in > `file-notify-descriptors` was.) There are several problems. It is not clear whether desc 18 is related to the file name you have given. The combination of actions you have used is not valid, it makes no sense. When there is a renamed action, the file1-or-cookie arg must be a file name. And I'm not sure whether we want to see absolute file names. Conclusio: Don't mess with this internal function. > As for your other questions: I am not trying to call this function > directly, but instead trying to find the source of an error message > I've been getting on and off for months. After leaving > `debug-on-error' on for a while, I finally got a backtrace. From what > I could tell, that was the cause of the trouble. Something in my > system is making a call to `file-notify--handle-event' with similar > arguments (it was a different file, and a different key, the one that > in fact was associated with the file in question in the > `file-notify-descriptors` table). For debugging purposes, I recommend to set file-notify-debug to t. This shall give you a lot of information. > Unfortunately, I cannot find the original backtrace information. If > indeed what I provided was not a valid call of the function, I'll have > to wait until next time the error shows up and see if I get more > information about what could be making that invalid call in my system. Yes, please. And if you still cannot determine what's up, pls contact us. I'm closing *this* bug, because the problem you've reported doesn't exist as such. > Best,=20 > > A. Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 04 09:12:01 2022 Received: (at control) by debbugs.gnu.org; 4 Nov 2022 13:12:01 +0000 Received: from localhost ([127.0.0.1]:52089 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqwUL-00020f-8U for submit@debbugs.gnu.org; Fri, 04 Nov 2022 09:12:01 -0400 Received: from mout.gmx.net ([212.227.15.15]:38415) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqwUJ-00020J-6b for control@debbugs.gnu.org; Fri, 04 Nov 2022 09:12:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1667567513; bh=FiNCTse/vtCNxscbrk4NKx/84kDaDLMtzPhOD4STGJ0=; h=X-UI-Sender-Class:Date:To:From:Subject; b=cHJMtaR6Uez+kJnhVWjB1jK/PWltMo7304uT4+rDmWuPsNcAQrTWfOMZVuhVwoIGJ CNbgibvwzdAdyGN34HliBoAJVtRgAcdkJRKVAiT7wwDoKEdEz81MHj/YUc0y5mg5NN oiuPQ3NXtjCUTHU2h1/qEJsOyKimOZoc5sPV2WcQmu1G8zNiQ3P1cM56K08U3Ew5yp V2moJNwgRwaYdZ3dYXnA1TPj7hzRKT6ooxnVtPT9fvseLTrtUDZotsJMC+JpVeRAuj kgIno/9TDi5pBJiqnzqfya/8/GVWnN/AP/xOawKgX+S20N3sCAOR11DF943Fc+4FXz Um+h1p7uUHkGA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([213.220.158.250]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MLi8g-1oZPdR1KCG-00HeB2 for ; Fri, 04 Nov 2022 14:11:53 +0100 Date: Fri, 04 Nov 2022 14:11:52 +0100 Message-Id: <875yfuc19j.fsf@gmx.de> To: control@debbugs.gnu.org From: Michael Albinus Subject: control message for bug #58964 X-Provags-ID: V03:K1:jSZ+rDUkOxRGtgE0VTqPuRmBmQ/of44gLvE1mO+aKzVwkFDCK6v JSa6mF3GsD9BNUzHyHfvKeLVKm7cpIRUyhxFPzX2eg2LaW5O0FzKkVqju4l7LGFV8H7toIf glwk1jwh9CXWktRsySA71Eyv5Ocs3PZvHjx8vgz14tbEtrQ5A2HfwqnWvmScFbUrNkE2Rxk ue1swNyvZ+3Yc8CPZYb/Q== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:2JsBkhOkGp4=;+AL2B3ciP8iE8iH6osZK+trpfVX AaVj2xAIdCuSp22C/DfLuEj3KERTobfisJtGu6RtfgW/bLKoGpIiZpfPW9rRFl6VDNhbpVBro X8PU2xRpHNiGLVBawHXm9toXol7j+ZHBhdCvh8JoVQC2zXbYxRz16Wl3IsplrH3SBrx+ft9KH OWAG7nKt3V9S33E7F+Nc4Dw9tJXhMRl4HRam6mftpH/TZ6nYc3ZeEc3nRyZfhHO6WHsH8+GV9 s/cWCdg3umkMl/gVG1dAOw3HPWnuFh+zsOYyFjHwk2c7RXA4h+GwcO7SJ1+2msUFoAFCGaDlL dCKANR5rk8Ylqb5z+b44oLsip6GmzLe3xevOBQZtypzqhU3geG8C9uKGYGrelx5zFxwoDepMH hk6pP7Y60/W2e/kCLOQUDMUvayEwXjt8AZNPyMyBnVKReUBCdlMn+ODWGOFo7JALP7+F2aG7L AWx5QjleaoipLIcb7rIO9QxO5gXn+XuEhhaTyppFjIUA5NfYW/7fQgR0hHVDd99o59YOXX9uA t5gwsChGHcX4PNWda8D/INLpszx9kRlgUrVSv5eAK/8dJzSb0wRcNGUFGf5fRxgX3nw4hdYa+ JVS7Sj+Y7v6HBh76NHuoUNxueVEpZNgd8tWcZOWdvkGDWBJa5vCP7TaTBIZePgakDbeZ3CCYP bgYBxE6wX/dR6/GuZXEY44uBmWEnaUW3aBwhflH/PKNUKMmsDRstqbihSKlloTFJ8sx2Moadr UNUigR/V6AmXTe+fDOaYjOGR/yhlFrEF3gl/pbnOH0sKiQTesqnkG1kVXZ4p/ByFpJRx2yghY 4CaOxQL64YThgQuwpCd7I8E4rXTe2cVMUE3Q8/2yibSquifYg+qGRxhyqXV1XkmdAUOfMHMeo elVG+THp+7zE3VEi+sTjoQT8IOFRtgZ8zfkGVNqhO2ox2hopG4c16Abq3ME19/meFq+KOVXQk Py9fw2c7uNc3LL/U87CzCL7Lpm4= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) tags 58964 + notabug quit From unknown Sun Jun 22 00:41:33 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 03 Dec 2022 12:24:14 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator