From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Third Newsgroups: gmane.emacs.devel Subject: Re: What improvements would be truly useful? Date: Thu, 8 Mar 2018 16:24:33 +0000 Message-ID: <20180308162433.GA32588@breton.holly.idiocy.org> References: <86578165-1b41-e75c-7180-84d8edefc44b@grinta.net> <83o9k2s4xw.fsf@gnu.org> <65dafef7-3e1f-ba67-6717-c369033533a3@grinta.net> <831sgxrvsq.fsf@gnu.org> <9e3a1c0b-325f-29c6-eb78-dd4b0106e17b@grinta.net> <836067rd97.fsf@gnu.org> <1ba2560c-d23f-e85a-586d-9cf474ec0719@grinta.net> <83zi3jpxpq.fsf@gnu.org> <83ina6puth.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1520526205 6236 195.159.176.226 (8 Mar 2018 16:23:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 8 Mar 2018 16:23:25 +0000 (UTC) User-Agent: Mutt/1.9.3 (2018-01-21) Cc: Philipp Stephani , daniele@grinta.net, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 08 17:23:21 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1etyK8-0001TP-4f for ged-emacs-devel@m.gmane.org; Thu, 08 Mar 2018 17:23:20 +0100 Original-Received: from localhost ([::1]:40018 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1etyM8-0007ct-TB for ged-emacs-devel@m.gmane.org; Thu, 08 Mar 2018 11:25:24 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39217) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1etyLQ-0007c5-IC for emacs-devel@gnu.org; Thu, 08 Mar 2018 11:24:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1etyLP-0006kY-LI for emacs-devel@gnu.org; Thu, 08 Mar 2018 11:24:40 -0500 Original-Received: from mail-wr0-x232.google.com ([2a00:1450:400c:c0c::232]:46135) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1etyLO-0006gK-3d; Thu, 08 Mar 2018 11:24:38 -0500 Original-Received: by mail-wr0-x232.google.com with SMTP id m12so6254678wrm.13; Thu, 08 Mar 2018 08:24:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=yVCQbFPuQu4e7V2Tjiy4nmRXERgFk71GqQPp9SFxYjQ=; b=kLjLolbk0qws3/s8su91Vh+Jvl4secSD4cO4THh15OPS+Qw+Vuckh2hJByJVJLnqT9 RnIt5U4nt8OUmVgHownT1DDWDocgZn0cyQf4HhWqodYhIj80GUuDaNOuxTVlfWhkVsZK jb1F24LOXZ99q/6hsnj+EYgp1BVVUvJHNRbzpn7V1JCN3kbsWCPSh9++lFMEUeHiEs84 2LVlcN4XaWlzOpXKS4dBzFzY2bTKIeihB0lF9vGhTx33d1DyAvkUcL37MwzkZiw3Qi3u 4ajwModQmVMFV+Q10QQdWTXbEn750igpEnFkRKj0iZw9vDHlKkReiS9YNLBCf4Vu/NrE Ot0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=yVCQbFPuQu4e7V2Tjiy4nmRXERgFk71GqQPp9SFxYjQ=; b=Bw6uGV32CXCuaM+tj6a4MQmsQ+nVmnEFOdE35DPfbsoi5hWFpznDbnt4mrgPPspKXv Yk0h/v2g0JG+M6pIlzJ13fwO8nXp7G0FFsbOUE951dRVJg7Tl9jXfq+JctBkZZMEtxHm gisuYKI6IDeV8liji3ITqbJZrhMHfAV5un4iNTt2zq6E/K3GNd2X9W1bJn816KgJJ4zq iFcdorOC4QrmRKuZmLWz8Wklo5roP607BFzprhSpsxKYqZzNiVbRpKA7tuD+vR1/t6kN b4uydKpIPZWrUtqasUtH9+U3X1q+QJxVAvmDgALMo9NbZWZlxy01V3YR9OCFTYPmm9by 6/Bw== X-Gm-Message-State: APf1xPDGT0Sv4ou08CezX5E6VSLNNfcuilt3/s6puQdTJty3oXITVFXh OaqZPcTANMniqDOByyZlQ4iCh7N7AKE= X-Google-Smtp-Source: AG47ELvigAxfvZH+yepGZIXeKV0i8gOiTFfbzZhyrdQ6riKtxFaPSbJbbmWBaNdoWcW3wGCmsK8GCw== X-Received: by 10.223.138.153 with SMTP id y25mr22696712wry.257.1520526276546; Thu, 08 Mar 2018 08:24:36 -0800 (PST) Original-Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-e8d9-a19c-5d74-f7c1.holly.idiocy.org. [2001:8b0:3f8:8129:e8d9:a19c:5d74:f7c1]) by smtp.gmail.com with ESMTPSA id f14sm968622wmi.11.2018.03.08.08.24.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Mar 2018 08:24:35 -0800 (PST) Content-Disposition: inline In-Reply-To: <83ina6puth.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::232 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:223507 Archived-At: On Thu, Mar 08, 2018 at 03:20:58PM +0200, Eli Zaretskii wrote: > > From: Philipp Stephani > > Date: Wed, 07 Mar 2018 21:45:46 +0000 > > Cc: Daniele Nicolodi , emacs-devel@gnu.org > > > > By adding a gtkterm.c, that does the same as w32term.c, just for GTK, without referring to X.org in any way? > > The cleanup would then consist in removing all GTK functionality from xterm.c once gtkterm.c is stable. > > (I guess you meant removing GTK-related portions of xfns.c as well?) > > If you look at these two files, you will see that the GTK-specific > snippets in them are a few and far between. Most of the code is > generic. That’s part of the problem with how Emacs deals with GTK, it does many things the X way rather than the GTK way. For example, mouse and keyboard events are dealt with using X code, but GTK provides it’s own APIs for dealing with them. I thought implementing touch events would be easy because GTK already does all the heavy lifting, but Emacs doesn’t use GTK for events. I strongly suspect a Wayland compatible GTK Emacs would have to remove a lot of (all?) X code and replace it with GTK code. > My understanding of this sub-thread was that the idea was to separate > GTK _architecturally_, not just making it yet another display > back-end. I don’t think I understand the difference. -- Alan Third