From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: Platform independent graphical display for Emacs Date: Fri, 24 Dec 2021 21:09:09 +0800 Message-ID: <87a6gqcfpm.fsf@yahoo.com> References: <87lf0a2uq0.fsf@gnus.org> <87bl16b95q.fsf@gmx.net> <87v8zeclbx.fsf@yahoo.com> <87r1a2ck8k.fsf@yahoo.com> <87mtkqciiu.fsf@yahoo.com> <87ilvechna.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9212"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux) Cc: xenodasein@tutanota.de To: xenodasein--- via "Emacs development discussions." Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Dec 24 14:11:24 2021 Return-path: Envelope-to: ged-emacs-devel@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 1n0kM0-0002DC-GE for ged-emacs-devel@m.gmane-mx.org; Fri, 24 Dec 2021 14:11:24 +0100 Original-Received: from localhost ([::1]:60664 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n0kLz-0005A5-4m for ged-emacs-devel@m.gmane-mx.org; Fri, 24 Dec 2021 08:11:23 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59018) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n0kK7-0003Qm-A5 for emacs-devel@gnu.org; Fri, 24 Dec 2021 08:09:27 -0500 Original-Received: from sonic313-56.consmr.mail.ne1.yahoo.com ([66.163.185.31]:35582) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n0kK2-0003df-7P for emacs-devel@gnu.org; Fri, 24 Dec 2021 08:09:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1640351359; bh=KPEmbbrE09NsoNsf8WQtl2PtqHvb6dnuAA4KAzFpKAo=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=oB9QIYcBibxoEHYRjcgY+RNPv+iZY14FyzgVJcqvefd3PfDURcyaoc6EdTpTQcDBsw541u1lL3yZcpoNR+hDh/lfguRB2FWD7fyTZXvb6oKE4hWELv5/NKeSTqtMaT8ycWVr438rT6ZTUtUDcRIlQCeuuluKL9PT+10mpoUmw5YkRflrsCpTDlJuQJMAbu//aM8wjcpiM/QFaQT6W9LuVkolkmxrc8Iy87YRhNQwInS43wMPEBHYfgvq0/o8Lx2LB07hQ7WUCmfeExzfjrFOzwnIknLoq+yrfhN06wICq3b36/4oSgtey4dVnxZ54HRH0l1alQ2xRbS+I0/Ng9kvrQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1640351359; bh=i4YJKDpBm6GR3kte31Vn00bpLhqvcLw+xEcFxMoQ4tq=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=QLDorXccC8G8mbw62vARWbu7qhiRYV1glbb44451QXRWPHI4VeFRF1w8Y+e8H6sKU81sq2K5BTs+oxZuCjlFrO4uhEUsv3iaWkXb7eRwAcOLi5q3AO0SeCod3AVVn8Ipowd5clxLNNRnprYg01L+O9ZhWcnd6jibQ9RqAu35vTb7geO12GZWz18OLrUckGwQTMT69xNMxZ2FDzAHk6yrOW8KwyfIIaozKDw+1gjJCbqwWM3Oac7Yq28EsgM7DLyQ9CTkFfnBL90x4san0KdTc3cJFwA56mSt0iHpR9CImQGUNnuoKMiU6cW7sw2I5LPR5MRlyhBWGlkLakJJ91nZyg== X-YMail-OSG: TdK3g6UVM1lXIW8Lo6qEocS32bwAyLp2wDeCiD7rkGv2ac6mD413kwo3Hfs5RUS FUKABj8Y.2loKJRbSZ0td6kHzBuGCEhnLFuWVY9aibt8fRJXV5WJpRiiVjmYWQVsAdW6eeDlWxXQ _byrwPOy6rsck2TQ6tswcXKkJ2cKcc0ZI.wmgmz7nTSoY3ndCo4eCUmARqqw4k.Bd_MCCCDmI6TC TuYqo1n8LXfXndrrkYAGxOlZ4yZLthLdNfibuUXL_5.DG7jCyG3nIVvfc2L45PTxu4hmnVhP7zN_ 39uHUjXQLCsajlLo8fqFjs8.fA8pLnF1OMdVZX6TGZdrGP4BJ1focm1iPmMmbsRUzq2MslychO4w qImfHcf2eVv_ToVXVatjNIr5apphyr8JE0LEO8BvLImDVfdfA0M2EHvIQOAiLm7e9APneKCobLjD _z08RYLL2fGv7CQuQSlUXLgQ28HEvQrtYdlizaA8S.4U.YLbZTFz41fR9EM7FhlvGGGlzO3JOmei Hfw_bZpYohLrAf0qKFGOR7BPVw.JR2cia_Pqhsp3FjEmMChsP3nJ20wXbkrbHG23VGnV2bT6ZxnH .lc1rAvFqXiY4y2p07Kd75Co2x5G90pd0mbL1NlVrZPhLkFc9RTjXzmo0Ctcxv7qY8rkwsX8YPN1 .HbUKsF7bglP6_TGKqy6cTZrqY4fQdyI69k9LuBs8ElNTAaDB61sem7ssVLPIwXc5jR0HYS7EkxB wjS3Se_t55eUG9n_6INSLaaKLlPgKiIjAB35oOkD1HwH_PojZNU2tn2IoeUVRLTYUABtIDWAUVNN 4c2s_Y1oP6rl_.Ml9On4P7C43lvpXhomePCoWmc.JD X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.ne1.yahoo.com with HTTP; Fri, 24 Dec 2021 13:09:19 +0000 Original-Received: by kubenode509.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 0f3132551ff0e86afbce74ce0eaf578d; Fri, 24 Dec 2021 13:09:14 +0000 (UTC) In-Reply-To: (xenodasein's message of "Fri, 24 Dec 2021 13:57:00 +0100 (CET)") X-Mailer: WebService/1.1.19498 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.185.31; envelope-from=luangruo@yahoo.com; helo=sonic313-56.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:283135 Archived-At: xenodasein--- via "Emacs development discussions." writes: > I grepped a bit, and there many conditional modifications to frame > related functions through #ifdef USE_GTK. This doesn't bode well for > a cross-platform frame logic, IMO. Is this what you referred to as > problematic? That's only the tip of the iceberg, but is completely unrelated to event handling, where the relevant conditional is `HAVE_GLIB'. The problem could be easily resolved if the GTK+ developers actually paid attention to our reasonable requests, but they refuse to do so because Emacs is, in their opinion, not a well-behaved program. Case in point: the nearly 20-year old GTK bug where GTK aborts when a display is closed. We used to longjmp out, but that used to cause GLib to emit a large amount of warnings, so that workaround was turned off, and doesn't work nowadays either. Another case in point: try resizing or creating a frame on a GTK build that is smaller than its menu bar, see what GTK does to it, and compare that behaviour (which cannot be turned off, at least when I tried) to the behaviour under an Xt or no-toolkit build. Then of course, there are the many other instances where the GTK developers refused to implement a basic feature, such as the ability to adjust the thumb size of a scrollbar, because they did not think it fit with their idea of how a program should behave appearance-wise.