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: Menu bar items structure Date: Thu, 17 Nov 2022 19:15:26 +0800 Message-ID: <87k03tg7ch.fsf@yahoo.com> References: <87pmdmkdrh.fsf@elite.giraud> <83iljednq6.fsf@gnu.org> <87sfiiezv0.fsf@yahoo.com> <87cz9lkino.fsf@elite.giraud> <87o7t5gajj.fsf@yahoo.com> <878rk9ki3e.fsf@elite.giraud> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3819"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Manuel Giraud Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Nov 17 12:16:35 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 1ovcsk-0000qS-O7 for ged-emacs-devel@m.gmane-mx.org; Thu, 17 Nov 2022 12:16:34 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ovcrw-0004l6-LR; Thu, 17 Nov 2022 06:15:44 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ovcrs-0004gQ-61 for emacs-devel@gnu.org; Thu, 17 Nov 2022 06:15:43 -0500 Original-Received: from sonic301-31.consmr.mail.ne1.yahoo.com ([66.163.184.200]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ovcrq-0003nY-Ch for emacs-devel@gnu.org; Thu, 17 Nov 2022 06:15:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1668683734; bh=z5hw94QYv+z95qexIcFAwOr/vihSs8rIPMEtqw0LNkU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=FUJKCNGhFp4Je4B23Gu5WPvZGItXemKRgoR4ry3ZED6v33Ow5uNsF+HmuO5qxE/8Q+hVfs+dYXl8ocFwCHgUN8k8JnkXtj89dpKTzM+0GKhjJNmWIHOS/RsTGwsnVheAE+J6pLiQLsnMNKdUt5BepRBcaJ6w/YHuYqZ6EXjVTt8a7Dl6HZ4t8OuG8XGxhqm37z3ijy/a6h15J70Zi0tYmSrBZWc32a0NIPtky4DAZckTFt44HuM8hZdGllWqZlIGMNr9imIFa/fsXPRukHsMfyq1iuLYOUgoAfWLz9L0oM6jJ8CuHxX++cBWoCAZ6aSXAvaPoWxcfE/JH2HXnRvifA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1668683734; bh=7SUWE6vfYo9sxq7RiJFEGauk13iVkcQaVsslOArkO3B=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=l1c+ehPBbMJ5UmAWme/DEkQ12BBH6TW7gl316nPNEZuVM2QNKIenQm+ergrGMsLotiw2lup/9PqZyi6jbnprU0Pd7DymsMXDixK2NjFxg8oGVxB05DwP49sbzdUH2QyKFC/I6MbeZcdyygGKEe2zwISCUdKJc6OzbfcoS7N8xlnh8ujLl/9JggW4Y1EpVuDukdiB9Sxcaf86jxXgncXRNh1fb7FhEA3zMVRUuZ688L9E9Be2e840+uLDPstRzpdacYOmao7Kz4w1SF3gEaMlD2lPj0AzFS8C2X+ZIkiZQ8G3fmtPn3ZqZqK9yxw2jPZEMYSPTyPJLdtGx/tFnMyKww== X-YMail-OSG: PuNcS7AVM1lWUfcN17AlN2mZkKJMAaSIS_0MCGUIZqgnTprzDJrAPQTxOo51nD2 8jLqYzV7h2WIKp7RFSetpEIllal_n9utN2PV3m0EKQOB_wUrIYrro9KAoKfw6i2x5UwRF0cIawZY exJXzTGn.IT6HysHQvVN1h3Xa2iuwvBqnwzxCSMpNKe5zGNM2sAEFbrozo2UTWoE80tF.1O8NZt4 ZqyBd3eE1jm7aTSqrk.AWcFXAMDV0QWElTcGImiwikpIGEO8_n7oZvCd3gjGmZ8UiLtM.iUSg4LA IWFhtMFasPJfsR5IGFUtzPdBFWZd.Y40bUUkr5l1LJx9gO4x72m7VzmUpb7t9U7PhxFGufSlss1T FdZf2tEUR9ZjdQpcd9zNvpJT2PF65ulyzY2xBhbJUg9q4fGh5uCvBCGe9iHCV9fAalHeQYoUbMFD FOlfjxdbEYfqoqadracoHykDS4PBjW7mkRN925ySpzVfs8U0dxMgFyyDit.Es8tBZ25vZTllCAmK H6ZpZia8NAA93fSo5Uj2HApio3IaMEoYd2NzSFYu1SaWvmldi2ZkVucz29H6hayBLmszGhkwP6Up HV7RfRh0e1pDwMopkoeDD9FwcfAtdxhs4UzH99nqSZ6FiP4.rGiMPlOMPHiFAkue4yZZqJm0HK2u .OBvNHaGDgbl1RtN95wrBu3GanYUVGFSvIbdGcSAxIY.rStDnjWI3tzHhJ2o97IMAAXwqaWnKUsG YuYn9y74INUAEZDQEW0uimvHeix_zs0A3zoUPmnRrjE3VOEzGSO4Bmj3mEtBCnz1I8Q8CKOeGJ3l DtlrStrzzz8TjzNLJEM2tVk4qCdfve8bYMxEwD1kV6 X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.ne1.yahoo.com with HTTP; Thu, 17 Nov 2022 11:15:34 +0000 Original-Received: by hermes--production-sg3-6c8895b545-66t5n (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 7bdf110b458078534a2acc2efbe770bd; Thu, 17 Nov 2022 11:15:31 +0000 (UTC) In-Reply-To: <878rk9ki3e.fsf@elite.giraud> (Manuel Giraud's message of "Thu, 17 Nov 2022 11:09:41 +0100") X-Mailer: WebService/1.1.20863 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.184.200; envelope-from=luangruo@yahoo.com; helo=sonic301-31.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, 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.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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:300039 Archived-At: Manuel Giraud writes: > It's not me that is using pixel_to_glyph_coords. It is line 5977 in > keyboard.c. Do you suggest I use x_y_to_hpos_vpos here instead? Yes. But at the same time, I think we might as well fix the code to stop assuming that each character in the menu bar item string corresponds to a single glyph, so the changes that have to be done are actually much more subtle.