From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Yuuki Harano Newsgroups: gmane.emacs.devel Subject: Re: emacs for pure Gtk3 Date: Tue, 28 Apr 2020 22:42:53 +0900 (JST) Organization: Ingage Inc. Message-ID: <20200428.224253.781145536690351960.masm@luna.pink.masm11.me> References: <834kt673cy.fsf@gnu.org> <20200427.213727.386515228111850912.masm@luna.pink.masm11.me> <83o8rd3r8l.fsf@gnu.org> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="111979"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: eliz@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Apr 28 15:48:04 2020 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 1jTQai-000T0K-AH for ged-emacs-devel@m.gmane-mx.org; Tue, 28 Apr 2020 15:48:04 +0200 Original-Received: from localhost ([::1]:58552 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTQah-0002Vg-7h for ged-emacs-devel@m.gmane-mx.org; Tue, 28 Apr 2020 09:48:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37484) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTQWV-0007NE-2o for emacs-devel@gnu.org; Tue, 28 Apr 2020 09:46:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jTQWI-0003cv-TZ for emacs-devel@gnu.org; Tue, 28 Apr 2020 09:43:42 -0400 Original-Received: from shiro.masm11.me ([150.95.182.25]:39530) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jTQVq-00030a-QD; Tue, 28 Apr 2020 09:43:03 -0400 Original-Received: from luna.pink.masm11.me (224.232.12.61.ap.yournet.ne.jp [61.12.232.224]) (using TLSv1.3 with cipher TLS_CHACHA20_POLY1305_SHA256 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by shiro.masm11.me (Postfix) with ESMTPSA id 4D9AFC0117; Tue, 28 Apr 2020 22:42:54 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=masm11.me; s=202002; t=1588081374; bh=Rcq4MNLY9DHDTD6w4RzncC76Q+0l0GtmozxciJ7Qtpw=; h=Date:To:Cc:Subject:From:In-Reply-To:References; b=KOFgWV6bnyrAst4DviwTZwDsCYplMf/Wct6pE8bqkklSRuly2WRilsZkTBfh/N0KJ AyLYWkTwCZYu3El8cQ4QYNO9JrUNO/ax2C8eZcjztL39RBFANpltnf+VeFksv/xXyC SIokv+fjalh0KApdl/KhUNRzk/B91EJPhfIfMLXY= In-Reply-To: <83o8rd3r8l.fsf@gnu.org> X-Mailer: Mew version 6.8 on Emacs 28.0 Received-SPF: pass client-ip=150.95.182.25; envelope-from=masm@masm11.me; helo=shiro.masm11.me X-detected-operating-system: by eggs.gnu.org: First seen = 2020/04/28 09:42:54 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 150.95.182.25 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:248018 Archived-At: On Mon, 27 Apr 2020 18:03:54 +0300, Eli Zaretskii wrote: > Form sent off-list. Thank you. >> By the way, this fork contains much code written by @fejfighter. >> He said "for now: Yes I do agree to assign my code to the FSF." here, >> https://github.com/masm11/emacs/pull/11#issuecomment-600856858 . >> What to do? > > He should fill the form I sent to you, separately, and email it > according to instructions. Thank you. >> Since pgtk emacs is configured with '--without-x', existing X code >> is disabled. If configured with '--with-x', the existing X support >> should be enabled as before. > > Would configuring --with-x disable Pgtk support code? That is, do the > X and Pgtk support contradict each other, and cannot live in the same > binary? Or maybe I don't have a clear idea what exactly gets disabled > when building with Pgtk -- can you elaborate? X code and pgtk code contradict. Not "support", but "code". Pgtk emacs supports X. I wrote: > > If configured with '--with-x', the existing X support > > should be enabled as before. I'm sorry. That should have been: | If configured with '--with-x', the existing X code | should be enabled as before. Since it needs --without-x to build pgtk emacs, these files are not compiled: - xfns.c - xgselect.c - xmenu.c - xrdb.c - xselect.c - xsmfns.c - xterm.c Instead, works in those files are done in these files in pure gtk way: - pgtkfns.c - pgtkim.c - pgtkmenu.c - pgtkselect.c - pgtkterm.c Both of pgtk emacs and X emacs use gtkutil.c. It contains many "#ifdef HAVE_PGTK" to decide which it is being compiled for. Since there are not lucid, xaw, and motif in the pure gtk world, they are not supported in pgtk emacs. >> Pgtk emacs supports X window system too through Gtk library. >> It can handle Wayland, X window system, and TTY in the same session. >> But segmentation fault may occur when running on X and Wayland >> in the same session. > > I guess those segfaults need to be fixed, because having a GUI Emacs > that can only run on Wayland would be a limitation that users might be > unhappy about? Yes, I think so, too. I remember that Emacs has previously an issue when multiple display environments. I thought that the segfaults was the same issue. Was that fixed? >> Since Gtk does not support this function, it doesn't work, even if on X. >> - vendor_specific_keysyms > > Can you give examples of these keysyms, and say something about their > popularity? No, I can't. >> I don't know about Lisp threads. I have never supported it explicitly. >> Pgtk emacs may not support it. > > Well, for starters see if test/src/thread-tests.el runs and succeeds > in your Pgtk build. Thank you. ---- luna:emacs % emacs --batch -l test/src/thread-tests.el luna:emacs % echo $? 0 luna:emacs % ---- Did it succeed? -- Yuuki Harano