GNU bug report logs - #67341
29.1.90; Open frame on display doesn't work in wayland

Previous Next

Package: emacs;

Reported by: phill <at> thesusis.net

Date: Tue, 21 Nov 2023 19:45:01 UTC

Severity: normal

Found in version 29.1.90

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Phillip Susi <phill <at> thesusis.net>
Cc: 67341 <at> debbugs.gnu.org
Subject: bug#67341: 29.1.90; Open frame on display doesn't work in wayland
Date: Thu, 30 Nov 2023 08:23:50 +0200
> From: Phillip Susi <phill <at> thesusis.net>
> Cc: 67341 <at> debbugs.gnu.org
> Date: Wed, 29 Nov 2023 15:42:02 -0500
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> > Can you step in Edebug through make-frame-on-display and make-frame,
> > and try to figure out how come wayland-2 becomes wayland-1, during the
> > processing of the command?
> 
> I've never tried using the emacs debugger before, but I managed to get
> it to enter debug on entry to make-frame-on-display, and had to hit 'd'
> to step through it a LOT.  I only ever saw "wayland-2", never
> "wayland-1".  There were a bunch of window on "Minibuf-0".

I meant Edebug, not the basic debugger.  Edebug is easier to use, and
it is fully documented in the ELisp manual.

Something like the below should get you started:

  emacs -Q
  M-x load-library RET frame.el RET
  C-x C-f /path/to/lisp/frame.el RET
  C-s defun make-frame ( RET
  M-x edebug-defun RET
  M-x make-frame-on-display RET wayland-2 RET

Now you should see Edebug kick in: Emacs will show the make-frame
function with a little arrow on the fringe to the left of the
beginning of its code.  You can press SPC to step through the code.
Step like that until you get to this part:

    (setq frame (let ((window-system w)) ; Hack attack!
                  (frame-creation-function params)))

and tell the value of 'params' passed to frame-creation-function (the
value will be shown in the echo-area when the cursor is just after
"params").

Let me know if you need more help with Edebug.

Thanks.




This bug report was last modified 1 year and 205 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.