From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Mattias_Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.devel Subject: Re: NS port menus (was: bug#44333: 27.1; macOS menu bar 2-clicks) Date: Mon, 28 Dec 2020 18:38:09 +0100 Message-ID: <82F3B843-0E59-4EDD-AE1C-2B5911BE953E@acm.org> References: <20201101172843.GQ59267@breton.holly.idiocy.org> <40B4784A-74FF-4021-B51C-2E80801483BE@acm.org> <44D6C180-9C74-4B2D-BCB8-683FC4A84091@acm.org> Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.17\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5467"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Alan Third Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Dec 28 18:39:45 2020 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 1ktwUi-0001JP-IC for ged-emacs-devel@m.gmane-mx.org; Mon, 28 Dec 2020 18:39:44 +0100 Original-Received: from localhost ([::1]:42130 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ktwUh-00071u-Fn for ged-emacs-devel@m.gmane-mx.org; Mon, 28 Dec 2020 12:39:43 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51766) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktwTJ-0006QI-GO for emacs-devel@gnu.org; Mon, 28 Dec 2020 12:38:17 -0500 Original-Received: from mail1447c50.megamailservers.eu ([91.136.14.47]:33946 helo=mail265c50.megamailservers.eu) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktwTH-0001qW-24 for emacs-devel@gnu.org; Mon, 28 Dec 2020 12:38:17 -0500 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1609177092; bh=Hu/UgXhoP9w9+f75tuUskKbYZxZvFeNGC/JFaXa4zPs=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=cw0XUfFAD+KYnNQeIlQR5RNBoMxOVnn4jwP/KqJzyegBsRUYnq8G4fyiQ8IBwDvkB hQkLmeMJHiFfJ8g1jpiC/eLpiYMb3+m0Ch8QweC9onZMyZCR1TFtWFe+s+/Odz4QwC 61o6h5/w6aM7M/TKjkF6hAHJyJR1XoTHvzXWY8jA= Feedback-ID: mattiase@acm.or Original-Received: from [192.168.0.4] (c188-150-171-71.bredband.comhem.se [188.150.171.71]) (authenticated bits=0) by mail265c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id 0BSHcApA012084; Mon, 28 Dec 2020 17:38:12 +0000 In-Reply-To: X-Mailer: Apple Mail (2.3445.104.17) X-CTCH-RefID: str=0001.0A742F23.5FEA1804.002C, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=QoAgIm6d c=1 sm=1 tr=0 a=SF+I6pRkHZhrawxbOkkvaA==:117 a=SF+I6pRkHZhrawxbOkkvaA==:17 a=kj9zAlcOel0A:10 a=M51BFTxLslgA:10 a=hIj89exaAAAA:8 a=CUmJD0qLz_3pBwXju_QA:9 a=CjuIK1q_8ugA:10 a=lS9wXHQM5UdnNJ4u63Ry:22 X-Origin-Country: SE Received-SPF: softfail client-ip=91.136.14.47; envelope-from=mattiase@acm.org; helo=mail265c50.megamailservers.eu X-Spam_score_int: -11 X-Spam_score: -1.2 X-Spam_bar: - X-Spam_report: (-1.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:262025 Archived-At: 27 dec. 2020 kl. 19.21 skrev Alan Third : > I've moved this to Emacs Devel because that bug report is closed now > and it didn't seem like the right place to discuss it. Agreed; this is now bug#45502. > I'd wondered about using NSAttributedString and NSParagraphStyle to > set a tab stop at a specific pixel point, that should allow perfect > alignment, or, and this is a bit hackier, display the binding in a > monospace font. Then you could use (variable space font) spaces and > tabs to line up the start of the binding text, then use (monospace > font) spaces to align the bindings. That's maybe a bit too much work, > though, and I'm not at all knowledgeable about how NSAttributedStrings > actually work, so maybe it's impossible. It didn't look obvious how to do it, but I could use some help.