From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#57372: no-toolkit menu popups do not respect emacs font configuration Date: Thu, 25 Aug 2022 09:40:08 +0800 Message-ID: <87sfllummf.fsf@yahoo.com> References: <87lerek7pt.fsf@logand.com> <83k06y74sy.fsf@gnu.org> <87v8qihxbk.fsf@logand.com> <87czcp29m6.fsf@yahoo.com> <834jy17umv.fsf@gnu.org> <87zgftzvqt.fsf@yahoo.com> <83sfll6d38.fsf@gnu.org> <87k06xilb0.fsf@logand.com> <83y1vd4j55.fsf@gnu.org> <87edx5ihz3.fsf@logand.com> <83sfll4esu.fsf@gnu.org> <8735dli9t3.fsf@logand.com> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32453"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: Eli Zaretskii , 57372@debbugs.gnu.org To: Tomas Hlavaty Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 25 03:41:23 2022 Return-path: Envelope-to: geb-bug-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 1oR1s2-0008DA-TO for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 25 Aug 2022 03:41:23 +0200 Original-Received: from localhost ([::1]:36602 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oR1s1-0005le-Ic for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 24 Aug 2022 21:41:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53040) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oR1ri-0005kZ-QU for bug-gnu-emacs@gnu.org; Wed, 24 Aug 2022 21:41:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58730) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oR1ri-00015S-EI for bug-gnu-emacs@gnu.org; Wed, 24 Aug 2022 21:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oR1ri-0007it-3j for bug-gnu-emacs@gnu.org; Wed, 24 Aug 2022 21:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Aug 2022 01:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57372 X-GNU-PR-Package: emacs Original-Received: via spool by 57372-submit@debbugs.gnu.org id=B57372.166139162529633 (code B ref 57372); Thu, 25 Aug 2022 01:41:02 +0000 Original-Received: (at 57372) by debbugs.gnu.org; 25 Aug 2022 01:40:25 +0000 Original-Received: from localhost ([127.0.0.1]:48479 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oR1r7-0007hq-BV for submit@debbugs.gnu.org; Wed, 24 Aug 2022 21:40:25 -0400 Original-Received: from sonic317-33.consmr.mail.ne1.yahoo.com ([66.163.184.44]:41492) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oR1r6-0007hV-9V for 57372@debbugs.gnu.org; Wed, 24 Aug 2022 21:40:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1661391617; bh=4155OQMQtyvXb2uj0DML0JWMdOoO5GZQOLF9AIO9TMM=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=fEb2s+EX98LorIYwqel1m0a5K+EqUAEuHN+yNAL5tD6fe/6CGJFaldHzF7C0yY45EkJHwM4G+HX7wkifxDCEkyvFfAAz2Vq7zNsG+01pY0gcPtAcfn7PQ+zmKE0xceirW7bBh1VkjHhhleW3RVT0u4ZdQ19aIZln4TrD1Oed3gq5QNM6MIdZmp01YG83vi3zZFHf0be8HQUm7ZTX50V12cIxFtYoy2EDpS6UXRfX4y3V4R+QRuxH7Yf1VQ1Cpk5RKvt3P+m3bSRmLYnQ6reTt95BcTHuTiJAfbBjE+3gf0AlMDYc0gSwn4WlkQvUSJW0FPDhIlXgfUE0sIM5FqVgaA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1661391617; bh=5e5Q2F5r8ow/dZv4jGbvMScSFBfXjbKRJtbME2gLnxJ=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=d0glUNlayh2nJZ66FRnLby/379/wgtMKCFj7OmqrqoigsZVtShfaQkEI3acYJB/9cLRwOdLKLqP+1vhIuK3ixmELr2OxgmHyA0VVBYql+9rJEl4fhr884TIlFiELDkCfAOAtlJkCEMIjL7wmT+Lo5PlwFFqW7u6fGjUuEOKpOsrTQasfrxvR34AfggqtemNwcyuDC3+QPJjfD1LErce6c95BfkMkWQpDuZHAL3P6BuGXd5jcEbOSzfa4lpP7fvY1S52QFUaQDRVo2LGa6zPP5IHbD78OC9TZO0sFYt0jr1tccamNIXPYe6CaGWKX0Ffe6TTJ5lnSjKrgugmoTdFH1A== X-YMail-OSG: pkVC2DUVM1n6r1GWhVZAb2WvrP6HcTumS03DxB2iIJ01uoN1ZzRh8zLEY3e.jhl kWT2QHryac1S_4o0v5668D2.oPDlC9lb.QiJlHfqrq3CcIqr1nRjDIFgWtcrzaGfEgdKhRo9gvvo UGb4sc48TMbeQ.7u2D9dz81pGZT_7BIE5y4oKOXWxfqzPyVaQqkd8.l_h3IpBxePv6j35gWIsuhv JA.Moh0c3n_o7w_yQvQ1BACVelyLx84GOdP.eVKaocoOgXQliiqFcskXfWD64Log.VgtMul2beN0 sw9_VHGessZ0VJXD4AOrCkz3Q1B_PEmkw_JnWlu20D4gVzaDys3rxDXMc4cRR1BrJ8Z056qs07cv ZP8AiO4d3MpRANpFZCOjSUICrOmdE8Xwu4PKwZmazFwwHL1.aULyZAEDMS2RuIYWPEs.ZSnkiXb2 MWek8cfs2fGtJ6xI2kyhdwsEAFYLH2EHREvrRZi6hgH5Fl_zhSaEMFT16eeO.NVEtjP_w.fS73op XD.a5iPH2aLqxsQat.2GeaTv1TzZyMlyjqa5Rd17MeXjsDGuNawCjv0iiLY7Hg.E8Mm6.54m.64V t6CLugTyDcAje_qCpRDAGGRmZH7OC8kpm_e9WmSpTdDAIaZWPuHuGjZ9VCi63.hclURRB8NKRoel s9iU8SvSLcxNjAfOvjmsZKyKgB3qewWdWF9539wI0GnTF5AuOpzI4tSc_qXyMKz2jBTZBWXr.ZiY My3LJkyUVf8Hzvj9hOUcioIQjumcrAzRwyaO9OM3MCZvink9CmqiRZOc_1fUUB9r.cMWjJwKCG7L 29f3nlFc.YG5IVdz1.uCI_WgolGp59O9kSSwO7ACb9 X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.ne1.yahoo.com with HTTP; Thu, 25 Aug 2022 01:40:17 +0000 Original-Received: by hermes--canary-production-sg3-6f58cd9b5-slt79 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 80d3811494de94cca6632d40fd6e0b1a; Thu, 25 Aug 2022 01:40:13 +0000 (UTC) In-Reply-To: <8735dli9t3.fsf@logand.com> (Tomas Hlavaty's message of "Wed, 24 Aug 2022 23:57:44 +0200") X-Mailer: WebService/1.1.20560 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:240676 Archived-At: Tomas Hlavaty writes: > The point of C-+ and C-- bindings is that I can just press a key and > grow or shrink the font. That is essential for me. My gui terminal can > do that out of the box, my console can do that with a bit of elisp > calling setfont, firefox can do that out of the box, and gui Emacs can > do that using the code I showed earlier; except the menu text we are > discussing. > > This font size change happens on demand, when a key is pressed. > > I guess writing to the ~/.Xresources file would work only on startup. > > Then there seems to be the issue you said that Emacs and X has different > idea of describing fonts/units. > > It is just complex and inconvenient. That's what happens if you use libraries for menus, since they obviously know nothing about what faces are. >> More generally, I don't see a way around the fact that different parts >> of the system need to be customized differently. > > Why? > > At the moment, it is the consequence of the way the no-toolkit menu is > implemented. > > But surely it could be possible to change it to customize no-toolkit > menu text the same way as any other face. Possible, but very difficult. It's easier to do that on Motif and Lucid, but that is still not reliable, since different font subsystems are being used. > This is about making it not to have more init files, because unlike > customizing and changing faces, customizing a different system out of > Emacs is complex, fragile, inconvenient and might be impossible (is it > possible to change the menu text X resource on key press?). No, Emacs only loads the X resource database on display initialization.