Variable: projectile-replace--scan-generation

projectile-replace--scan-generation is a buffer-local variable defined in projectile.el.

Documentation

Monotonic token identifying the current async scan of this buffer.

Every (re-)scan and every cancel bumps it; a chunk timer carries the generation it was scheduled under and no-ops when it no longer matches. This way a timer that already fired and is waiting to run can't append to a newer scan's match list if it is superseded in the meantime.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defvar-local projectile-replace--scan-generation 0
  "Monotonic token identifying the current async scan of this buffer.
Every (re-)scan and every cancel bumps it; a chunk timer carries the
generation it was scheduled under and no-ops when it no longer matches.
This way a timer that already fired and is waiting to run can't append
to a newer scan's match list if it is superseded in the meantime.")