unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#73244: Emacs29.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.41
@ 2024-09-14  2:42 John Hurst
  2024-09-14  2:45 ` bug#73245: " John Hurst
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: John Hurst @ 2024-09-14  2:42 UTC (permalink / raw)
  To: 73244

Sorry if this is the wrong place to post a bug, but I tried the M-x report-emacs-bug, and it just said "Cannot open load file: No such file or directory, emacs-19"??

The bug I have, since upgrading to Ubuntu 24.04 and install emacs29 is that the initial frame has width x height of 20 x 9, even though I have a .Xresources file containing
   Emacs*geometry: 100x40+1900+0
end a default-frame-alist of
  Value:
  ((font . "Monospace-10")
   (height . 42)
   (width . 90)
   (tool-bar-lines . 0)
   (menu-bar-lines . 1)
   (top . 0)
   (left . 1200))
  Original value was nil
set up by my .emacs file.

Using either the pull-down File->New Frame, or C-x 5 2, both generate new frames of the 20 x 9 size.

I can send the .emacs file if needed, but note that "emacs -D' also gives the same default size of 20 x 9, so I don't think it is a problem with my .emacs file - which did work OK under Ubuntu 22.04 and emacs28.

Any insights gratefully received.

cheers,
-- John Hurst
--
-- ajh AT ajhurst DOT org                       ~ ~~~&#:
--  (mob 0407 569 292)              _..___  ---____@___H__
-- (local)  ajh.co                  |_____[_|_________[__]_
-- (global) ajhurst.org              oo oo  oo O--O--O o=o
--
-- Hurst's Third Law of telecommunications: 
--    ISPs are not as smart as spammers





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#73245: Emacs29.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.41
  2024-09-14  2:42 bug#73244: Emacs29.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.41 John Hurst
@ 2024-09-14  2:45 ` John Hurst
  2024-09-14  7:23   ` Eli Zaretskii
  2024-09-14  7:25 ` bug#73244: " Eli Zaretskii
  2024-09-21  9:50 ` Eli Zaretskii
  2 siblings, 1 reply; 14+ messages in thread
From: John Hurst @ 2024-09-14  2:45 UTC (permalink / raw)
  To: 73245

Sorry, forgot to add, in case it is relevant, that when run from the command line, emacs gives many messages of the form:
  (emacs:1556302): Gtk-CRITICAL **: 12:40:47.974: gtk_distribute_natural_allocation: assertion 'extra_space >= 0' failed

This means nothing to me, but presumably is important?

cheers,
-- John Hurst
--
-- ajh AT ajhurst DOT org                       ~ ~~~&#:
--  (mob 0407 569 292)              _..___  ---____@___H__
-- (local)  ajh.co                  |_____[_|_________[__]_
-- (global) ajhurst.org              oo oo  oo O--O--O o=o
--
-- Hurst's Third Law of telecommunications: 
--    ISPs are not as smart as spammers

On Sat, 14 Sep 2024, at 12:42, John Hurst wrote:
> Sorry if this is the wrong place to post a bug, but I tried the M-x 
> report-emacs-bug, and it just said "Cannot open load file: No such file 
> or directory, emacs-19"??
>
> The bug I have, since upgrading to Ubuntu 24.04 and install emacs29 is 
> that the initial frame has width x height of 20 x 9, even though I have 
> a .Xresources file containing
>    Emacs*geometry: 100x40+1900+0
> end a default-frame-alist of
>   Value:
>   ((font . "Monospace-10")
>    (height . 42)
>    (width . 90)
>    (tool-bar-lines . 0)
>    (menu-bar-lines . 1)
>    (top . 0)
>    (left . 1200))
>   Original value was nil
> set up by my .emacs file.
>
> Using either the pull-down File->New Frame, or C-x 5 2, both generate 
> new frames of the 20 x 9 size.
>
> I can send the .emacs file if needed, but note that "emacs -D' also 
> gives the same default size of 20 x 9, so I don't think it is a problem 
> with my .emacs file - which did work OK under Ubuntu 22.04 and emacs28.
>
> Any insights gratefully received.
>
> cheers,
> -- John Hurst
> --
> -- ajh AT ajhurst DOT org                       ~ ~~~&#:
> --  (mob 0407 569 292)              _..___  ---____@___H__
> -- (local)  ajh.co                  |_____[_|_________[__]_
> -- (global) ajhurst.org              oo oo  oo O--O--O o=o
> --
> -- Hurst's Third Law of telecommunications: 
> --    ISPs are not as smart as spammers





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#73245: Emacs29.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.41
  2024-09-14  2:45 ` bug#73245: " John Hurst
@ 2024-09-14  7:23   ` Eli Zaretskii
  0 siblings, 0 replies; 14+ messages in thread
From: Eli Zaretskii @ 2024-09-14  7:23 UTC (permalink / raw)
  To: John Hurst; +Cc: 73245

merge 73245 73244
thanks

> Date: Sat, 14 Sep 2024 12:45:08 +1000
> From: "John Hurst" <ajh@ajhurst.org>
> 
> Sorry, forgot to add, in case it is relevant, that when run from the command line, emacs gives many messages of the form:
>   (emacs:1556302): Gtk-CRITICAL **: 12:40:47.974: gtk_distribute_natural_allocation: assertion 'extra_space >= 0' failed
> 
> This means nothing to me, but presumably is important?

For some reason, debbugs created a new bug from this, so I'm now
merging them.





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#73244: Emacs29.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.41
  2024-09-14  2:42 bug#73244: Emacs29.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.41 John Hurst
  2024-09-14  2:45 ` bug#73245: " John Hurst
@ 2024-09-14  7:25 ` Eli Zaretskii
  2024-09-21  9:50 ` Eli Zaretskii
  2 siblings, 0 replies; 14+ messages in thread
From: Eli Zaretskii @ 2024-09-14  7:25 UTC (permalink / raw)
  To: John Hurst; +Cc: 73244

> Date: Sat, 14 Sep 2024 12:42:50 +1000
> From: "John Hurst" <ajh@ajhurst.org>
> 
> Sorry if this is the wrong place to post a bug, but I tried the M-x report-emacs-bug, and it just said "Cannot open load file: No such file or directory, emacs-19"??

Probably some of your customizations point to such a file or
directory.  Please take a good look at your init files.





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#73244: Emacs29.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.41
  2024-09-14  2:42 bug#73244: Emacs29.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.41 John Hurst
  2024-09-14  2:45 ` bug#73245: " John Hurst
  2024-09-14  7:25 ` bug#73244: " Eli Zaretskii
@ 2024-09-21  9:50 ` Eli Zaretskii
  2024-09-21  9:58   ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2 siblings, 1 reply; 14+ messages in thread
From: Eli Zaretskii @ 2024-09-21  9:50 UTC (permalink / raw)
  To: John Hurst, Po Lu; +Cc: 73244

> Date: Sat, 14 Sep 2024 12:42:50 +1000
> From: "John Hurst" <ajh@ajhurst.org>
> 
> The bug I have, since upgrading to Ubuntu 24.04 and install emacs29 is that the initial frame has width x height of 20 x 9, even though I have a .Xresources file containing
>    Emacs*geometry: 100x40+1900+0
> end a default-frame-alist of
>   Value:
>   ((font . "Monospace-10")
>    (height . 42)
>    (width . 90)
>    (tool-bar-lines . 0)
>    (menu-bar-lines . 1)
>    (top . 0)
>    (left . 1200))
>   Original value was nil
> set up by my .emacs file.
> 
> Using either the pull-down File->New Frame, or C-x 5 2, both generate new frames of the 20 x 9 size.
> 
> I can send the .emacs file if needed, but note that "emacs -D' also gives the same default size of 20 x 9, so I don't think it is a problem with my .emacs file - which did work OK under Ubuntu 22.04 and emacs28.

Po Lu, any comments or suggestions?





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#73244: Emacs29.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.41
  2024-09-21  9:50 ` Eli Zaretskii
@ 2024-09-21  9:58   ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2024-09-21 11:19     ` Eli Zaretskii
  0 siblings, 1 reply; 14+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-09-21  9:58 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: John Hurst, 73244

Eli Zaretskii <eliz@gnu.org> writes:

>> Date: Sat, 14 Sep 2024 12:42:50 +1000
>> From: "John Hurst" <ajh@ajhurst.org>
>> 
>> The bug I have, since upgrading to Ubuntu 24.04 and install emacs29 is that the initial frame has width x height of 20 x 9, even though I have a .Xresources file containing
>>    Emacs*geometry: 100x40+1900+0
>> end a default-frame-alist of
>>   Value:
>>   ((font . "Monospace-10")
>>    (height . 42)
>>    (width . 90)
>>    (tool-bar-lines . 0)
>>    (menu-bar-lines . 1)
>>    (top . 0)
>>    (left . 1200))
>>   Original value was nil
>> set up by my .emacs file.
>> 
>> Using either the pull-down File->New Frame, or C-x 5 2, both generate new frames of the 20 x 9 size.
>> 
>> I can send the .emacs file if needed, but note that "emacs -D' also gives the same default size of 20 x 9, so I don't think it is a problem with my .emacs file - which did work OK under Ubuntu 22.04 and emacs28.
>
> Po Lu, any comments or suggestions?

From what I've heard, the culprit is rather the upgrade to Ubuntu 24.04
than to Emacs 29, and the problem will disappear if Emacs is configured
with another toolkit than GTK.





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#73244: Emacs29.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.41
  2024-09-21  9:58   ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2024-09-21 11:19     ` Eli Zaretskii
  2024-10-05  9:55       ` Eli Zaretskii
  0 siblings, 1 reply; 14+ messages in thread
From: Eli Zaretskii @ 2024-09-21 11:19 UTC (permalink / raw)
  To: Po Lu; +Cc: ajh, 73244

> From: Po Lu <luangruo@yahoo.com>
> Cc: "John Hurst" <ajh@ajhurst.org>,  73244@debbugs.gnu.org
> Date: Sat, 21 Sep 2024 17:58:00 +0800
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> >> Date: Sat, 14 Sep 2024 12:42:50 +1000
> >> From: "John Hurst" <ajh@ajhurst.org>
> >> 
> >> The bug I have, since upgrading to Ubuntu 24.04 and install emacs29 is that the initial frame has width x height of 20 x 9, even though I have a .Xresources file containing
> >>    Emacs*geometry: 100x40+1900+0
> >> end a default-frame-alist of
> >>   Value:
> >>   ((font . "Monospace-10")
> >>    (height . 42)
> >>    (width . 90)
> >>    (tool-bar-lines . 0)
> >>    (menu-bar-lines . 1)
> >>    (top . 0)
> >>    (left . 1200))
> >>   Original value was nil
> >> set up by my .emacs file.
> >> 
> >> Using either the pull-down File->New Frame, or C-x 5 2, both generate new frames of the 20 x 9 size.
> >> 
> >> I can send the .emacs file if needed, but note that "emacs -D' also gives the same default size of 20 x 9, so I don't think it is a problem with my .emacs file - which did work OK under Ubuntu 22.04 and emacs28.
> >
> > Po Lu, any comments or suggestions?
> 
> >From what I've heard, the culprit is rather the upgrade to Ubuntu 24.04
> than to Emacs 29, and the problem will disappear if Emacs is configured
> with another toolkit than GTK.

Does it mean that GTK which comes with Ubuntu 24.04 is unusable with
Emacs?  What exactly in GTK causes this?





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#73244: Emacs29.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.41
  2024-09-21 11:19     ` Eli Zaretskii
