From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Fix placement of toggle and radio button in Lucid menu. Date: Fri, 25 Feb 2022 21:46:58 +0800 Message-ID: <87sfs75a99.fsf@yahoo.com> References: <87sfs87i5o.fsf@elite.giraud> <87pmnc7f5c.fsf@yahoo.com> <87k0dk7ejd.fsf@yahoo.com> <878rtzb3hr.fsf@elite.giraud> <83h78nqguu.fsf@gnu.org> <87wnhj152u.fsf@elite.giraud> <83a6efqepd.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19402"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: Manuel Giraud , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Feb 25 15:09:36 2022 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 1nNbHr-0004sB-ST for ged-emacs-devel@m.gmane-mx.org; Fri, 25 Feb 2022 15:09:35 +0100 Original-Received: from localhost ([::1]:38168 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nNbHq-0002OB-VX for ged-emacs-devel@m.gmane-mx.org; Fri, 25 Feb 2022 09:09:35 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:42298) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nNawD-00027f-H0 for emacs-devel@gnu.org; Fri, 25 Feb 2022 08:47:17 -0500 Original-Received: from sonic307-56.consmr.mail.ne1.yahoo.com ([66.163.190.31]:37378) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nNawA-0003Mb-2p for emacs-devel@gnu.org; Fri, 25 Feb 2022 08:47:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1645796828; bh=rJ5hZwFDazeVJL+03avXyLIahCFqTxd3lPIgW6QX6Yo=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=fAKFypmgifHEd0Y+P37zQX3HG6fhBcnIa36mkegBu0/80XZ3pdxqABQaDuXiYXsQ1OeUiyVvWA57iuqaJwUCcgn4DBBG76Bc1e6h04qyWtmW+i6kjXR8kaqw6on/RoTM6dZ2hr+wmHSkVUq4u6W6dLt4TcZv2q7dDM9it3srGlOpwPrOoaL6L5Ew/qY8pzZuJdIJ+TZJqsTv9dzL7blRmr20KoSgaF0MP28mYK3eBb2pSA512TpQQV8KJzsTsJBalnA/APnzrDXhIqmeDTW1oCwqT7Qi2HiVlAggwipQxKgz9Ew35V13w3jo9Arwo549k7m/XMBloqz3P2FhTUqZ9w== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1645796828; bh=BsaLbSBDNViNeMHn/Fch4WVv8bO7d+sXq3WqtO2vryR=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=rxmGY9k6uoztS9o4oC5TxrFOY8aCs6QfVElzBAM42eirrD3gtpG+DEsJixASzl78TWMbvruXCtBAW3EKD+QBXd73QsNQNpOOKlxzoTiPUCldBgQr8JN+ZqGmCUufxuhd7wVt5f0SDJVTVmhEKyekaXnS5D5DvOe42G28rvAqTC/yi90PQljK18K6xfnaXclWORnB9s3MyacnTXinRPcJTjupf9OusmBGcj+U3IwK+G3FoVoYX4U57BGYJUStILiL25p/LUfuiwgpAekGAU0YvplGigz6aNhm27/tvRIILjjM1a1m9ee+IoQ0jpUxxIm6lYFwZFQ3nqy3IHszP8LThQ== X-YMail-OSG: YAesiioVM1lQ0ZeWFzoDo7I_B_eeNzZ11WgIzlFXhufosu1FnnbIwTW.4sQBfdu A.U9Wgk2ObKABFJCscOtuP2XS6C6R4hM2W2TuB9dYGHxEINKv.DbOEW1mkUs5xiDDCq61ezBSASP Ix2Jo381_h5dP_ZN6v1b31g9qzk06RZ.ra6fjOUTINs1.EUPyzbIlr5qUN4dbSCxBtqY0v8lGAZ8 uTQZHQemqpLse9H9aR3CmFhLXrF9_ihnYxBTbVO6qlkPJ_trNRqUeJAk2LKW75qQXA7Nzxn7yXsL LTC.0e9vp47wpe1ahsaEikY9BTbEPRI0aESwt76rp5jguu3tpdEIIVZ66jdrjGTm0gH5i1UNq2Mo S55y.ISFQpgPZ449us0LnO0JNkRFPXf5uozEH9AhHMmuSAAidZ3ZnG99vSoyM6dKQz.PHbgSoLjO d2M8gfz1grs6Wa._Z_w0PbzQ0Izb.6FE0DvEN6X1X5NTsUKQT2SmV8b53g7WAaVvNiGtYojwbwf8 O.C16LHGot_aMmQC2RgGBf.bjaTB8cyMcz0H_qFYTd.SUWIa15SRvWkHWwfa7JsEieuBBb_vZePz DAPaybnJqvzETS.bX4vKyH5eMcLViqCg4rtAtgKeiGWZw5JPtlYFhgMEHWYCxG8c.eztd_5v.QRS X6SDVvDHkPjM.MyZjtGItNDTeE1swrlLOlLYomxUy2ySn3zbb7s6nSO_XMBuBqjhtUwuxozMpH6Q 9FC9diy5zM6eS3YdDbpd6jUQIMEGb44qRnT18vj7.yhHRBO4NvamS6IgPr6j0sOxGl4Q6f4V69eX 3E2kJtX9g2dxdDUS.IU645zQ8SaHjqwbT_ToSghpqg X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.ne1.yahoo.com with HTTP; Fri, 25 Feb 2022 13:47:08 +0000 Original-Received: by kubenode504.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 7be2a054b966cd5739e74a8b1e162d89; Fri, 25 Feb 2022 13:47:02 +0000 (UTC) In-Reply-To: <83a6efqepd.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 25 Feb 2022 15:05:18 +0200") X-Mailer: WebService/1.1.19797 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.190.31; envelope-from=luangruo@yahoo.com; helo=sonic307-56.consmr.mail.ne1.yahoo.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, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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:286682 Archived-At: Eli Zaretskii writes: > They are available in gui_produce_glyphs (look for "pcm"). Unfortunately, that's not available inside the Lucid menu widget. What is actually needed is the entire `font_extents' field of the menu widget. In gdb, that would be (gdb) p mw->menu.font_extents Inside `draw_toggle' or some other similar function. > So is this just an aesthetic issue? If so, perhaps adding a variable > exposed to Lisp could be enough: then users who, like you, dislike the > default display, can control the offset. It would be better as an X resource, IMHO. Lisp doesn't affect at present the behavior of the Lucid menu widget, and it would be cleaner to keep it that way.