ITADN

`persp-state-load` Fails to Cleanup Temp Perspective Buffers

#219OpenCHANTXU64 创建于 2025-02-21
C
CHANTXU64commented
### **Problem Description** After upgrading to the latest version of `perspective.el` (20250215.1550), calling `persp-state-load` creates a temporary perspective with a random name that is not fully cleaned up. This results in: 1. The temporary perspective lingering after restoration. 2. Errors like `persp-forget-buffer: Buried buffer [buffer-name] found in window...` due to uncleaned buffers. **Regression Note:** Rolling back to version 2.19 resolves the issue, confirming a regression in newer versions. --- ### **Steps to Reproduce** 1. Open Emacs and enable `persp-mode`. 2. Create multiple perspectives with open buffers (e.g., "Work" with buffers `a.el`, `b.el`). 3. Save state with `M-x persp-state-save`. 4. Restart Emacs and load the state with `M-x persp-state-load`. 5. Observe: - A temporary perspective (e.g., `8a3f12`) appears. - `*Messages*` shows `persp-forget-buffer` errors. - The "Work" perspective has `a.el` and `b.el` - The "8a3f12" perspective has `b.el` - The temporary perspective cannot be deleted. --- ### **Environment** - **Emacs Version:** 29.4 - **OS:** macOS 15.3 - **Perspective Version:** 20250215.1550
6 条评论