Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to restore windows with layouts #16663

Open
RidaAyed opened this issue Nov 14, 2024 · 1 comment
Open

Unable to restore windows with layouts #16663

RidaAyed opened this issue Nov 14, 2024 · 1 comment

Comments

@RidaAyed
Copy link

Description :octocat:

I'm unable to restore windows with layouts

Reproduction guide 🪲

Save layout:

  • Start Emacs
  • SPC l 2
  • Input foo. Hit Enter to create another layout named foo
  • SPC w v to split-window-right
  • SPC l S to save the layout foo

Restore layout:

  • Restart emacs (optional)
  • SPC l L to load layout from file
  • Select foo
  • SPC l foo to load layout

Observed behaviour: 👀 💔
SPC l L foo leads to nothing

Expected behaviour: ❤️ 😄
SPC l L foo foo restores the vertically windows layout

System Info 💻

  • OS: gnu/linux
  • Emacs: 29.4
  • Spacemacs: 0.999.0
  • Spacemacs branch: develop (rev. 2984892)
  • Graphic display: t
  • Running in daemon: nil
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:
(git helm)
  • Possibly important!
dotspacemacs-additional-packages '(exwm)
  • System configuration features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB

Backtrace 🐾

No error is shown with enabled debugging

@fnussbaum
Copy link
Collaborator

I can't reproduce this exactly, though I have only tried without exwm.

  • SPC w v to split-window-right

  • SPC l S to save the layout foo

If I switch these two steps, then there is also a problem for me. Before Bad-ptr/persp-mode.el@0f8db62, saving layouts to files would set their persp-file perspective parameter and auto-save to that file later (when persp-auto-save-persps-to-their-file was t). Now the persp-file parameter is no longer set when saving or loading layouts from files. However, this is a change of behaviour (or bug) in persp-mode upstream.

Personally, I have moved away from persp-mode and am currently writing an alternative to the spacemacs-layouts layer built on more solid foundations. However I am not yet sure if this will be suitable for inclusion into Spacemacs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants