From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: "Mark H. David" Newsgroups: gmane.emacs.devel Subject: Re: Annoying Fonts Window in Emacs on MacOS - How to Hide Date: Wed, 30 Oct 2019 22:35:21 -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=d186bf98cec048418371fcad80f5f9e2 Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="107876"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Cyrus-JMAP/3.1.7-509-ge3ec61c-fmstable-20191030v1 Cc: chad , Alan Third , EMACS development team To: "Tim Cross" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 31 06:36:41 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 1iQ38T-000Ruu-5C for ged-emacs-devel@m.gmane.org; Thu, 31 Oct 2019 06:36:41 +0100 Original-Received: from localhost ([::1]:46658 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQ38R-0003IR-68 for ged-emacs-devel@m.gmane.org; Thu, 31 Oct 2019 01:36:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38682) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQ37Z-0003ID-4p for emacs-devel@gnu.org; Thu, 31 Oct 2019 01:35:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iQ37X-00066m-2M for emacs-devel@gnu.org; Thu, 31 Oct 2019 01:35:45 -0400 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:45303) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iQ37W-00064O-P9 for emacs-devel@gnu.org; Thu, 31 Oct 2019 01:35:43 -0400 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id D7569223E7; Thu, 31 Oct 2019 01:35:41 -0400 (EDT) Original-Received: from imap37 ([10.202.2.87]) by compute1.internal (MEProxy); Thu, 31 Oct 2019 01:35:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=NJWBnw eqD62T6lJ4M9Qrs4oDdOsg1XkHfcjUrowwBcc=; b=j3MfaCML1/PxQlj163uZOs LRNDBCrtXvW0+QyeRq970On8QWnZSj7NOhW2bi7eC2r3ezlyAWa6OKb0TMFmtf6U LgmPJ1C1movn54oQD6vRTFHUvbJFy5mCjNEKYcEUPsepuCM/o3Nd7qaV4+Lw+KPY bEiJc8+AFA95n+vAXfN8dFakgX2UXKr0/a2YAs+T5nAkhEP6PxgD17zjPJSVYL9p YnRGXf3CtLDe8UnceoWUnxK+DpN6J3HHL+bm7tEIsy5nXPB1lvD2LaOQrjPgvrEB pxt/RAO0dpIICjN30I6FOucM2Kmmc8c1QMnd2ooWHXdn92CPa2gAU/1t0Ga/zCXA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedruddtgedgkeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesrgdtreerreerjeenucfhrhhomhepfdforghr khcujfdrucffrghvihgufdcuoehmhhguseihvhdrohhrgheqnecuffhomhgrihhnpegvmh grtghsfhhorhhmrggtohhsgidrtghomhdprghpphhlvgdrtghomhdpvghmrggtshifihhk ihdrohhrghdpghhnuhdrohhrghenucfrrghrrghmpehmrghilhhfrhhomhepmhhhugeshi hvrdhorhhgnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Original-Received: by mailuser.nyi.internal (Postfix, from userid 501) id 4B0FA684005F; Thu, 31 Oct 2019 01:35:41 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 66.111.4.25 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:241664 Archived-At: --d186bf98cec048418371fcad80f5f9e2 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable C-h k =3D> s-t runs the command ns-popup-font-panel (found in global-map), which is an interactive built-in function in =E2=80=98C source code=E2=80=99. It is bound to s-t. (ns-popup-font-panel &optional FRAME) Pop up the font panel. ----- Original message ----- From: Tim Cross To: "Mark H. David" Cc: chad , Alan Third , EMACS develo= pment team Subject: Re: Annoying Fonts Window in Emacs on MacOS - How to Hide Date: Wednesday, October 30, 2019 5:47 PM that is a good point regarding the version/build of Emacs. I use to buil= d using the homebrew recipe, then I used the pre-built homebrew keg (ess= entially emacsformac version), but now I use railwaycat's recipe as I've= found it to be the best (best meaning emacs behaves most like it does o= n Linux and what I'm use to). What happens if you do C-h k and then enter command+t?=20 On my system, that runs 'transpose words'. If Emacs does not respond whe= n you enter command+t then it means that key binding is being picked up = by the macOS and not emacs and must be turned off at the OS level.=20 On Thu, 31 Oct 2019 at 09:16, Mark H. David wrote: > __ > I wasn't quite sure myself, so here's what I did: I downloaded and ins= talled from emacsformacosx.com and tried this. > Bottom line: same problem reproducible in latest versions. > I took notes, so here are all the gory details: >=20 > - Go to https://www.gnu.org/software/emacs/ > - Click MacOS download button > - Now here: https://www.gnu.org/software/emacs/download.html#macos > - Click Emacs for OSX link > - Now here: https://emacsformacosx.com/ > - Click Other Versions button > - Now here: https://emacsformacosx.com/builds > - Click "Emacs-26.3-universal.dmg" link to download it > - It downloaded the file at following URL > https://emacsformacosx.com/emacs-builds/Emacs-26.3-universal.dmg > - I then installed, and then brought it up. > - Now here's version info: "GNU Emacs 26.3 (build 1, x86_64-apple-darw= in18.2.0, NS appkit-1671.20 Version 10.14.3 (Build 18D109)) of 2019-09-0= 2" > - Result: same behavior as described before (Command+T shows but does = not hide annoying fonts window.) >=20 > ----- Original message ----- > From: chad > To: "Mark H. David" > Cc: Alan Third , EMACS development team > Subject: Re: Annoying Fonts Window in Emacs on MacOS - How to Hide > Date: Wednesday, October 30, 2019 1:09 PM >=20 > If you don't mind me asking, how are you getting a modern Emacs on mac= OS? In particular, are you building it yourself, are you using homebrew,= are you running the Mac port, are you using emacsformacosx.com, or rail= waycat's github or homebrew build? I ask because this sort of native-sys= tem setting is sometimes added/enabled by default in one of the native-i= zed 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 figur= e 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 dismis= s it at all. >=20 > Thanks, > ~Chad >=20 > 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 be= havior seems to be if it's up already, don't do anything. It should be c= hanged to close the popup in that case.=20 >> Thoughts? >> Thanks, >> -Mark >>=20 >> ----- 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 >>=20 >> 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. >> >=20 >> > 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. >> >=20 >> > Here's the annoying and buggy part with respect to Emacs: you canno= t >> > 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. >>=20 >> Usually when I get the fonts window open I just can=E2=80=99t get rid= of it at >> all. >>=20 >> I=E2=80=99d suggest unbinding super-t, something like: >>=20 >> (global-unset-key (kbd "s-t")) >>=20 >> --=20 >> Alan Third >>=20 >=20 --=20 regards, Tim -- Tim Cross --d186bf98cec048418371fcad80f5f9e2 Content-Type: text/html;charset=utf-8 Content-Transfer-Encoding: quoted-printable
C-h k

=3D>

s-t runs the c= ommand ns-popup-font-panel (found in global-map), which
is an interactive built-in function in =E2=80= =98C source code=E2=80=99.
It is bound to s-t.
<= div style=3D"font-family:Arial;">
(ns-popup-font-panel &optional FRAME)

Pop up the= font panel.


----- Original message -----<= br>
From: Tim Cross <theophilusx@gmail.com>
To: "Mark H. David" <mhd@yv.org>
Cc: chad <yand= ros@gmail.com>, Alan Third <alan@idiocy.org>, EMACS development= team <emacs-devel@gnu.org>
Subject: Re: Annoying Fo= nts Window in Emacs on MacOS - How to Hide
Date: Wednesday= , October 30, 2019 5:47 PM

that is a good point regarding the version= /build of Emacs. I use to build using the homebrew recipe, then I used t= he pre-built homebrew keg (essentially emacsformac version), but now I u= se railwaycat's recipe as I've found it to be the best (best meaning ema= cs behaves most like it does on Linux and what I'm use to).


What happens if you do C-h k and then en= ter command+t?

On my system, that runs 'tr= anspose words'. If Emacs does not respond when you enter command+t then = it means that key binding is being picked up by the macOS and not emacs = and must be turned off at the OS level.

On Thu, 31 Oct 2019 at 09:16, Mark H. David &= lt;mhd@yv.org> wrote:

I wasn't quite sure myself, so here's what I did: I downlo= aded and installed from emacsforma= cosx.com and tried this.
= Bottom line: same problem reproducible in latest versions.
I took notes, so here are all the gory det= ails:

- Click MacOS download button
- Click Ema= cs for OSX link
- Click Other Versions = button
- Click "Emacs-26.3-= universal.dmg" link to download it
- It downloaded the file at following URL
-= I then installed, and then brought it up.
- Now here's version info: "GNU Emacs 26.3 (build 1, x86_6= 4-apple-darwin18.2.0, NS appkit-1671.20 Version 10.14.3 (Build 18D109))&= nbsp;of 2019-09-02"
- Result: same behavior = as described before (Command+T shows but does not hide annoying fonts wi= ndow.)

----- O= riginal message -----
From: chad <yandros@gmail.com>
To: "Mark H. Dav= id" <mhd@yv.org>
C= c: Alan Third <alan@idiocy.org= >, EMACS development team <= emacs-devel@gnu.org>
Subject: Re: Annoying Fonts Wi= ndow in Emacs on MacOS - How to Hide
Date: Wednesday, Octo= ber 30, 2019 1:09 PM

If you don't mind me asking, how are you getting a modern Ema= cs 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 ho= mebrew build? I ask because this sort of native-system setting is someti= mes 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 dea= l with the (mis)feature -- particularly, not being able to dismiss the f= ont selector with Command-T, or not being able to dismiss it at all.
=

Thanks,
~Chad

On Tue, O= ct 29, 2019 at 3:32 PM Mark H. David <m= hd@yv.org> wrote:
Fantastic - thank you. That w= ould work as a workaround.
It= seems a bug should be made for the behavior Command+T not getting rid o= f 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

----- O= riginal message -----
From: A= lan Third <alan@idiocy.org>=
To: "Mark H. David" <mhd@yv.org>
Subject: Re: Annoy= ing 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 lo= oked into this a bit,
> an= d it's a documented "feature" for Emacs on MacOS (see:
> generally for documents (see:
> https://support.apple.com/en-us/HT201236). Apple's MacO= S doc says:
> Command-T: S= how or hide the Fonts window.
>
> In various apps w= ith document windows (e.g., build-in TextEdit as
> well as Emacs) it is supposed to pop up a windo= w thingee that lets
> you = choose fonts. Whatever, I never use. I always just want to get
=
> rid of it.
>
&g= t; Here's the annoying and buggy part with respect to Emacs: you cannot<= br>
> hide it from the keyboar= d. It's supposed hidden by doing a second
> Command+T. That works in other apps, e.g., TextEdit, b= ut it doesn't
> work in Em= acs. In addition, you cannot select the popup "windoid"
> that results, even by Command+`. Even if= you do select the windoid
&g= t; somehow (e.g., by clicking it), you cannot dismiss it by typing
> Command+W.

Usu= ally 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:

  &n= bsp; (global-unset-key (kbd "s-t"))

--
Alan Third




--
regards,

Tim
=

--
= Tim Cross


--d186bf98cec048418371fcad80f5f9e2--