Skip to content

Commit

Permalink
Add predicate that determines if the session is saved automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
jamescherti committed Aug 17, 2024
1 parent ed07034 commit fa72105
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test-easysession.el
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,12 @@ storing them in respective variables for later use."
(setq easysession-save-mode-predicate 'my-easysession-nothing-saved)
(kill-buffer test-easysession--dired-buffer)
(easysession--auto-save)

(kill-buffer test-easysession--file-buffer1) ; prevent eaysession-load failure
(setq test-easysession--file-buffer1-path nil ) ; prevent eaysession-load failure
(setq test-easysession--file-buffer1 nil) ; prevent eaysession-load failure
(easysession-load)

(setq test-easysession--dired-buffer
(dired-noselect test-easysession--dired-buffer-path))
(when test-easysession--dired-buffer
Expand Down

0 comments on commit fa72105

Please sign in to comment.