From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#58489: 29.0.50; commit 74c07733698b95eb455edcafab8634a700a3194f breaks GTK version for some Ubuntu distributions Date: Fri, 14 Oct 2022 15:36:29 +0800 Message-ID: <87v8om97r6.fsf@yahoo.com> References: <87edvcyo8i.fsf@mat.ucm.es> <87y1tj9n2e.fsf@yahoo.com> <87tu47ufxw.fsf@mat.ucm.es> <87lepj9biv.fsf@yahoo.com> <878rlioqdo.fsf@mat.ucm.es> <874jw6anrz.fsf@yahoo.com> <87tu46na1c.fsf@mat.ucm.es> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6092"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: 58489@debbugs.gnu.org To: Uwe Brauer Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 14 09:40:00 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ojFIU-0001Li-VE for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 14 Oct 2022 09:39:59 +0200 Original-Received: from localhost ([::1]:40380 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ojFIT-0003k8-UV for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 14 Oct 2022 03:39:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44144) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ojFFe-0001pM-TQ for bug-gnu-emacs@gnu.org; Fri, 14 Oct 2022 03:37:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36596) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ojFFe-00073O-KG for bug-gnu-emacs@gnu.org; Fri, 14 Oct 2022 03:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ojFFe-0007XW-6m for bug-gnu-emacs@gnu.org; Fri, 14 Oct 2022 03:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Oct 2022 07:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58489 X-GNU-PR-Package: emacs Original-Received: via spool by 58489-submit@debbugs.gnu.org id=B58489.166573301428968 (code B ref 58489); Fri, 14 Oct 2022 07:37:02 +0000 Original-Received: (at 58489) by debbugs.gnu.org; 14 Oct 2022 07:36:54 +0000 Original-Received: from localhost ([127.0.0.1]:35674 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ojFFS-0007X4-T9 for submit@debbugs.gnu.org; Fri, 14 Oct 2022 03:36:54 -0400 Original-Received: from sonic306-20.consmr.mail.ne1.yahoo.com ([66.163.189.82]:34893) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ojFFN-0007Wj-3L for 58489@debbugs.gnu.org; Fri, 14 Oct 2022 03:36:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1665732999; bh=W6txv+1oBxXwLbtevj8LSLc4v16bvpYHPhrfHnSqOe8=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=VlFbVidQZ72tXLoUuKzJVLdWrGyCPRnZEWP/C8kERVXScrOktHkxHxYazps2ASsOp8Fx483Ki77JwTYoDorrr4y7NB5dfH3zcZirGk9JDQiPLGXCSx/pE0nnSC9iry6+djB9jGU2zoH7p5NJCSEaPywVNSDr7ztqVpgomlVC6A0VzQd/hnEKCrkDR29VIYEWsrddiWqTOLh6+m7BQv8Pk0La1STaZbaQu+sq9OLrG65qO45yaMM3eE9Enfky0eO0J+yT096adlWw3Icg3bRFnooD6WvhNMcbTEeNSHL7NvidMMvpVpMAhsVoUQ2RxyAcGVnXni5GEL2crvZ/ste1nA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1665732999; bh=iWEVpH/P2Zdnd0hvr+92vhHkrT6zPtDYpqM7TxT0Whu=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=KFVk/xklyxdLuFuHbT3wxgWA9dHMjhCuCcgP3qrfSkk/fVIyJHPSj1qjreTro889O8akUaT6CCvt7OrGv7GiONGvcR4nkm0bk2W9YpjAIen/vIG2a2j9lYmxaqJ5CQkq6TuahMPFSORx2zI2ujhVzOeQu75fiQDW4WvsJSNGBIHW1jIR+2bQKoDSONSX4JEeJGudBDUC9QxY50gBHHeZ/UrI1oQbp5uxwb43UVcR3IBOyZuFPN0dAxYS4EQjZPYNbsv0O2Jq145zmIPaEZvwM8gIooIuDoUv3MIN/xdXd3s7V5ApI5o5cNjN84FhiJZuJzbBOH1vI2pGvhCyXQZPTQ== X-YMail-OSG: rsW043kVM1l9GZuRyAFCbZUcQdfuHU4yF9bZdCWAY9oudTbme94kUcHyuB0XDf2 KUUMT3R6_xoiQuMAXn6xLYl82miw0RfYobbxiRi4ci_MOwunD2OHhtuULvCFSWSv8ed1gMjqk66w IueK33_ZQJpohJnk7E51ctmzxjh6WkCMcyynHMuXQfJIjn0Uti.BLjv2N34AcZI9Z7SGaUaYVkQ2 0fLSthCgTorPf.vU1baI0ukbYR0JnWojN0wz.Ti7A8FKBph66cy47teCXLDpvbQmDVu5VHbX4Qf7 PeZ5yn6WiXBgKLCeQ.Hd5775Xjo3pNx3PaT9pUxnwq3Rnl.x97fngRh_0VAmD0WeBKA3JWH3W__O WjHO3R44YmWD4er4lfrnFq5PEQWUTLaF7ZCFcUAje9PL2OCnacv5nPMUQBTisjiszLGrF673FWmw .L3Ct0f_b62kHFxRD7iX8zybjgzi2rN6K7CZB3wgtVLKN23Sz2OQYWdiIDg4QXZwvS0riSGaLQ8V 8nrMnaak5nCrJdLJiOB4f8gu3jocCP.QdEQKQuodfZYUfkff14Ev9NG3qPxF1NQ1THdaPfENQ3tg kd6S4IcChjGnqFSDL85QPq6hNGnkqYUeoFeQs71q8u50yq63DmkQvehiOHW4VG.ITmRj4tRgBKMJ oFzgGmIBoCCPDlMi.jOtX6Fr746gCGU_ZKsm7GKKsLKX.G59jXI4OvIPCAtSV2.Av5xzeBqX5MF. 9uv9flq17vMlWYL2E4JdJVtJedQDIFcTTQANUdkeZwcy.VDavvrTWe_Owed9mq2vQvXuLKRrnRUU 3l5CLqZV71fJBiEQNoqVOwd.Bb_GLH4cs0trIZ9nOk X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.ne1.yahoo.com with HTTP; Fri, 14 Oct 2022 07:36:39 +0000 Original-Received: by hermes--production-sg3-785466d859-8t5fd (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID aacc58536b2f7929bd8ede97e77a2ce7; Fri, 14 Oct 2022 07:36:34 +0000 (UTC) In-Reply-To: <87tu46na1c.fsf@mat.ucm.es> (Uwe Brauer's message of "Fri, 14 Oct 2022 09:23:27 +0200") X-Mailer: WebService/1.1.20740 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:245378 Archived-At: Uwe Brauer writes: >>>> "PL" =3D=3D Po Lu writes: > >> Uwe Brauer writes: >>> Then the screenshot with the early-init >>>=20 >>> It seems to look ok but when it finishes loading all my init files, it >>> looks like emacs -Q > >> Sigh. If you instrument emacsgtkfixed.c as follows: > >> if (hints->width_inc && data[5] % hints->width_inc) >> data[5] +=3D (hints->width_inc - (data[5] % hints->width_inc)); >> if (hints->height_inc && data[6] % hints->height_inc) >> data[6] +=3D (hints->height_inc - (data[6] % hints->height_inc)); >> (Add instrumentation following this line) >> fprintf (stderr, "XSetWMSizeHints: %l %l width_inc: %l height_inc: %l= \n", >> data[5], data[6], hints->width_inc, hints->height_inc) > >> what is printed when you start Emacs with "-Q", and Kwin shrinks your >> window? > > I don't know anything about that C code (and the last time, I did some C = coding is some 10 years ago) > > > Not sure I understand, I apply the patch attached below and run make agai= n: > > Then I get an error (so most likely I misunderstood you) > > > GEN globals.h > CC emacsgtkfixed.o > emacsgtkfixed.c: In function =E2=80=98XSetWMSizeHints=E2=80=99: > emacsgtkfixed.c:190:21: warning: unknown conversion type character 0x20 i= n format [-Wformat=3D] > fprintf (stderr, "XSetWMSizeHints: %l %l width_inc: %l height_inc: %l= \n", /* new code for testing */ > ^ > emacsgtkfixed.c:190:21: warning: unknown conversion type character 0x20 i= n format [-Wformat=3D] > emacsgtkfixed.c:190:21: warning: unknown conversion type character 0x20 i= n format [-Wformat=3D] > emacsgtkfixed.c:190:21: warning: unknown conversion type character 0xa in= format [-Wformat=3D] > emacsgtkfixed.c:190:21: warning: too many arguments for format [-Wformat-= extra-args] > emacsgtkfixed.c:192:6: error: expected =E2=80=98;=E2=80=99 before =E2=80= =98}=E2=80=99 token > } > ^ > Makefile:414: recipe for target 'emacsgtkfixed.o' failed > make: *** [emacsgtkfixed.o] Error 1 Ah, silly me. Please replace %l with %ld.