Open kebairia opened 3 years ago
Well, it's not supposed to do that! What is your system?
Well, it's not supposed to do that! What is your system?
OS: Gnu/Linux -- Artix (Arch based distro) Emacs: GNU Emacs 27.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.27, cairo version 1.17.4) of 2021-03-26
Thanks. Can you check if a frame is actually created (and cover the initial frame) or if there's an error during the creation?
no, actually , when i activate the nano-side-bar, the screen blink with the nano-side-bar frame (the frame appear and immediately disappear). these are the messages i get
After that, I can use ibuffer to locate the frame.
Ok. Can you try to add a message here to check if the make-frame-visible
function is called?
alright, i've added this message like that
(when (not visible)
;;;;;;;;;;;;;;;;;the message;;;;;;;;;;;;;;;;;;;
(message "Hello there")
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(make-frame-visible sidebar)
(modify-frame-parameters sidebar `((top . 0)
(height . 1.0)
(width . ,sidebar-width)
(left . ,(* -1 width))))
(select-frame-set-input-focus selected-frame))
These are the messages I got
t
nano-sidebar
Hello there
dark
Ok. Do you know if there are actually two frames or only one after toggling the sidebar? For example, is one covering the other?
no, only one frame! i toggled the sidebar from the scratch buffer
(nano-sidebar-toggle) ;; Using C-x C-e
Can you try:
(make-frame `((parent-frame . ,(window-frame))
(undecorated . nil)
(user-position . nil)
(user-size . nil)
(background-color . "black")
(height . 12)
(width . 72)))
where should i put that i use it as a configuration, and a black box appeared at the top left of the buffer.
PS: when i execute (nano-sidebar-toggle)
, i loose my cursor, it seems that the focus goes to the new sidebar.
I can restore my cursor by clicking again.
The command was a test to chekc whether you can create a child frame and apparently you can. By the way, are you using a tiloing window manager or emacs in full screen (that won't play well with the sidebar)?
yes, i'm using dwm
That might be the reason. Can you try with a floating emacs window?
i tried with a floating mode in dwm... same problem 🤔
What about the minimal example I posted above? I suspect that the new frame might be identified as new window by your wm and put somewhere else. Since this new frame is a child frame, I'm not sure how dwm would handle it. Can you try with a non-tiling window manager (if possible, don't break your configuration for the test)?
Can you try:
(make-frame `((parent-frame . ,(window-frame)) (undecorated . nil) (user-position . nil) (user-size . nil) (background-color . "black") (height . 12) (width . 72)))
@rougier I tried on macOS Monterey with Emacs 28 today, and this spawns a sub-window that is attached to the main one, much like macOS sheets used to maintain relative position.
Thing is, the sidebar also is a floating window. Much like old Mac OS X GUIs, or GIMP:
Is there anything else you do to customize the display of Emacs frames on your Mac?
@DivineDominion Sorry for late answer. I think this the expected behavior. In my case (OSX Monterrey EmacsMac 27.1), I removed the title bar.
when i use the
nano-sidebar-toggle
, it takes a whole buffer instead of just the "side" is there a way so i can configure it on a specific width?