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.devel Subject: Re: Menu bar items structure Date: Thu, 17 Nov 2022 19:01:10 +0200 Message-ID: <83tu2xcy7d.fsf@gnu.org> References: <87pmdmkdrh.fsf@elite.giraud> <83iljednq6.fsf@gnu.org> <87sfiiezv0.fsf@yahoo.com> <87cz9lkino.fsf@elite.giraud> <834juxesqa.fsf@gnu.org> <87k03tipsh.fsf@elite.giraud> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1535"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, 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 18:04:07 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 1oviJ5-000Ac1-4h for ged-emacs-devel@m.gmane-mx.org; Thu, 17 Nov 2022 18:04:07 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oviGT-0002YF-2l; Thu, 17 Nov 2022 12:01:25 -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 1oviGR-0002VU-9F for emacs-devel@gnu.org; Thu, 17 Nov 2022 12:01:23 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oviGQ-0000Yt-9A; Thu, 17 Nov 2022 12:01:22 -0500 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=aHtqirQagdJ2QyeZj8SSkvsWPoWp0Gibo/LcgHUxQqc=; b=o2BN1p5L9NAN Cl3RN49NJXz3gkRPdgbRgj3w/+zinPCsVnj+Suts2Xy7ArTjFpxvajEjlj8ERCoOX+Jf/Uc1hSnjK c23en8vmGeOwgEL7Sk9ezoYGtdFT6aFn8ilNhsChwk7/1xZNiu9iKtoi6vdwjR5x19DCG5JHF1NRH RcmdVgVlKqdJRIibvM74Gy0XP9GuWYtDI5na5dnXiCTO12f2hoo6lkVitPOqqCcI0c/vBlAGF7OoP 5LSLVsh+chu/dzRmtaO0QIfYkWoUVaeDVrs6+RAoFPONzxteUvt+lQ/IccDcmSGasUTbkOPy0Cmbe GqlYaZve8nXhUj9W7Lsuqg==; Original-Received: from [87.69.77.57] (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 1oviGC-00081o-Eo; Thu, 17 Nov 2022 12:01:21 -0500 In-Reply-To: <87k03tipsh.fsf@elite.giraud> (message from Manuel Giraud on Thu, 17 Nov 2022 16:06:22 +0100) 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:300055 Archived-At: > From: Manuel Giraud > Cc: Manuel Giraud , luangruo@yahoo.com, > emacs-devel@gnu.org > Date: Thu, 17 Nov 2022 16:06:22 +0100 > > Eli Zaretskii writes: > > [...] > > >> To overcome this issue my idea was two fold: > >> > >> 1- change the semantics of this index from a char position to a > >> pixel position > >> > >> 2- add a fifth element to a menu item that records the end > >> position of a menu entry (also in pixel and filled in > >> display_menu_bar) > > > > The first alternative is better, IMO: on TTY frames each character is > > 1 pixel, so the change doesn't affect TTY menus. > > I was not clear. My patch does the two points. Why do you need the second one?