@ 2024-10-05  9:55       ` Eli Zaretskii
  2024-10-05 11:05         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 14+ messages in thread
From: Eli Zaretskii @ 2024-10-05  9:55 UTC (permalink / raw)
  To: luangruo; +Cc: ajh, 73244

Ping!

> Cc: ajh@ajhurst.org, 73244@debbugs.gnu.org
> Date: Sat, 21 Sep 2024 14:19:12 +0300
> From: Eli Zaretskii <eliz@gnu.org>
> 
> > From: Po Lu <luangruo@yahoo.com>
> > Cc: "John Hurst" <ajh@ajhurst.org>,  73244@debbugs.gnu.org
> > Date: Sat, 21 Sep 2024 17:58:00 +0800
> > 
> > Eli Zaretskii <eliz@gnu.org> writes:
> > 
> > >> Date: Sat, 14 Sep 2024 12:42:50 +1000
> > >> From: "John Hurst" <ajh@ajhurst.org>
> > >> 
> > >> The bug I have, since upgrading to Ubuntu 24.04 and install emacs29 is that the initial frame has width x height of 20 x 9, even though I have a .Xresources file containing
> > >>    Emacs*geometry: 100x40+1900+0
> > >> end a default-frame-alist of
> > >>   Value:
> > >>   ((font . "Monospace-10")
> > >>    (height . 42)
> > >>    (width . 90)
> > >>    (tool-bar-lines . 0)
> > >>    (menu-bar-lines . 1)
> > >>    (top . 0)
> > >>    (left . 1200))
> > >>   Original value was nil
> > >> set up by my .emacs file.
> > >> 
> > >> Using either the pull-down File->New Frame, or C-x 5 2, both generate new frames of the 20 x 9 size.
> > >> 
> > >> I can send the .emacs file if needed, but note that "emacs -D' also gives the same default size of 20 x 9, so I don't think it is a problem with my .emacs file - which did work OK under Ubuntu 22.04 and emacs28.
> > >
> > > Po Lu, any comments or suggestions?
> > 
> > >From what I've heard, the culprit is rather the upgrade to Ubuntu 24.04
> > than to Emacs 29, and the problem will disappear if Emacs is configured
> > with another toolkit than GTK.
> 
> Does it mean that GTK which comes with Ubuntu 24.04 is unusable with
> Emacs?  What exactly in GTK causes this?
> 
> 
> 
> 





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#73244: Emacs29.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.41
  2024-10-05  9:55       ` Eli Zaretskii
