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

no sidebar displayed in emacs 28 #6

Open
titaniumbones opened this issue Nov 30, 2021 · 4 comments
Open

no sidebar displayed in emacs 28 #6

titaniumbones opened this issue Nov 30, 2021 · 4 comments

Comments

@titaniumbones
Copy link

might be related to #5 , as I use tabs extensively, but it also seems to apply with tab-bar-mode turned off.

here's my use-package:

(use-package nano-sidebar
  :ensure nil
  :defer t
  :quelpa (nano-sidebar
           :fetcher github
           :repo "rougier/nano-sidebar")
  :commands (nano-sidebar-toggle))

running nano-sidebar-toggle and stepping through, it appears that the sidebar frame already exists, but I am unable to find it or switch to it using frame-next. For instance, i nmy current session (frame-list) gives:

(#<frame emacs@anarres 0x556cc03b42e8> #<frame NΛNO sidebar 0x556ccf3a9bd8> 
#<frame *elfeed-search* 0x556cc179fe50> #<frame /home/matt/WDW235/Announcements.org 0x556cc014f870> 
#<frame emacs@anarres 0x556cbb030140> #<frame  *Minibuf-1* 0x556cb9ef9c00>)

Since I don't understand the underlying tab implementation, I worry that there's some interference between those levels. I don't understand the frame internals well enough to test effectively, either.

Thanks!

@titaniumbones
Copy link
Author

I believe this is a wayland bug, or, rather, the expected wayland behavior. Frame parameters work differently under wayland than with X, so the hardcoded left parameter ends up shooting the frame offscreen on my laptop. Setting that to 0 makes the sidebar visible.

Stlll having trouble getting anything to loadi n there, though, and I find the minbuffer is obscured by the sidebar rightn ow. Will report when I know something!

@rougier
Copy link
Owner

rougier commented Dec 15, 2021

Maybe the side positioning suing negative coordinates was a side effect that has been fixed. Could you test different values for the x corrdinates in the code to check if it is the case?

@philipsd6
Copy link

FWIW, this is still affecting me with the latest emacs (30.0.50) on Wayland. I've experimented with various values for left and as @titaniumbones said, 0 makes it visible, but it overlays the current window in the current frame obscuring everything on the left side the previously visible window. If I increase left by a positive number, it starts to creep across, still obscuring my window. If I set left to a negative value, i.e. -10 it then goes over to the right of my window and obscures that side, and decreasing that negative number to say, -1000 makes it move farther left, until it disappears.

So I don't know how this is suppose to work, but I was expecting to be able to toggle the sidebar and have it appear to the left of my current window/frame, without changing the width of my frame or obscuring its contents.

@rougier
Copy link
Owner

rougier commented Jun 19, 2023

Sorry for latex answer. Could you post (here) a screenshot when left is -10 and -100?

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

3 participants