diff options
| author | Matthew White <mehw.is.me@inventati.org> | 2021-08-02 16:13:10 +0000 |
|---|---|---|
| committer | Matthew White <mehw.is.me@inventati.org> | 2021-10-21 00:22:43 +0200 |
| commit | bf0fce1fc80e60daa9f625509b9fd267922332ef (patch) | |
| tree | a34eddd252a45791538e693c711c37e7fff09f8c /CHANGELOG.md | |
| parent | 8dd102d26ccc478a0f1b12a0136aa38e8fcffc88 (diff) | |
persp-maybe-kill-buffer: don't kill a perspective's last buffer
Prevent killing or removing the last buffer left in perspectives,
unless a perspective is killed, to avoid adding a buffer of other
perspectives to the perspective where the last buffer is removed.
Diffstat (limited to 'CHANGELOG.md')
| -rw-r--r-- | CHANGELOG.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c7a3ac..4d497da 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -40,12 +40,17 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ### Added +- `persp-maybe-kill-buffer`: designed as `kill-buffer-query-functions` hook to keep a perspective's last left buffer from being killed. - `persp-get-buffer-names`: get any perspective's list of live buffers. - `persp-get-buffers`: get any perspective's list of buffers. ### Changed +- `persp-mode`: add/remove `persp-maybe-kill-buffer` hook. +- `persp-kill`: switch `persp-maybe-kill-buffer` on/off to allow killing a perspective's last left buffer. +- `persp-set-buffer`: walk perspectives rather than using a while `persp-buffer-in-other-p` loop, since the former isn't prone to infinite loops. This is needed due to buffers kept in perspectives by `persp-maybe-kill-buffer` and `persp-remove-buffer` when a buffer is a perspective`s last left buffer. +- `persp-remove-buffer`: do not kill/remove a perspective's last left buffer. - `persp-remove-buffer`: when burying a buffer, walk windows rather than using a while loop, since the former isn't prone to infinite loops. - `make-persp`: document that executing BODY saves/restores the `current-buffer`. - `persp-set-buffer`: follow the coding style of `persp-add-buffer`. |