@ 2024-10-05 11:05         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2024-10-12 11:48           ` Eli Zaretskii
  0 siblings, 1 reply; 14+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-10-05 11:05 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: ajh, 73244

Eli Zaretskii <eliz@gnu.org> writes:

> Ping!
>
>> Cc: ajh@ajhurst.org, 73244@debbugs.gnu.org
>> Date: Sat, 21 Sep 2024 14:19:12 +0300
>> From: Eli Zaretskii <eliz@gnu.org>
>> 
>> > From: Po Lu <luangruo@yahoo.com>
>> > Cc: "John Hurst" <ajh@ajhurst.org>,  73244@debbugs.gnu.org
>> > Date: Sat, 21 Sep 2024 17:58:00 +0800
>> > 
>> > Eli Zaretskii <eliz@gnu.org> writes:
>> > 
>> > >> Date: Sat, 14 Sep 2024 12:42:50 +1000
>> > >> From: "John Hurst" <ajh@ajhurst.org>
>> > >> 
>> > >> The bug I have, since upgrading to Ubuntu 24.04 and install emacs29 is that the initial frame has width x height of 20 x 9, even though I have a .Xresources file containing
>> > >>    Emacs*geometry: 100x40+1900+0
>> > >> end a default-frame-alist of
>> > >>   Value:
>> > >>   ((font . "Monospace-10")
>> > >>    (height . 42)
>> > >>    (width . 90)
>> > >>    (tool-bar-lines . 0)
>> > >>    (menu-bar-lines . 1)
>> > >>    (top . 0)
>> > >>    (left . 1200))
>> > >>   Original value was nil
>> > >> set up by my .emacs file.
>> > >> 
>> > >> Using either the pull-down File->New Frame, or C-x 5 2, both generate new frames of the 20 x 9 size.
>> > >> 
>> > >> I can send the .emacs file if needed, but note that "emacs -D' also gives the same default size of 20 x 9, so I don't think it is a problem with my .emacs file - which did work OK under Ubuntu 22.04 and emacs28.
>> > >
>> > > Po Lu, any comments or suggestions?
>> > 
>> > >From what I've heard, the culprit is rather the upgrade to Ubuntu 24.04
>> > than to Emacs 29, and the problem will disappear if Emacs is configured
>> > with another toolkit than GTK.
>> 
>> Does it mean that GTK which comes with Ubuntu 24.04 is unusable with
>> Emacs?  What exactly in GTK causes this?

Sorry for the belated response.  We don't know yet, and it's not an
issue with GTK, but with some past update to the window manager.





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#73244: Emacs29.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.41
  2024-10-05 11:05         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2024-10-12 11:48           ` Eli Zaretskii
  2024-10-13 21:29             ` John Hurst
  0 siblings, 1 reply; 14+ messages in thread
From: Eli Zaretskii @ 2024-10-12 11:48 UTC (permalink / raw)
  To: Po Lu; +Cc: ajh, 73244

> From: Po Lu <luangruo@yahoo.com>
> Cc: ajh@ajhurst.org,  73244@debbugs.gnu.org
> Date: Sat, 05 Oct 2024 19:05:30 +0800
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > Ping!
> >
> >> Cc: ajh@ajhurst.org, 73244@debbugs.gnu.org
> >> Date: Sat, 21 Sep 2024 14:19:12 +0300
> >> From: Eli Zaretskii <eliz@gnu.org>
> >> 
> >> > From: Po Lu <luangruo@yahoo.com>
> >> > Cc: "John Hurst" <ajh@ajhurst.org>,  73244@debbugs.gnu.org
> >> > Date: Sat, 21 Sep 2024 17:58:00 +0800
> >> > 
> >> > Eli Zaretskii <eliz@gnu.org> writes:
> >> > 
> >> > >> Date: Sat, 14 Sep 2024 12:42:50 +1000
> >> > >> From: "John Hurst" <ajh@ajhurst.org>
> >> > >> 
> >> > >> The bug I have, since upgrading to Ubuntu 24.04 and install emacs29 is that the initial frame has width x height of 20 x 9, even though I have a .Xresources file containing
> >> > >>    Emacs*geometry: 100x40+1900+0
> >> > >> end a default-frame-alist of
> >> > >>   Value:
> >> > >>   ((font . "Monospace-10")
> >> > >>    (height . 42)
> >> > >>    (width . 90)
> >> > >>    (tool-bar-lines . 0)
> >> > >>    (menu-bar-lines . 1)
> >> > >>    (top . 0)
> >> > >>    (left . 1200))
> >> > >>   Original value was nil
> >> > >> set up by my .emacs file.
> >> > >> 
> >> > >> Using either the pull-down File->New Frame, or C-x 5 2, both generate new frames of the 20 x 9 size.
> >> > >> 
> >> > >> I can send the .emacs file if needed, but note that "emacs -D' also gives the same default size of 20 x 9, so I don't think it is a problem with my .emacs file - which did work OK under Ubuntu 22.04 and emacs28.
> >> > >
> >> > > Po Lu, any comments or suggestions?
> >> > 
> >> > >From what I've heard, the culprit is rather the upgrade to Ubuntu 24.04
> >> > than to Emacs 29, and the problem will disappear if Emacs is configured
> >> > with another toolkit than GTK.
> >> 
> >> Does it mean that GTK which comes with Ubuntu 24.04 is unusable with
> >> Emacs?  What exactly in GTK causes this?
> 
> Sorry for the belated response.  We don't know yet, and it's not an
> issue with GTK, but with some past update to the window manager.

How should we proceed with this bug, then?





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#73244: Emacs29.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.41
  2024-10-12 11:48           ` Eli Zaretskii
