bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#58964: 28.2; `file-notify--handle-event` setting callback function t


From: Michael Albinus
Subject: bug#58964: 28.2; `file-notify--handle-event` setting callback function to nil
Date: Thu, 03 Nov 2022 08:46:35 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Alejandro Pérez Carballo <apc@umass.edu> 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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]