From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: chad Newsgroups: gmane.emacs.devel Subject: Re: Annoying Fonts Window in Emacs on MacOS - How to Hide Date: Wed, 30 Oct 2019 13:09:35 -0700 Message-ID: References: <8ef30312-f143-4009-ab26-bca9a05b4407@www.fastmail.com> <20191029221823.GA58794@breton.holly.idiocy.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000082c9c9059626507d" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="259426"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Alan Third , EMACS development team To: "Mark H. David" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 30 23:20:00 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iPwJr-0015Ks-Pg for ged-emacs-devel@m.gmane.org; Wed, 30 Oct 2019 23:19:59 +0100 Original-Received: from localhost ([::1]:44802 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iPwJq-00023a-BI for ged-emacs-devel@m.gmane.org; Wed, 30 Oct 2019 18:19:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49392) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iPuHv-0001J8-Bs for emacs-devel@gnu.org; Wed, 30 Oct 2019 16:09:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iPuHt-0000sk-Gf for emacs-devel@gnu.org; Wed, 30 Oct 2019 16:09:50 -0400 Original-Received: from mail-yb1-xb30.google.com ([2607:f8b0:4864:20::b30]:38886) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iPuHt-0000qV-BL for emacs-devel@gnu.org; Wed, 30 Oct 2019 16:09:49 -0400 Original-Received: by mail-yb1-xb30.google.com with SMTP id r68so1437122ybf.5 for ; Wed, 30 Oct 2019 13:09:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=yYl6dSFcJm8NLOPqut9CaCb89aGtzMiueMbU7VkvLBE=; b=SsDJysmvlO1l+mWJaGVGhYHJgyG3OoD/WcvytgygVgKYYIqUhI3zJvTXg8Pa3eCOFG lYFcatAP0KsSQUNx0HnNJ7kxYay7G72eOBaY4WpUTxDTj4sBZRnVOwI1WgbjhQtJP6bR aridF6b6VvESmJYalpl//S9igwTGa66ijrDYe6eB7cYCBl9jPEhzyNPVOoDhAVw5bM/Y nByPo5m4DgMw+I4o8GJErqHtbnqcaIIkd2B8nADL+c7xxpkB2J19H7dLkYhYZmv4kVGn 8lMIlJ/irHX2CNEb5O/+8FJ3437qw0rGhkMnu/471SrJK0L527It7JvSl0JSxakwV6tA 5ecA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=yYl6dSFcJm8NLOPqut9CaCb89aGtzMiueMbU7VkvLBE=; b=tzWxm0jOFCPg6Xsvqvu1DvkMSbKwSFAsprb5YKCIHxwOaYHopHQjiLqEDFZOuXId2s C+x3ZGFuRA11NRN4jPW6b+tVpLhNRV9x9BuAVTiPWZVv8/ObFDoux+327moJBuYJrcxL HCrwLM7mU2pM+z406hjpbT9NJcRrfqajJrEYspaR2Y9UOofcnI2axc6JSDMvEHxMRhk5 Ci3w5pT+150y3LtQ3tdpoxWLRlc4P7U83CU1kVLhER6IGkjzrqDTjL72ywGawB9BDNrl LhACWAj3dGdUMJy4Q9FuEyo0JxKsZoGKqHZZ9YO7STYLp5s4RwKh5LTpIIv1uo7IEGE3 S+Ew== X-Gm-Message-State: APjAAAVEqT9HKXW09CjPGmkiqIEv/ckrKZZ/QyCwUNvh22PN9AnUXl/m 5ozZr1eXrhTNIFXnDwbEd4+do0YNZUXYMNbbAho= X-Google-Smtp-Source: APXvYqwlDdALBq8dJjTYx7Hn3q2cw6MHIq88DjMTHmKI4MlTZl5sb15SX78wXuGKitCuhBHwljyxWCpmjtN6CHB3YKE= X-Received: by 2002:a25:e70a:: with SMTP id e10mr940180ybh.105.1572466187223; Wed, 30 Oct 2019 13:09:47 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::b30 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:241650 Archived-At: --00000000000082c9c9059626507d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable If you don't mind me asking, how are you getting a modern Emacs on macOS? In particular, are you building it yourself, are you using homebrew, are you running the Mac port, are you using emacsformacosx.com, or railwaycat's github or homebrew build? I ask because this sort of native-system setting is sometimes added/enabled by default in one of the native-ized ports but not in the gnu master. (I no longer have good access to a macOS machine to check for myself; sorry.) Knowing this might help figure out how to deal with the (mis)feature -- particularly, not being able to dismiss the font selector with Command-T, or not being able to dismiss it at all. Thanks, ~Chad On Tue, Oct 29, 2019 at 3:32 PM Mark H. David wrote: > Fantastic - thank you. That would work as a workaround. > It seems a bug should be made for the behavior Command+T not getting rid > of the popup. Hopefully, that should not be too hard. The current behavio= r > seems to be if it's up already, don't do anything. It should be changed = to > close the popup in that case. > Thoughts? > Thanks, > -Mark > > ----- Original message ----- > From: Alan Third > To: "Mark H. David" > Cc: emacs-devel@gnu.org > Subject: Re: Annoying Fonts Window in Emacs on MacOS - How to Hide > Date: Tuesday, October 29, 2019 3:18 PM > > On Tue, Oct 29, 2019 at 12:31:02PM -0700, Mark H. David wrote: > > I frequently type Command+T by mistake in Emacs because in browser > > apps (particularly Chrome) it's used for creating a new tab, and I > > do that so often, I must do it by mistake. I almost never change > > fonts, and never with command+t. Ever. So, I looked into this a bit, > > and it's a documented "feature" for Emacs on MacOS (see: > > https://www.emacswiki.org/emacs/SetFonts#toc14) and for MacOS > > generally for documents (see: > > https://support.apple.com/en-us/HT201236). Apple's MacOS doc says: > > Command-T: Show or hide the Fonts window. > > > > In various apps with document windows (e.g., build-in TextEdit as > > well as Emacs) it is supposed to pop up a window thingee that lets > > you choose fonts. Whatever, I never use. I always just want to get > > rid of it. > > > > Here's the annoying and buggy part with respect to Emacs: you cannot > > hide it from the keyboard. It's supposed hidden by doing a second > > Command+T. That works in other apps, e.g., TextEdit, but it doesn't > > work in Emacs. In addition, you cannot select the popup "windoid" > > that results, even by Command+`. Even if you do select the windoid > > somehow (e.g., by clicking it), you cannot dismiss it by typing > > Command+W. > > Usually when I get the fonts window open I just can=E2=80=99t get rid of = it at > all. > > I=E2=80=99d suggest unbinding super-t, something like: > > (global-unset-key (kbd "s-t")) > > -- > Alan Third > > --00000000000082c9c9059626507d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
If you don't mind me asking, how are you getting a mod= ern Emacs on macOS? In particular, are you building it yourself, are you us= ing homebrew, are you running the Mac port, are you using emacsformacosx.com, or railwaycat's github or = homebrew build? I ask because this sort of native-system setting is sometim= es added/enabled by default in one of the native-ized ports but not in the = gnu master. (I no longer have good access to a macOS machine=C2=A0to check = for myself; sorry.) Knowing this might help figure out how to deal with the= (mis)feature -- particularly, not being able to dismiss the font selector = with Command-T, or not being able to dismiss it at all.

