From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#57372: no-toolkit menu popups do not respect emacs font configuration Date: Thu, 25 Aug 2022 09:42:00 +0300 Message-ID: <837d2w4yfb.fsf@gnu.org> 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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6353"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, 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 08:44:42 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 1oR6ba-0001WL-2S for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 25 Aug 2022 08:44:42 +0200 Original-Received: from localhost ([::1]:45948 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oR6bY-00011D-TS for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 25 Aug 2022 02:44:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34378) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oR6Zy-0000Qx-EJ for bug-gnu-emacs@gnu.org; Thu, 25 Aug 2022 02:43:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58932) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oR6Zy-0008Vx-5o for bug-gnu-emacs@gnu.org; Thu, 25 Aug 2022 02:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oR6Zx-0007SB-Pq for bug-gnu-emacs@gnu.org; Thu, 25 Aug 2022 02:43:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Aug 2022 06:43:01 +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.166140972328577 (code B ref 57372); Thu, 25 Aug 2022 06:43:01 +0000 Original-Received: (at 57372) by debbugs.gnu.org; 25 Aug 2022 06:42:03 +0000 Original-Received: from localhost ([127.0.0.1]:48681 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oR6Z1-0007Qr-0x for submit@debbugs.gnu.org; Thu, 25 Aug 2022 02:42:03 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:39216) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oR6Yv-0007QK-VD for 57372@debbugs.gnu.org; Thu, 25 Aug 2022 02:42:01 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:47360) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oR6Yq-0008R4-45; Thu, 25 Aug 2022 02:41:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=jLuVIw522ahpmsuyk0y4E7lwKE5lCkD5EVwYKFlAvmU=; b=c6Zl+BPWi5MQ QgMgb+2sPNy9zIITWIHjUUHQ6oxoqoQDHa2X+F8190a7H5Xd0q8E2UkETUPvvk0TVZ7yTaEES5rMp xLiYpM9z+s+COC+IVoB3OXNhTk4h9GJkOUPhqBDCc/O67dcXMmqofH+Zj8GlfYbU6dsi71ljUTuQj 2dvaqiBXfeZ00kg/j1UpqAsmbc84g21IFD1LEu/ApMACBz2O+vfiG3r1pa19H+mDkYDLyxFZsdu4I sQxFUV8qM+NWp6IHgBHUU17QOXZMkSZWqavyzXt/wXgd7pFsfQnlItxVIIRfzsvhEZKFvyFqjvtjU 9BlFFl42Pi9YzFvE52irZA==; Original-Received: from [87.69.77.57] (port=4427 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oR6Yo-0004mx-4H; Thu, 25 Aug 2022 02:41:50 -0400 In-Reply-To: <8735dli9t3.fsf@logand.com> (message from Tomas Hlavaty on Wed, 24 Aug 2022 23:57:44 +0200) 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:240683 Archived-At: > From: Tomas Hlavaty > Cc: luangruo@yahoo.com, 57372@debbugs.gnu.org > Date: Wed, 24 Aug 2022 23:57:44 +0200 > > > Of course, X doesn't necessarily understand the Emacs units of > > measuring fonts, for example the relative units. So eventually you'll > > need separate customizations. However, I don't expect you to have to > > change these customizations too frequently. > > 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. Do you really need to do this frequently? If so, why is that? why not set the size that is convenient for you, and more or less forget about it? I guess I don't understand why one would need to change the size frequently, especially the size of the menu items, which basically stay unchanged. > 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. But you should only need to do this once, or very infrequently. So how is this such a grave problem? > > More generally, I don't see a way around the fact that different parts > > of the system need to be customized differently. > > Why? Because they are different subsystems developed by different agencies with different goals in mind. > > Many programs have > > their own init files, and some even have more than one: for example, > > Bash, GDB, and any other program that uses Readline will typically > > have customizations in ~/.inputrc, in addition to the program-specific > > init file, such as ~/.gdbinit for GDB. > > This is not only about init files. > > 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?). I find it neither complex nor fragile: just edit a file, and that's it. If it's something you don't need to do frequently (as I think what should happen with font sizes), it's a fire-and-forget thing.