@ 2024-10-13 21:29             ` John Hurst
  2024-10-13 23:33               ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 14+ messages in thread
From: John Hurst @ 2024-10-13 21:29 UTC (permalink / raw)
  To: Eli Zaretskii, Po Lu; +Cc: 73244

Do you need any more input from me?

I have noticed a few other reports of similar bugs, so I would be surprised if it was only me.

cheers,
-- John Hurst
--
-- ajh AT ajhurst DOT org                       ~ ~~~&#:
--  (mob 0407 569 292)              _..___  ---____@___H__
-- (local)  ajh.co                  |_____[_|_________[__]_
-- (global) ajhurst.org              oo oo  oo O--O--O o=o
--
-- Hurst's Third Law of telecommunications: 
--    ISPs are not as smart as spammers

On Sat, 12 Oct 2024, at 22:48, Eli Zaretskii wrote:
>> From: Po Lu <luangruo@yahoo.com>
>> Cc: ajh@ajhurst.org,  73244@debbugs.gnu.org
>> Date: Sat, 05 Oct 2024 19:05:30 +0800
>> 
>> Eli Zaretskii <eliz@gnu.org> writes:
>> 
>> > Ping!
>> >
>> >> Cc: ajh@ajhurst.org, 73244@debbugs.gnu.org
>> >> Date: Sat, 21 Sep 2024 14:19:12 +0300
>> >> From: Eli Zaretskii <eliz@gnu.org>
>> >> 
>> >> > From: Po Lu <luangruo@yahoo.com>
>> >> > Cc: "John Hurst" <ajh@ajhurst.org>,  73244@debbugs.gnu.org
>> >> > Date: Sat, 21 Sep 2024 17:58:00 +0800
>> >> > 
>> >> > Eli Zaretskii <eliz@gnu.org> writes:
>> >> > 
>> >> > >> Date: Sat, 14 Sep 2024 12:42:50 +1000
>> >> > >> From: "John Hurst" <ajh@ajhurst.org>
>> >> > >> 
>> >> > >> The bug I have, since upgrading to Ubuntu 24.04 and install emacs29 is that the initial frame has width x height of 20 x 9, even though I have a .Xresources file containing
>> >> > >>    Emacs*geometry: 100x40+1900+0
>> >> > >> end a default-frame-alist of
>> >> > >>   Value:
>> >> > >>   ((font . "Monospace-10")
>> >> > >>    (height . 42)
>> >> > >>    (width . 90)
>> >> > >>    (tool-bar-lines . 0)
>> >> > >>    (menu-bar-lines . 1)
>> >> > >>    (top . 0)
>> >> > >>    (left . 1200))
>> >> > >>   Original value was nil
>> >> > >> set up by my .emacs file.
>> >> > >> 
>> >> > >> Using either the pull-down File->New Frame, or C-x 5 2, both generate new frames of the 20 x 9 size.
>> >> > >> 
>> >> > >> I can send the .emacs file if needed, but note that "emacs -D' also gives the same default size of 20 x 9, so I don't think it is a problem with my .emacs file - which did work OK under Ubuntu 22.04 and emacs28.
>> >> > >
>> >> > > Po Lu, any comments or suggestions?
>> >> > 
>> >> > >From what I've heard, the culprit is rather the upgrade to Ubuntu 24.04
>> >> > than to Emacs 29, and the problem will disappear if Emacs is configured
>> >> > with another toolkit than GTK.
>> >> 
>> >> Does it mean that GTK which comes with Ubuntu 24.04 is unusable with
>> >> Emacs?  What exactly in GTK causes this?
>> 
>> Sorry for the belated response.  We don't know yet, and it's not an
>> issue with GTK, but with some past update to the window manager.
>
> How should we proceed with this bug, then?





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#73244: Emacs29.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.41
  2024-10-13 21:29             ` John Hurst
