Subject: bug#58964: 28.2; `file-notify--handle-event` setting callback function to nil

From: Michael Albinus <[email-masked]>
Date: Thu, 03 Nov 2022 08:46:35 +0100

Alejandro Pérez Carballo <[email-masked]> writes:

Hi Alejandro,

> The following minimal configuration can be used to trigger the bug on my
> end, replacing “~/tmp/test.el” with a path to a file of your choice:
>
>     (require 'filenotify)
>     (require 'autorevert)
>     (require 'subr-x)
>     (global-auto-revert-mode)
>     
>     (save-window-excursion
>       (find-file "~/tmp/test.el"))
>
> Once that’s loaded, calling this:
>
>     (file-notify--handle-event (car (hash-table-keys file-notify-descriptors)) '(renamed attribute-changed deleted) (expand-file-name "~/tmp/test.el") nil)
>
> gives me an error
>
>     file-notify--call-handler: Symbol’s function definition is void: 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.