Releases: bbatsov/super-save
Releases · bbatsov/super-save
v0.5.0
New features
- Use
after-focus-change-functioninstead of the obsoletefocus-out-hookfor
detecting frame focus loss. Controlled by the newsuper-save-when-focus-lost
option (enabled by default). - Add a default predicate that checks
verify-visited-file-modtimeto 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-caseso a broken predicate logs a
warning instead of disabling all auto-saving. - Add support for saving
org-srcedit buffers (viaorg-edit-src-save) and
edit-indirectbuffers (viaedit-indirect--commit). Controlled by
super-save-handle-org-srcandsuper-save-handle-edit-indirect(both
enabled by default). - Use
window-buffer-change-functionsandwindow-selection-change-functionsto
detect buffer and window switches. Controlled by the new
super-save-when-buffer-switchedoption (enabled by default). This catches all
buffer switches regardless of how they happen, unlikesuper-save-triggers.
Bug fixes
- Fix redundant saves in
super-save-focus-change-handler— previously it called
super-save-commandonce per unfocused frame instead of once.
Changes
- Require Emacs 27.1.
- Default
super-save-triggersto nil, sincesuper-save-when-buffer-switched
now covers all buffer switches via window-system hooks. - Default
super-save-hook-triggersto nil, sincesuper-save-when-focus-lost
andsuper-save-when-buffer-switchedcover the common triggers.
super-save 0.4
New features
- Make super-save checks customizable via
super-save-predicates. - Introduce defcustom
super-save-max-buffer-sizeas a way to avoid auto-saving
big files. - Introduce defcustom
super-save-exclude(a list of regular expression) as a
way to filter out certain buffer names from being auto-saved. - #43: Introduce
super-save-silent
to avoid printing messages in the*Messages*buffer or in the echo area. - #43: Introduce
super-save-delete-trailing-whitespacewhich defaults toniland accepts
tto rundelete-trailing-whitespacebefore saving the buffer. This
variable accepts only the symbolexcept-current-lineto delete trailing
white spaces from all lines except the current one. This can be useful when we
are in the middle of writing some thing and we add a space at the end, in this
case, we more likely need the space to stay there instead of deleting it. - #44 & #20: Introduce
super-save-all-buffersto save all modified buffers instead of only the
current one.
Changes
- Require Emacs 25.