From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: Cleaning out old X11 toolkits? Date: Fri, 12 Feb 2021 11:14:18 +0100 Message-ID: <878s7twq2t.fsf@gmail.com> References: <07D5E64D-DAD0-45B3-B272-627A73D7CBAE@gmail.com> <7308DB2C-27A5-4227-A1F9-9949EE558052@gmail.com> <87sg6alweo.fsf@gnus.org> <87pn1erewq.fsf@gmail.com> <87wnvlecrw.fsf@gnus.org> <83sg69o3av.fsf@gnu.org> <87mtwhctte.fsf@gnus.org> <459A0475-E3E7-4159-82DF-93809CCF1E24@gmail.com> <87eehng52n.fsf@gnus.org> <87mtwbye5b.fsf@gmail.com> <87czx7ycva.fsf@tcd.ie> <87eehmyalr.fsf@gmail.com> <877dneoewi.fsf@tcd.ie> <875z2yy6z7.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23023"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Yuan Fu , Alan Third , emacs-devel , "Basil L. Contovounesios" , Eli Zaretskii , Stefan Monnier , chad , Lars Ingebrigtsen To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Feb 12 11:15:22 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 1lAVTu-0005sK-04 for ged-emacs-devel@m.gmane-mx.org; Fri, 12 Feb 2021 11:15:22 +0100 Original-Received: from localhost ([::1]:38814 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lAVTt-0007Wy-2J for ged-emacs-devel@m.gmane-mx.org; Fri, 12 Feb 2021 05:15:21 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34906) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lAVSz-0006yi-36 for emacs-devel@gnu.org; Fri, 12 Feb 2021 05:14:25 -0500 Original-Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]:55938) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lAVSx-0001m7-BD; Fri, 12 Feb 2021 05:14:24 -0500 Original-Received: by mail-wm1-x334.google.com with SMTP id o15so417067wmq.5; Fri, 12 Feb 2021 02:14:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=Gz16XPBKKv39tubQ5Sa69MABSI4m6I10q5AONtdW5C4=; b=ZR7h5cB37tzldw9P6AYKqSRwhZKynu7uTqGq0+VmbRCoMJMSl4N6i2xXU7h5TrC/tj riHKBQ4RUGu8I4tkq1YQPlkiRQySTaFM0tJOBZ8W1pcQ4kCYf+JLovXY/Y9I78Y+a/Sq 2phg1yp3z7yvBpdINlIjy8A8Jg4lfQ+dWMvNEM9GVrLhgeVp7klBNE8BKrRD3sGqWhXx qMbbSChqZ/WVjFGYZCqed5gRi4wNeORNUGHj7qIgj4zAxS9VheUDDCtDCFUz20HH+CAx 22CnOqSoQ7BuDP4vv99jaGYfWwpafN1gUZbyqd7uirK88sM2y3hvXEQ1+S+QHdvTZKw0 2FKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=Gz16XPBKKv39tubQ5Sa69MABSI4m6I10q5AONtdW5C4=; b=qlsxnlScgjBy91qD+0flYRTXhx8REcZBYPs8y4NHwhpcaHrNgf5iU7AVfw8mtoE0vW xiHwCwNaAOEWnmBXnePqYF2ZpBzWrFY7vGGzixvvxKcl2eFBl5w/51/ZXz6mlt45171j pSp+ARl3WacIKYxcXiCh+D4ihz115luzEWvWy10D6sa1TNLQIN56/MTC3RUN8Aj4n/Sp sH/ARnVvnEXi9bUoV6VoKEGPSQ8oSxeqh9EZnItPdHf2FssqbvSgoJkfLly2dzLSeQ7L yLjOEk73Ss6E3pFD8RxxoHCXwzmysHpr9zZGD6aLBUTkjm6K5FdEy7aRESv/+XztV1Qf L7NQ== X-Gm-Message-State: AOAM532aNow2WrrpL5jSz2PzRiFG/awj+s5VcDkvEfUzXTNWk6pVmuSd mpkTbYPV5rJKcbgaH4nwb6gFSRFr2u44/xJA X-Google-Smtp-Source: ABdhPJzufCBWtcMv85UUWxJ6EeHft76bSfbCrfEUsy0QBrCxxrfxCNQa5pwuaxNINvuXQ0/stHBh/A== X-Received: by 2002:a7b:c4ca:: with SMTP id g10mr2060344wmk.64.1613124860334; Fri, 12 Feb 2021 02:14:20 -0800 (PST) Original-Received: from rltb ([2a01:e34:ecfc:a861:69b6:6aaf:dbd3:8964]) by smtp.gmail.com with ESMTPSA id x18sm13696011wmi.8.2021.02.12.02.14.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Feb 2021 02:14:19 -0800 (PST) In-Reply-To: (martin rudalics's message of "Fri, 12 Feb 2021 11:00:28 +0100") Received-SPF: pass client-ip=2a00:1450:4864:20::334; envelope-from=rpluim@gmail.com; helo=mail-wm1-x334.google.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, 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.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:264487 Archived-At: >>>>> On Fri, 12 Feb 2021 11:00:28 +0100, martin rudalics = said: >> Whether this is worth the effort in a world leaning ever so slowly t= owards >> Cairo and pgtk is a little hard to tell, but a quick grep through src >> suggests that it would at least clear up a bunch of #ifdef spaghetti. >>=20 >> Would the maintainers be interested in a branch that tried this? Wou= ld it >> be better to wait for pgtk to settle first? Is there a big use-case = for >> those toolkits of which I'm unaware? martin> The only build I'd clean out is GTK-3. Seriously. I really as= k people martin> to use the pgtk branch for their daily work on a regular basis.= Once it martin> has been merged in, we can banish GTK-3 (not necessarily GTK-2 = which martin> works quite satisfactorily here) from the remaining X-parts of = our code martin> base and nobody will complain about those #ifdef spaghetti any = more. If that=CA=BCs what we want, then we should merge pgtk to master and ask people to test it. martin> I give you one simple example with emacs -Q and the following o= ne-line martin> initial file: martin> (setq default-frame-alist '((cursor-color . "red3") (height . 3= 2))) martin> Here this works well with Lucid, Motif, GTK-2 and without x-too= lkit. It martin> does not work with GTK-3, which shows four lines below the mini= buffer martin> that apparently do not belong to anyone (it works with a GTK-3 = build of martin> Emacs 25 though). And the X pgtk build here simply refuses to = shrink martin> the frame to 32 lines but keeps it at 36 lines. It's behaviors= like martin> this that can keep you busy trying to make GTK-3 builds do some= thing martin> reasonable at least. Works fine for me here with a GTK build, although my frame ends up with a height of 30. pgtk generally has issues with frame sizing and positioning. martin> Once all the GTK-3 specific stuff has been moved to pgtk, peopl= e can fix martin> GTK-3 specific bugs there and do not have to care about Motif o= r other martin> X11-toolkits any more just as they do not have to care about W3= 2 or NS martin> now. Tell you what, you remove impure GTK, and I=CA=BCll remove Xft. Deal? :-) Robert