From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#58917: 28.2; Arm Build on Mac OS Monterey: Buffer Name is on the same line as Tool Bar Icons Date: Sat, 12 Nov 2022 20:11:23 -0800 Message-ID: References: <3D04793A-9A50-436F-AD28-076E5B2FBC3B.ref@yahoo.com> <3D04793A-9A50-436F-AD28-076E5B2FBC3B@yahoo.com> <87edunh2af.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2168"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Oliver Yang , 58917@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 13 05:12:58 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 1ou4Mb-0000PD-P2 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 13 Nov 2022 05:12:57 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ou4Lk-0002w0-Vo; Sat, 12 Nov 2022 23:12:05 -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 1ou4Lj-0002vB-FD for bug-gnu-emacs@gnu.org; Sat, 12 Nov 2022 23:12:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ou4Lj-0004Xf-6f for bug-gnu-emacs@gnu.org; Sat, 12 Nov 2022 23:12:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ou4Li-0008Fm-1C for bug-gnu-emacs@gnu.org; Sat, 12 Nov 2022 23:12:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 13 Nov 2022 04:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58917 X-GNU-PR-Package: emacs Original-Received: via spool by 58917-submit@debbugs.gnu.org id=B58917.166831269231642 (code B ref 58917); Sun, 13 Nov 2022 04:12:01 +0000 Original-Received: (at 58917) by debbugs.gnu.org; 13 Nov 2022 04:11:32 +0000 Original-Received: from localhost ([127.0.0.1]:49753 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ou4LD-0008EG-NF for submit@debbugs.gnu.org; Sat, 12 Nov 2022 23:11:32 -0500 Original-Received: from mail-oa1-f45.google.com ([209.85.160.45]:38745) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ou4LB-0008E3-Bk for 58917@debbugs.gnu.org; Sat, 12 Nov 2022 23:11:29 -0500 Original-Received: by mail-oa1-f45.google.com with SMTP id 586e51a60fabf-1322d768ba7so9386861fac.5 for <58917@debbugs.gnu.org>; Sat, 12 Nov 2022 20:11:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=IKqfeJmydhtvgeTKoiJh6J9yTbUUkL5O72LOBwCQJFc=; b=kKFrz8EMPhOvoeZL1T9CRSpNzTSE6S/EMj0dL2dkuJ8E0VOSmfi/mqggKOLfGvW+6c Q8Z2EBI1e+uV+uVFnUBlV1F56zQXgyxH/bqaq255nn65hkoRfz2oWH70fNX+gO385l/E kByAya8Zc+lNS3eCNFgSNNoOmUjYZS8UbyIbaBpAjf3k5Y3fNZhJ/kBTzKxzGdZQ2Xml 6dmU+1bRaTY2FdShZYD4hTad3nnpbuPWWO79fMqCsnQ6V5dK+P0kGLFONWmNCulLg/eb Vo6E8tdTrqpaFyYBXHZcCd6o/5RxonKQ2IkPysj9y149UysgnGcr/BwEMQJaGfUJaxjA mGcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=IKqfeJmydhtvgeTKoiJh6J9yTbUUkL5O72LOBwCQJFc=; b=vMKavoUX5lp8WQrUlNUraByZCvNpRFOlPHGr29iHrwJNqvjpR1snko/CbQAP0d34kd YNeasRjoVnFZ232QJLHEAs9Y92xyIey+9iGaz76DabDRQ6LIjE/Y9So3SSJyqeAB+EtS B4uFnCJicKHjXUAVtjVVF+aRAp+F27FYIEYZ5vEJ2cgKCZp4o9pqu+tHngaN8OuGig1Q LnainRF9bNk+7JBlf9rYeD1UCimP9psEzR4GHU9HiQfaIeQhXjc8t5+ZRHtsSXT6LFNs jjyYXxKYn9SzGnjvL01lLorUxM4ba0kcD3vO8QyhAF3SOo3R9taYcyPuw9g9Vmxu5au+ pMjQ== X-Gm-Message-State: ANoB5plV5n9tgc6tvKAZOzHVVr6v3ggd5WWy0HkCdy+jjs834WbFCAj1 uDLpQB7/GAjld8R+D2csremx0t5EZBF3wxKQqFc= X-Google-Smtp-Source: AA0mqf4G6ssMVBlzQv15R4ZkCaV9tZbrbu81pI1N0bQoqdIda6vptPFLpf8ZQ6vD73zl3roLwLpkXulsEf81QZiqAng= X-Received: by 2002:a05:6871:480a:b0:12b:fbe7:b793 with SMTP id qc10-20020a056871480a00b0012bfbe7b793mr4156196oab.92.1668312683816; Sat, 12 Nov 2022 20:11:23 -0800 (PST) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sat, 12 Nov 2022 20:11:23 -0800 In-Reply-To: <87edunh2af.fsf@yahoo.com> (Po Lu's message of "Tue, 01 Nov 2022 09:49:28 +0800") X-Hashcash: 1:20:221113:58917@debbugs.gnu.org::YXW6B/HyYYy0cpq6:BXfc 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:247735 Archived-At: Po Lu writes: > Oliver Yang writes: > >> Same problem described in the thread >> https://emacs.stackexchange.com/questions/64602/buffer-name-on-separate-row-from-toolbar-icons >> >> The Arm Build of emacs on Mac OS 12.6 will have buffer name on the same >> line as the toolbar icons. This is not case with X86 version of 28.2 on >> Mac OS 12.6. >> >> >> In GNU Emacs 28.2 (build 1, aarch64-apple-darwin21.1.0, NS appkit-2113.00 Version 12.0.1 (Build 21A559)) >> of 2022-09-12 built on armbob.lan >> Windowing system distributor 'Apple', version 10.3.2113 >> System Description: macOS 12.6 > > As usual, with Apple, this depends on what system you built Emacs on. > > So my guess is you built the build exhibiting the new tool bar placement > on Mac OS 12, and the build that does not on some older version of Mac > OS. There is nothing that we Emacs developers can do about this, I > think. The linked thread suggests some solutions: It looks like you can change the default setting for whether or not the title (for Emacs, it's the buffer name) is over the toolbar with defaults write -g NSWindowSupportsAutomaticInlineTitle -bool false [...] I think that something like the following code change to Emacs in the right place would change the default appearance always: if ( [NSToolbar instancesRespondToSelector:@selector(setToolbarStyle:)]) [win setToolbarStyle: NSWindowToolbarStyleExpanded]; for an NSWindow object win at an appropriate time. There is also a link to: https://apple.stackexchange.com/questions/408475/revert-ui-on-big-sur But people are also commenting that this no longer works on Monterey (a.k.a. macOS 12, the latest version). It is not clear to me if this refers to the code change, or to the "defaults write" command only: Just an update for others who stumble across this: this setting seems to have been removed in Monterey (12.0). It doesn't work for me any longer, and that seems consistent with some other new web searches turning up similar results. Perhaps we should test doing something like the code above, and if that works make it into a defcustom? If that's not possible for some reason, perhaps it should be documented in PROBLEMS? I don't really do Objective-C or macOS development, so I can't help with this, I'm afraid. I'm happy to test a solution if someone were to write up a patch though.