@ 2024-10-13 23:33               ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2024-10-14 13:33                 ` Eli Zaretskii
  0 siblings, 1 reply; 14+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-10-13 23:33 UTC (permalink / raw)
  To: John Hurst; +Cc: Eli Zaretskii, 73244

"John Hurst" <ajh@ajhurst.org> writes:

> Do you need any more input from me?
>
> I have noticed a few other reports of similar bugs, so I would be
> surprised if it was only me.
>
> cheers,
> -- John Hurst
> --
> -- ajh AT ajhurst DOT org                       ~ ~~~&#:
> --  (mob 0407 569 292)              _..___  ---____@___H__
> -- (local)  ajh.co                  |_____[_|_________[__]_
> -- (global) ajhurst.org              oo oo  oo O--O--O o=o
> --
> -- Hurst's Third Law of telecommunications: 
> --    ISPs are not as smart as spammers
>
> On Sat, 12 Oct 2024, at 22:48, Eli Zaretskii wrote:
>>> From: Po Lu <luangruo@yahoo.com>
>>> Cc: ajh@ajhurst.org,  73244@debbugs.gnu.org
>>> Date: Sat, 05 Oct 2024 19:05:30 +0800
>>> 
>>> Eli Zaretskii <eliz@gnu.org> writes:
>>> 
>>> > Ping!
>>> >
>>> >> Cc: ajh@ajhurst.org, 73244@debbugs.gnu.org
>>> >> Date: Sat, 21 Sep 2024 14:19:12 +0300
>>> >> From: Eli Zaretskii <eliz@gnu.org>
>>> >> 
>>> >> > From: Po Lu <luangruo@yahoo.com>
>>> >> > Cc: "John Hurst" <ajh@ajhurst.org>,  73244@debbugs.gnu.org
>>> >> > Date: Sat, 21 Sep 2024 17:58:00 +0800
>>> >> > 
>>> >> > Eli Zaretskii <eliz@gnu.org> writes:
>>> >> > 
>>> >> > >> Date: Sat, 14 Sep 2024 12:42:50 +1000
>>> >> > >> From: "John Hurst" <ajh@ajhurst.org>
>>> >> > >> 
>>> >> > >> The bug I have, since upgrading to Ubuntu 24.04 and install emacs29 is that the initial frame has width x height of 20 x 9, even though I have a .Xresources file containing
>>> >> > >>    Emacs*geometry: 100x40+1900+0
>>> >> > >> end a default-frame-alist of
>>> >> > >>   Value:
>>> >> > >>   ((font . "Monospace-10")
>>> >> > >>    (height . 42)
>>> >> > >>    (width . 90)
>>> >> > >>    (tool-bar-lines . 0)
>>> >> > >>    (menu-bar-lines . 1)
>>> >> > >>    (top . 0)
>>> >> > >>    (left . 1200))
>>> >> > >>   Original value was nil
>>> >> > >> set up by my .emacs file.
>>> >> > >> 
>>> >> > >> Using either the pull-down File->New Frame, or C-x 5 2, both generate new frames of the 20 x 9 size.
>>> >> > >> 
>>> >> > >> I can send the .emacs file if needed, but note that "emacs -D' also gives the same default size of 20 x 9, so I don't think it is a problem with my .emacs file - which did work OK under Ubuntu 22.04 and emacs28.
>>> >> > >
>>> >> > > Po Lu, any comments or suggestions?
>>> >> > 
>>> >> > >From what I've heard, the culprit is rather the upgrade to Ubuntu 24.04
>>> >> > than to Emacs 29, and the problem will disappear if Emacs is configured
>>> >> > with another toolkit than GTK.
>>> >> 
>>> >> Does it mean that GTK which comes with Ubuntu 24.04 is unusable with
>>> >> Emacs?  What exactly in GTK causes this?
>>> 
>>> Sorry for the belated response.  We don't know yet, and it's not an
>>> issue with GTK, but with some past update to the window manager.
>>
>> How should we proceed with this bug, then?

No, I think the right person to contact is Martin, who devoted many
weeks to investigating the matter on emacs-devel.





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#73244: Emacs29.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.41
  2024-10-13 23:33               ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2024-10-14 13:33                 ` Eli Zaretskii
  2024-10-14 15:58                   ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 14+ messages in thread
From: Eli Zaretskii @ 2024-10-14 13:33 UTC (permalink / raw)
  To: Po Lu, martin rudalics; +Cc: ajh, 73244

