unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Arthur Miller <arthur.miller@live.com>
To: Po Lu <luangruo@yahoo.com>
Cc: emacsq <laszlomail@protonmail.com>,
	emacsq via Users list for the GNU Emacs text editor
	<help-gnu-emacs@gnu.org>
Subject: Re: Would there be a drawback of using the same graphical toolkit on every platform?
Date: Sun, 20 Feb 2022 14:46:30 +0100	[thread overview]
Message-ID: <AM9PR09MB497736FD99EC85DFBC84873396399@AM9PR09MB4977.eurprd09.prod.outlook.com> (raw)
In-Reply-To: <87pmnil4w0.fsf@yahoo.com> (Po Lu's message of "Sun, 20 Feb 2022 09:10:23 +0800")

Po Lu <luangruo@yahoo.com> writes:

> Arthur Miller <arthur.miller@live.com> 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.

Is it?

> 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.

Several entire desktops and countless applications implemented with Gtk
for different OS:s certainly speak in favor of your arguments.

Cetainly it must be problem to Gtk and someone elses incompetence, can't be
that Emacs is using it in a manner it wasn't supposed to be used.

> 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.

So Gtk should be designed as Haiku? Otherwise it is a bug? :)

You can either do as you do and consider a framework design to be a bug
because it does not fit into your wishful expectations, or you can recognize
that the design does not fit a particular application in this case Emacs. There
is nothing wrong with that, none framework is required to fit each and every use
case in existence. Emacs uses Gtk in a way it is not supposed to and that
creates some friction. I don't understand why you need to blame that on Gtk? I
am not even very fond of Gtk myself, but there is no reason to be unfair.



  reply	other threads:[~2022-02-20 13:46 UTC|newest]

