Variable: projectile-replace--last-apply

projectile-replace--last-apply is a variable defined in projectile.el.

Value

nil

Documentation

Record of the most recent applied replace, or nil when there is none.

Holds a projectile-replace--undo-record describing exactly what projectile-replace--apply wrote - files it skipped contribute nothing - which is what projectile-replace-undo reverts.

Deliberately one global record rather than a per-project stack: this is insurance against the last replace going wrong, not a history. Every apply that writes something supersedes it, a fully successful undo clears it, and it lives only for the current Emacs session.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
  files)       ; alist of (FILE . list of `projectile-replace--undo-edit')

(defvar projectile-replace--last-apply nil
  "Record of the most recent applied replace, or nil when there is none.
Holds a `projectile-replace--undo-record' describing exactly what
`projectile-replace--apply' wrote - files it skipped contribute nothing -
which is what `projectile-replace-undo' reverts.

Deliberately one global record rather than a per-project stack: this is
insurance against the last replace going wrong, not a history.  Every
apply that writes something supersedes it, a fully successful undo clears
it, and it lives only for the current Emacs session.")