> From: Po Lu <luangruo@yahoo.com>
> Cc: "Eli Zaretskii" <eliz@gnu.org>,  73244@debbugs.gnu.org
> Date: Mon, 14 Oct 2024 07:33:44 +0800
> 
> "John Hurst" <ajh@ajhurst.org> writes:
> 
> > Do you need any more input from me?
> >
> > I have noticed a few other reports of similar bugs, so I would be
> > surprised if it was only me.
> >
> > cheers,
> > -- John Hurst
> > --
> > -- ajh AT ajhurst DOT org                       ~ ~~~&#:
> > --  (mob 0407 569 292)              _..___  ---____@___H__
> > -- (local)  ajh.co                  |_____[_|_________[__]_
> > -- (global) ajhurst.org              oo oo  oo O--O--O o=o
> > --
> > -- Hurst's Third Law of telecommunications: 
> > --    ISPs are not as smart as spammers
> >
> > On Sat, 12 Oct 2024, at 22:48, Eli Zaretskii wrote:
> >>> From: Po Lu <luangruo@yahoo.com>
> >>> Cc: ajh@ajhurst.org,  73244@debbugs.gnu.org
> >>> Date: Sat, 05 Oct 2024 19:05:30 +0800
> >>> 
> >>> Eli Zaretskii <eliz@gnu.org> writes:
> >>> 
> >>> > Ping!
> >>> >
> >>> >> Cc: ajh@ajhurst.org, 73244@debbugs.gnu.org
> >>> >> Date: Sat, 21 Sep 2024 14:19:12 +0300
> >>> >> From: Eli Zaretskii <eliz@gnu.org>
> >>> >> 
> >>> >> > From: Po Lu <luangruo@yahoo.com>
> >>> >> > Cc: "John Hurst" <ajh@ajhurst.org>,  73244@debbugs.gnu.org
> >>> >> > Date: Sat, 21 Sep 2024 17:58:00 +0800
> >>> >> > 
> >>> >> > Eli Zaretskii <eliz@gnu.org> writes:
> >>> >> > 
> >>> >> > >> Date: Sat, 14 Sep 2024 12:42:50 +1000
> >>> >> > >> From: "John Hurst" <ajh@ajhurst.org>
> >>> >> > >> 
> >>> >> > >> The bug I have, since upgrading to Ubuntu 24.04 and install emacs29 is that the initial frame has width x height of 20 x 9, even though I have a .Xresources file containing
> >>> >> > >>    Emacs*geometry: 100x40+1900+0
> >>> >> > >> end a default-frame-alist of
> >>> >> > >>   Value:
> >>> >> > >>   ((font . "Monospace-10")
> >>> >> > >>    (height . 42)
> >>> >> > >>    (width . 90)
> >>> >> > >>    (tool-bar-lines . 0)
> >>> >> > >>    (menu-bar-lines . 1)
> >>> >> > >>    (top . 0)
> >>> >> > >>    (left . 1200))
> >>> >> > >>   Original value was nil
> >>> >> > >> set up by my .emacs file.
> >>> >> > >> 
> >>> >> > >> Using either the pull-down File->New Frame, or C-x 5 2, both generate new frames of the 20 x 9 size.
> >>> >> > >> 
> >>> >> > >> I can send the .emacs file if needed, but note that "emacs -D' also gives the same default size of 20 x 9, so I don't think it is a problem with my .emacs file - which did work OK under Ubuntu 22.04 and emacs28.
> >>> >> > >
> >>> >> > > Po Lu, any comments or suggestions?
> >>> >> > 
> >>> >> > >From what I've heard, the culprit is rather the upgrade to Ubuntu 24.04
> >>> >> > than to Emacs 29, and the problem will disappear if Emacs is configured
> >>> >> > with another toolkit than GTK.
> >>> >> 
> >>> >> Does it mean that GTK which comes with Ubuntu 24.04 is unusable with
> >>> >> Emacs?  What exactly in GTK causes this?
> >>> 
> >>> Sorry for the belated response.  We don't know yet, and it's not an
> >>> issue with GTK, but with some past update to the window manager.
> >>
> >> How should we proceed with this bug, then?
> 
> No, I think the right person to contact is Martin, who devoted many
> weeks to investigating the matter on emacs-devel.

Martin, any suggestions or ideas?





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#73244: Emacs29.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.41
  2024-10-14 13:33                 ` Eli Zaretskii
@ 2024-10-14 15:58                   ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 0 replies; 14+ messages in thread
From: martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-10-14 15:58 UTC (permalink / raw)
  To: Eli Zaretskii, Po Lu; +Cc: ajh, 73244

[-- Attachment #1: Type: text/plain, Size: 1571 bytes --]

 >>>>>>>>>> The bug I have, since upgrading to Ubuntu 24.04 and install emacs29 is that the initial frame has width x height of 20 x 9, even though I have a .Xresources file containing
 >>>>>>>>>>     Emacs*geometry: 100x40+1900+0
 >>>>>>>>>> end a default-frame-alist of
 >>>>>>>>>>    Value:
 >>>>>>>>>>    ((font . "Monospace-10")
 >>>>>>>>>>     (height . 42)
 >>>>>>>>>>     (width . 90)
 >>>>>>>>>>     (tool-bar-lines . 0)
 >>>>>>>>>>     (menu-bar-lines . 1)
 >>>>>>>>>>     (top . 0)
 >>>>>>>>>>     (left . 1200))
 >>>>>>>>>>    Original value was nil
 >>>>>>>>>> set up by my .emacs file.
 >>>>>>>>>>
 >>>>>>>>>> Using either the pull-down File->New Frame, or C-x 5 2, both generate new frames of the 20 x 9 size.
...
 > Martin, any suggestions or ideas?

Welcome to the club, John.  Some standard questions:

- You're using GNOME desktop and the mutter window manager.  Right?  If
   so, what does mutter --version tell?  Can you try setting the
   environment variable MUTTER_DEBUG="geometry" and then look into stderr
   whether anything shows up there at all?  If so, we could try to
   investigate further.

- Is your screen scaled?

- What does evaluating (frame-geometry) tell for the first frame?  What
   do (frame-char-height) and (frame-char-width) evaluate too?

- Can you build with other toolkits?  GTK2, Lucid, Motif or with the
   --with-x-toolkit=no option?

- Can you build with the attached patch?  If so, please evaluate the
   form (frame--size-history) and post the contents of the the buffer
   *frame-size-history* here.

Thanks, martin

[-- Attachment #2: gtkutil-reject-2024-10-01.diff --]
[-- Type: text/x-patch, Size: 3891 bytes --]

diff --git a/src/frame.c b/src/frame.c
index 7f4bf274ad9..6b6f6aa3c5c 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -6769,7 +6769,7 @@ focus (where a frame immediately loses focus when it's left by the mouse
 
 The function `frame--size-history' displays the value of this variable
 in a more readable form.  */);
