Skip to content

v0.5.0

Latest

Choose a tag to compare

@bbatsov bbatsov released this 18 Mar 08:16
· 5 commits to master since this release

New features

  • Use after-focus-change-function instead of the obsolete focus-out-hook for
    detecting frame focus loss. Controlled by the new super-save-when-focus-lost
    option (enabled by default).
  • Add a default predicate that checks verify-visited-file-modtime to avoid
    overwriting files modified outside Emacs.
  • Add a default predicate that checks the parent directory exists before saving,
    to prevent errors when a file's directory has been removed.
  • Wrap predicate evaluation in condition-case so a broken predicate logs a
    warning instead of disabling all auto-saving.
  • Add support for saving org-src edit buffers (via org-edit-src-save) and
    edit-indirect buffers (via edit-indirect--commit). Controlled by
    super-save-handle-org-src and super-save-handle-edit-indirect (both
    enabled by default).
  • Use window-buffer-change-functions and window-selection-change-functions to
    detect buffer and window switches. Controlled by the new
    super-save-when-buffer-switched option (enabled by default). This catches all
    buffer switches regardless of how they happen, unlike super-save-triggers.

Bug fixes

  • Fix redundant saves in super-save-focus-change-handler — previously it called
    super-save-command once per unfocused frame instead of once.

Changes

  • Require Emacs 27.1.
  • Default super-save-triggers to nil, since super-save-when-buffer-switched
    now covers all buffer switches via window-system hooks.
  • Default super-save-hook-triggers to nil, since super-save-when-focus-lost
    and super-save-when-buffer-switched cover the common triggers.