Bad-ptr / persp-mode.el

named perspectives(set of buffers/window configs) for emacs
394 stars 44 forks source link

Avoid incorrect filtering on the list in persp-read-persp when loading persps from file. #146

Open roife opened 8 months ago

roife commented 8 months ago

Fix #145 .

This bug arises when a persp-list is passed to persp-read-persp, causing the function to execute incorrect filtering operations on the list. These filtering operations rely on the assumption that the list contains perspectives that are active. However, when using persp-load-from-file-by-names, the perspectives within the list haven't been loaded, which leads to error.

roife commented 8 months ago

I'm wondering if it is an elegant solution. Comments or suggestions are welcome.