= Thanks,
~Chad

On Tue, Oct 29, 2019 at 3:32 PM Mark H. David= <mhd@yv.org> wrote:
Fantastic - thank you. That wo= uld work as a workaround.
It seems a bug should be made for the behavior Command+T not getting rid of= the popup. Hopefully, that should not be too hard. The current behavior se= ems to be if it's up already, don't do anything.=C2=A0 It should be= changed to close the popup in that case.
Thoughts?
Thanks,
-Mark

----- Original message -----
From: Alan Third <a= lan@idiocy.org>
To: "Mark H. David" <mhd@yv.org>
Cc: emacs-devel@gn= u.org
Subject: Re: Annoying Fonts Window in Emacs on MacOS - How to Hide
Date: Tuesday, October 29, 2019 3:18 PM

On Tue, Oct 29, 2019 at 12:31:02PM -0700, Mark H. David wrote:
> I frequently type Command+T by mistake in Emacs because in browser
> apps (particularly Chrome) it's used for creating a new tab, and I=
> do that so often, I must do it by mistake. I almost never change
> fonts, and never with command+t. Ever. So, I looked into this a bit, > and it's a documented "feature" for Emacs on MacOS (see:=
> https://www.emacswiki.org/emacs/SetFonts#toc14) and for MacOS
> generally for documents (see:
>
https://support.apple.com/en-us/HT201236). Apple= 9;s MacOS doc says:
> Command-T: Show or hide the Fonts window.
>
> In various apps with document windows (e.g., build-in TextEdit as
> well as Emacs) it is supposed to pop up a window thingee that lets
> you choose fonts. Whatever, I never use. I always just want to get
> rid of it.
>
> Here's the annoying and buggy part with respect to Emacs: you cann= ot
> hide it from the keyboard. It's supposed hidden by doing a second<= br> > Command+T. That works in other apps, e.g., TextEdit, but it doesn'= t
> work in Emacs. In addition, you cannot select the popup "windoid&= quot;
> that results, even by Command+`. Even if you do select the windoid
> somehow (e.g., by clicking it), you cannot dismiss it by typing
> Command+W.

Usually when I get the fonts window open I just can=E2=80=99t get rid of it= at
all.

I=E2=80=99d suggest unbinding super-t, something like:

=C2=A0 =C2=A0 (global-unset-key (kbd "s-t"))

--
Alan Third

--00000000000082c9c9059626507d--