Thread overview: 128+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-18 20:59 Would there be a drawback of using the same graphical toolkit on every platform? emacsq via Users list for the GNU Emacs text editor
2022-02-18 22:23 ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-19  3:21 ` emacsq via Users list for the GNU Emacs text editor
2022-02-19  3:38   ` Po Lu
2022-02-19  3:44     ` Po Lu
2022-02-19  4:10     ` emacsq
2022-02-19  4:52       ` Po Lu
2022-02-19  6:24         ` emacsq
2022-02-19  6:37           ` Po Lu
2022-02-19 14:57       ` Arthur Miller
2022-02-19 19:20         ` emacsq
2022-02-19 19:37           ` Eli Zaretskii
2022-02-20  1:10         ` Po Lu
2022-02-20 13:46           ` Arthur Miller [this message]
2022-02-20 14:00             ` Eli Zaretskii
2022-02-20 17:53               ` Arthur Miller
2022-02-20 18:08                 ` Eli Zaretskii
2022-02-20 19:34                   ` Arthur Miller
2022-02-21  1:10                     ` Po Lu
2022-02-21  7:01                       ` Po Lu
2022-02-21 16:50                       ` Arthur Miller
2022-02-22  0:50                         ` Po Lu
2022-02-23 11:53                           ` Arthur Miller
2022-02-23 12:03                             ` Po Lu
2022-02-23 18:34                               ` Arthur Miller
2022-02-20 18:32                 ` tomas
2022-02-20 18:57                   ` Arthur Miller
2022-02-20 19:47                     ` tomas
2022-02-21  1:18                       ` Po Lu
2022-02-21  5:58                         ` tomas
2022-02-21  1:13                   ` Po Lu
2022-02-20 14:05             ` Po Lu
2022-02-20 18:40               ` Arthur Miller
2022-02-21  1:02                 ` Po Lu
2022-02-21 19:34                   ` Arthur Miller
2022-02-22  0:55                     ` Po Lu
2022-02-21 13:53               ` Max Brieiev
2022-02-22  0:56                 ` Po Lu
2022-02-22 12:00                   ` Byung-Hee HWANG
2022-02-22 12:02                     ` Po Lu
2022-02-22 12:33                       ` Byung-Hee HWANG
2022-02-22 14:09                         ` Jean Louis
2022-02-22 14:39                           ` Byung-Hee HWANG
2022-02-22 14:05                     ` Jean Louis
2022-02-20 14:12             ` Jean Louis
2022-02-20 16:46               ` Samuel Banya
2022-02-20 13:41     ` Sergey Organov
2022-02-20 13:54       ` Po Lu
2022-02-20 20:11       ` Byung-Hee HWANG
2022-02-19  7:29 ` Eli Zaretskii
2022-02-19  7:38   ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-19  8:53     ` Eli Zaretskii
2022-02-19  9:09       ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-19  9:26         ` Eli Zaretskii
2022-02-19 12:04           ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-19 10:01         ` Pankaj Jangid
2022-02-19 13:59           ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-19 17:54         ` Jean Louis
2022-02-19 22:42           ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-20 12:39             ` Jean Louis
2022-02-27  1:20               ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-19 17:51   ` Jean Louis
2022-02-19 17:56     ` Samuel Banya
2022-02-19 18:06       ` DragonFlyBSD Jean Louis
2022-02-19 22:48         ` DragonFlyBSD Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-20 12:17           ` DragonFlyBSD Jean Louis
2022-02-21  5:51             ` DragonFlyBSD Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-21 14:03               ` DragonFlyBSD Jean Louis
2022-02-21 15:22                 ` DragonFlyBSD Samuel Banya
2022-02-21 18:18                   ` DragonFlyBSD Jean Louis
2022-02-26 16:54                     ` DragonFlyBSD Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-26 16:49                   ` DragonFlyBSD Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-26 16:45                 ` DragonFlyBSD Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-27  2:53                   ` DragonFlyBSD Samuel Banya
2022-02-27  2:59                     ` DragonFlyBSD Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-21 19:49               ` DragonFlyBSD Lele Gaifax
2022-02-26 16:55                 ` DragonFlyBSD Emanuel Berg via Users list for the GNU Emacs text editor
2022-03-01 20:33                   ` DragonFlyBSD Lele Gaifax
2022-03-01 22:08                     ` DragonFlyBSD Emanuel Berg via Users list for the GNU Emacs text editor
2022-03-02  7:19                       ` DragonFlyBSD Lele Gaifax
2022-03-02 19:44                         ` DEOL: Declarative Emacs On-Line (was: Re: DragonFlyBSD) Emanuel Berg via Users list for the GNU Emacs text editor
2022-03-03  7:14                           ` DEOL: Declarative Emacs On-Line Lele Gaifax
2022-03-04  2:28                             ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-19 22:44       ` Would there be a drawback of using the same graphical toolkit on every platform? Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-20 12:42         ` Purposes of BSD-like systems Jean Louis
2022-02-20 12:56           ` Po Lu
2022-02-21  4:41           ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-21  9:50             ` andrew
2022-02-26 16:41               ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-21 14:04             ` Jean Louis
2022-02-26 16:39               ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-19 18:08     ` Would there be a drawback of using the same graphical toolkit on every platform? Eli Zaretskii
2022-02-19 19:30       ` Jean Louis
2022-02-19 19:38         ` Eli Zaretskii
2022-02-19 22:55           ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-20  0:40           ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-20 12:21           ` Why is GNU not Unix-like system? Jean Louis
2022-02-20 13:00             ` Eli Zaretskii
2022-02-19 19:35       ` Would there be a drawback of using the same graphical toolkit on every platform? Jean Louis
2022-02-19 23:02         ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-19 22:52       ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-19 22:29     ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-19 23:50       ` [External] : " Drew Adams
2022-02-20  0:21         ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-20  0:31           ` Drew Adams
2022-02-20  6:49           ` Yuri Khan
2022-02-20 11:16             ` Jean Louis
2022-02-21  6:31               ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-22 14:11                 ` Lumpers & Splitter Jean Louis
2022-02-27  1:01                   ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-20 23:12             ` [External] : Re: Would there be a drawback of using the same graphical toolkit on every platform? Drew Adams
2022-02-21  6:32               ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-21 16:10                 ` Drew Adams
2022-02-27  1:15                   ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-22 14:12                 ` Lumpers & Splitter Jean Louis
2022-02-27  0:55                   ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-20 11:09           ` [External] : Re: Would there be a drawback of using the same graphical toolkit on every platform? Jean Louis
2022-02-21  6:28             ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-21  6:50               ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-22 14:24                 ` Jean Louis
2022-02-27  1:02                   ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-22 14:22               ` Jean Louis
2022-02-27  1:09                 ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-27  1:10                 ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-27  1:12                 ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-20 10:59         ` Jean Louis
2022-02-20 10:55       ` Jean Louis
2022-02-27  1:22         ` Emanuel Berg via Users list for the GNU Emacs text editor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AM9PR09MB497736FD99EC85DFBC84873396399@AM9PR09MB4977.eurprd09.prod.outlook.com \
    --to=arthur.miller@live.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=laszlomail@protonmail.com \
    --cc=luangruo@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).