Skip to content

Handle file-notify callbacks #3

@lastquestion

Description

@lastquestion

hat-tip to @yyoncho

file-notify-add-watch is a compiled Lisp function in ‘filenotify.el’.

(file-notify-add-watch FILE FLAGS CALLBACK)
....
When any event happens, Emacs will call the CALLBACK function passing
it a single argument EVENT, which is of the form

  (DESCRIPTOR ACTION FILE [FILE1])
  • Verify how filenotify calls the callback. I suspect it's from C code.
  • Figure out what to advise to wrap the callback, handle similarly to timers or process filters

lsp might be a good test case for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions