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.help Subject: Re: Would there be a drawback of using the same graphical toolkit on every platform? Date: Sun, 20 Feb 2022 09:10:23 +0800 Message-ID: <87pmnil4w0.fsf@yahoo.com> References: <87bkz3pltw.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="39676"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: emacsq , emacsq via Users list for the GNU Emacs text editor To: Arthur Miller Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 20 02:11:12 2022 Return-path: Envelope-to: geh-help-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 1nLako-000A7n-W4 for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 20 Feb 2022 02:11:11 +0100 Original-Received: from localhost ([::1]:49992 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nLakn-0008Ls-J0 for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 19 Feb 2022 20:11:09 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51780) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nLakJ-0008K7-Cv for help-gnu-emacs@gnu.org; Sat, 19 Feb 2022 20:10:39 -0500 Original-Received: from sonic307-10.consmr.mail.ne1.yahoo.com ([66.163.190.33]:33783) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nLakG-0008IG-In for help-gnu-emacs@gnu.org; Sat, 19 Feb 2022 20:10:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1645319435; bh=MK2XnqzmIFwX5xMLKncdS5b20aBkswPsrLEoVjsDe3M=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=UIBi/1wNJ34ett1nvd8JJnkZGq6N/nxHgbY0dDqmaP9bf3DUu8Fv+ntGv1dyPp0vdGMKqAssr2QkicW8Ujm86yS2vhWZ/YlmVJvKG/zEWsN/4hc9teZqkfj8i4Nmmmj3bIafTFXW7mZ6lJBbdH/ww3AIGU/UFjTVcCyGl7wnk2l77+UUKhOhjy3b8yV8eVDv8BIz2g3eolGV55pltbfvavUnecWSqss79Qt4JVXDZgqTwviRhgd3AatpbI371GRK38A5pTPSNSRS8JDA2C6YxnANR1AUT5s9KJpvhhr0kJTxmuCuqn8IG+79QrAtGst2BP++gVGWod23LN+PNBdBwg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1645319435; bh=HBmpkLBXF66PXtiFG3Wese/nK9Wm0DerrLTp4tl5SWE=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=lnrifmWJNU6vFt1jiyKmjOsXxqcFcWly6prfB0WWTBr8VE5XuPuetlUva+SJOHEj1nLuXOF5d0vl/+5T/XfrV6qHoRNkVjwDUOQX1nmF08pW6dVvt19uyRhmf9xspBl/+uw88BjSr0r1GlgC+S9bosTrzTJtOGYpn6JH/pU/7DY3DKLQHVbdKnXF2jNxjx2YG4uDXU8zXJGGAcX78pnn6kKde98LwIAo+f2UltwTqDeTFCUUjoxzuz/Qhi4yOJrUysHlcO8dpmDMPBU+ppF+avpTL1xSYpxzZ4JfLTkVBW6W8iZgZ59ScCNY2OpqYF6fwhxedqB8XjUtMCWY4pvEqg== X-YMail-OSG: Am09yHUVM1mnK7V1YFIglALlOu7TSFNHlOlyffqSR2YeZ_zeWqZX4lnQFeOArH0 a15sJxELC5lsxYWgG1K6.xRbjhvk5ordB0jAa8tRKIJ23oJFdP6pE6xAdo1Y3pKAIO9ojEL_H1NG SrvxpojVf_q3uNF7dYQY_xvI61ripD5oJA0QJ2pd9cd_FTlUEpJAKW37t8_yGZuqIiKUkH97LtUk 4amP7yqoeUNh3JlLa3AUmBi5djeHqV.Y1tvnFHwMh2.VKSGW0KYOH9wYULw3uGKDC7liat3k7VCd KBiWFHFNrWmBIUgb_ACFUcx3PEk.czwfApGdkdJTrNjWiz0IaJnicsxcoAFiaNQm2xsBlcFV7X5g Ow28xm0HwnXqA63B4sHMFOanZ4khs556Yx.AvXikBG6TXqaIsSWsVuzJLgweTcaERIZS4nqAxEDy 5GKVu565TYEHg_KuYkzQussiJaXDPNg9emTPqyh7odgpYZ.d1UuDaajDqxbHhZmC16cYICkZHFd2 RnZQwThhfDi2a_xZcX8KuLW8mWpYTTYSLsYtpG5CKurVR_HA.Y3AZPxPAkLdKiK3MK_3bynM.S00 oCJFu5GeuhiR2fSHEmu4XszsL62Kb1WgvtdC2R8uTWyZWpCqluxtEKOnO.JnkldrUi2eFx5r7olI nKxiWI.nhlsTuzsNBbC.D6c.Ij0GUjLZWby2Zauq6vAQmxM.Mgz7liPnm16MqCrlOWFb7drRgS_k yCZ65_y2FyTG_Vir_xC9YQAlViFmxUcL2A7Zd7cqiErRvDSCFYMfXtzrOl4RMTnDAZLKP.0AkekX 33QnVCXk2.SY3Nnic5fKk2XICiohIRb6gIB7ErMTy6 X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.ne1.yahoo.com with HTTP; Sun, 20 Feb 2022 01:10:35 +0000 Original-Received: by kubenode513.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 6f64423e2ab1cb6f97bf8608e15b096e; Sun, 20 Feb 2022 01:10:30 +0000 (UTC) In-Reply-To: (Arthur Miller's message of "Sat, 19 Feb 2022 15:57:14 +0100") X-Mailer: WebService/1.1.19797 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.190.33; envelope-from=luangruo@yahoo.com; helo=sonic307-10.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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:136032 Archived-At: Arthur Miller writes: > That is because Emacs reverse the framowork roles, which does not work > always well with toolkits that are designed to be in driving seat of > the application main loop and display. There is an interesting post > about Emacs and how it threats graphical displays by D. Colascione who > I believe implemented, or helped to implement double buffering in > Emacs: > > https://m.facebook.com/nt/screen/?params=%7B%22note_id%22%3A10107017870677858%7D&path=%2Fnotes%2Fnote%2F&refsrc=deprecated&_rdr That article is misleading. The GLib (GTK) event loop is the least of our problems, which is handled very well with a small amount of code in xgselect.c. That toolkit has its own ideas of how not to listen to the programmer which makes it very annoying to deal with (i.e. in both the X and PGTK builds, it keeps fighting with Emacs over the size of frames, and it's the only build where `scroll-bar-width' doesn't work.) It also has various bugs in features the developers deem uncommon, such as crashing when a display connection is closed. Using GTK all by itself also leads to various missing features and problems with keyboard input. There was a thread on emacs-devel about it lately, and countless bug reports, which cannot be resolved. The event loop is certainly not the problem, since none of these problems are present in the Haiku port where the event loop for each window is run by the toolkit itself in a separate thread, or in an X or Xt build where Emacs drives the event loop with pselect, XPending, and XtDispatchEvent.