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: Wed, 24 Aug 2022 22:33:37 +0300 Message-ID: <83sfll4esu.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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19773"; 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 Wed Aug 24 21:34:37 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 1oQw96-0004uv-R4 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 24 Aug 2022 21:34:37 +0200 Original-Received: from localhost ([::1]:60010 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oQw95-0004FC-Kf for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 24 Aug 2022 15:34:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50432) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQw8Y-0004EK-Rm for bug-gnu-emacs@gnu.org; Wed, 24 Aug 2022 15:34:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58524) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oQw8Y-0006Hy-EV for bug-gnu-emacs@gnu.org; Wed, 24 Aug 2022 15:34:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oQw8Y-0006x1-99 for bug-gnu-emacs@gnu.org; Wed, 24 Aug 2022 15:34:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 24 Aug 2022 19:34: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.166136961526683 (code B ref 57372); Wed, 24 Aug 2022 19:34:02 +0000 Original-Received: (at 57372) by debbugs.gnu.org; 24 Aug 2022 19:33:35 +0000 Original-Received: from localhost ([127.0.0.1]:48273 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQw87-0006wJ-EF for submit@debbugs.gnu.org; Wed, 24 Aug 2022 15:33:35 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33866) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQw85-0006w6-Jg for 57372@debbugs.gnu.org; Wed, 24 Aug 2022 15:33:33 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:45936) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQw80-0006FY-4O; Wed, 24 Aug 2022 15:33:28 -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=4YQLJUOeprl1sR1c/EutgfvwcujakeVMY33EFGDuvkw=; b=k+3ml1CpBYCJ JbbnBFH1vWQB4nK2oBjfHaX1VJkMwZxGfUG0yUWKOS6Vui51hO7wF88Mumj0U4UgAzLFVuDjViyAv 3zUPzZY2O8786/m40aZWvv7WnfrMW83c8E8Dy3LPFIYzonTPoeIMKqgRN1mEUvDNxLBvrrmxei4E+ Zu3gZyBnTGifqeAzle2XoywPvMS4ce70MceUIsq5+A0WDc7rIbmr5gHn/U03XCklIbjoCYC8KYR++ 4eRZbnYSBi1ERW4cATUbHSdR+KB1/2hl8KVph22PvqeaFq19wBPQkij4moEECBrHR6CtoSiMRNPYh vFmZnjIw7DrpiP0GXAiX+Q==; Original-Received: from [87.69.77.57] (port=3298 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 1oQw7z-0007sL-E6; Wed, 24 Aug 2022 15:33:27 -0400 In-Reply-To: <87edx5ihz3.fsf@logand.com> (message from Tomas Hlavaty on Wed, 24 Aug 2022 21:01:20 +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:240658 Archived-At: > From: Tomas Hlavaty > Cc: luangruo@yahoo.com, 57372@debbugs.gnu.org > Date: Wed, 24 Aug 2022 21:01:20 +0200 > > On Wed 24 Aug 2022 at 20:59, Eli Zaretskii wrote: > >> I find the alien X resource fonts the ugliest, unreadable and very > >> inconvenient because the font size is completely wrong and inconvenient > >> to control. > > > > But you can customize that via the X resources, can't you? Just tell > > the menus to use the same font Emacs uses for its default face. > > I suppose it is possible, but complex and inconvenient. > Why do I need to do that in the first place? > > In my example, I had a function like this: > > (defun set-text-height (new-height) > (set-face-attribute 'default nil :height new-height)) > > How could I achieve what you suggest so that setting the font height > would also apply to menu item X resource font? Make the function write to the ~/.Xresources file? 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. More generally, I don't see a way around the fact that different parts of the system need to be customized differently. 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.