-    frame_size_history = Qnil;
+  frame_size_history = Fcons (make_fixnum (100), Qnil);
 
   DEFVAR_BOOL ("tooltip-reuse-hidden-frame", tooltip_reuse_hidden_frame,
 	       doc: /* Non-nil means reuse hidden tooltip frames.
diff --git a/src/gtkutil.c b/src/gtkutil.c
index d57627f152f..a02be51600e 100644
--- a/src/gtkutil.c
+++ b/src/gtkutil.c
@@ -1129,11 +1129,48 @@ xg_set_geometry (struct frame *f)
     }
 }
 
+static struct frame *last_resize_frame = NULL;
+static int last_resize_height = -1;
+static int last_resize_width = -1;
+static int last_resize_count = 0;
+
 /** Function to handle resize of native frame F to WIDTH and HEIGHT
     pixels after we got a ConfigureNotify event.  */
 void
 xg_frame_resized (struct frame *f, int width, int height)
 {
+#ifndef HAVE_PGTK
+  if (f == last_resize_frame
+      && (width != ((last_resize_width * xg_get_scale (f))
+		    - FRAME_TOOLBAR_WIDTH (f))
+	  || height != ((last_resize_height * xg_get_scale (f))
+			- FRAME_MENUBAR_HEIGHT (f)
+			- FRAME_TOOLBAR_HEIGHT (f)))
+      && last_resize_count <= 3)
+    /* We did not get what we wanted, retry.  */
+    {
+      if (CONSP (frame_size_history))
+	frame_size_history_extra
+	  (f, build_string ("xg_frame_resized, rejected"),
+	   FRAME_PIXEL_WIDTH (f), FRAME_PIXEL_HEIGHT (f), width, height,
+	   last_resize_width, last_resize_height);
+
+      gtk_window_resize (GTK_WINDOW (FRAME_GTK_OUTER_WIDGET (f)),
+			 last_resize_width, last_resize_height);
+
+      last_resize_count++;
+
+      return;
+    }
+  else
+    /* We either got what we asked for or lost the battle.  */
+    {
+      last_resize_frame = NULL;
+      last_resize_height = -1;
+      last_resize_width = -1;
+      last_resize_count = 0;
+    }
+#endif
   /* Ignore case where size of native rectangle didn't change.  */
   if (width != FRAME_PIXEL_WIDTH (f)
       || height != FRAME_PIXEL_HEIGHT (f)
@@ -1297,19 +1334,20 @@ xg_frame_set_char_size (struct frame *f, int width, int height)
   else
     {
 #ifndef HAVE_PGTK
+      last_resize_frame = f;
+      last_resize_width = outer_width;
+      last_resize_height = outer_height;
+      last_resize_count = 0;
+
       gtk_window_resize (GTK_WINDOW (FRAME_GTK_OUTER_WIDGET (f)),
 			 outer_width, outer_height);
 #else
       if (FRAME_GTK_OUTER_WIDGET (f))
-	{
-	  gtk_window_resize (GTK_WINDOW (FRAME_GTK_OUTER_WIDGET (f)),
-			     outer_width, outer_height);
-	}
+	gtk_window_resize (GTK_WINDOW (FRAME_GTK_OUTER_WIDGET (f)),
+			   outer_width, outer_height);
       else
-	{
-	  gtk_widget_set_size_request (FRAME_GTK_WIDGET (f),
-				       outer_width, outer_height);
-	}
+	gtk_widget_set_size_request (FRAME_GTK_WIDGET (f),
+				     outer_width, outer_height);
 #endif
       fullscreen = Qnil;
     }
@@ -1327,10 +1365,17 @@ xg_frame_set_char_size (struct frame *f, int width, int height)
   if (FRAME_VISIBLE_P (f) && !was_visible)
     {
       if (CONSP (frame_size_history))
-	frame_size_history_extra
-	  (f, build_string ("xg_frame_set_char_size, visible"),
-	   FRAME_PIXEL_WIDTH (f), FRAME_PIXEL_HEIGHT (f), width, height,
-	   f->new_width, f->new_height);
+	{
+	  frame_size_history_extra
+	    (f, build_string ("xg_frame_set_char_size, visible"),
+	     FRAME_PIXEL_WIDTH (f), FRAME_PIXEL_HEIGHT (f), width, height,
+	     f->new_width, f->new_height);
+
+	  if (gwidth > 0 || gheight > 0)
+	    frame_size_history_extra
+	      (f, build_string (" +values"), gwidth, gheight,
+	       outer_width, outer_height, -1, -1);
+	}
 
       /* Must call this to flush out events */
       (void)gtk_events_pending ();

^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2024-10-14 15:58 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-14  2:42 bug#73244: Emacs29.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.41 John Hurst
2024-09-14  2:45 ` bug#73245: " John Hurst
2024-09-14  7:23   ` Eli Zaretskii
2024-09-14  7:25 ` bug#73244: " Eli Zaretskii
2024-09-21  9:50 ` Eli Zaretskii
2024-09-21  9:58   ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-09-21 11:19     ` Eli Zaretskii
2024-10-05  9:55       ` Eli Zaretskii
2024-10-05 11:05         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-12 11:48           ` Eli Zaretskii
2024-10-13 21:29             ` John Hurst
2024-10-13 23:33               ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-14 13:33                 ` Eli Zaretskii
2024-10-14 15:58                   ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).