From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Tim Cross Newsgroups: gmane.emacs.devel Subject: Re: Annoying Fonts Window in Emacs on MacOS - How to Hide Date: Thu, 31 Oct 2019 17:08:21 +1100 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="000000000000d55bb705962ead51" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="233776"; mail-complaints-to="usenet@blaine.gmane.org" Cc: chad , Alan Third , EMACS development team To: "Mark H. David" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 31 07:08:49 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 1iQ3dZ-000yhX-0N for ged-emacs-devel@m.gmane.org; Thu, 31 Oct 2019 07:08:49 +0100 Original-Received: from localhost ([::1]:46766 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQ3dX-00031q-Nk for ged-emacs-devel@m.gmane.org; Thu, 31 Oct 2019 02:08:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41799) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQ3dO-0002yD-25 for emacs-devel@gnu.org; Thu, 31 Oct 2019 02:08:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iQ3dL-0006zh-NZ for emacs-devel@gnu.org; Thu, 31 Oct 2019 02:08:37 -0400 Original-Received: from mail-ot1-x331.google.com ([2607:f8b0:4864:20::331]:37034) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iQ3dL-0006yX-E3 for emacs-devel@gnu.org; Thu, 31 Oct 2019 02:08:35 -0400 Original-Received: by mail-ot1-x331.google.com with SMTP id 53so4389776otv.4 for ; Wed, 30 Oct 2019 23:08:35 -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=Px9zabk7imcHR8z5FEhGaqAmKamkEeh9If8Bp22vkkE=; b=e0E6C4CDiUKY9qMQ07PjcnyIL2Dzd7jLb6imYxofokEOoJmnl80Hi1GV45a03bZ1cn m14p4rGvn2phWylkHEDw5KS7R9MCm0IB6Edz74RPAH6570V8qN1h1Iqy1tarRIjkEXvg JM2rYevDnq7iboPnMguFqEDXcSo+HTCHytwJhSS9z2vL4OPfaQNreBSIEJ2qLxN4msBY 7WPyNUWUPFER1gXnAeFdQMYoQWuVbbIL/WMIJ7tjEpqK7q/oRPg9iqtwnx338XXkJM2k eHLONGUis3RDO2GjQDYmfbyIJsMMM+kn0VRj1+x0Ce2vrf2/V/9NpvGALYZ1DLlkTdqw TTJw== 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=Px9zabk7imcHR8z5FEhGaqAmKamkEeh9If8Bp22vkkE=; b=jBaVJx60D04y9Zyhv+zL+wBh1WXsYO5Ky0ctw/JViXlaM5a6/63IBArlU7u3Es3oWp lfztSNt2T5njqdL4I5h70kGbmXn9Lv5Ame7uCXGEgTsCP1F92R4Oj0B7Kth6wU9+M/iO 8yz+n8oxsVKfddoLphrcp8XYC1/QbB/+586LvJVuZ1xFTflSZOB08iX2H7eLeee2WF2n /YwL9hj5e/DkMqGrA5Fh/l/XLXXcOeMiAnv0yh1Lkx5Vwmej5bruqA8xSlOPkipJq/QC t0Yic07R2Jh/uKhNzYeCcNTRcqoqzXR3n5tQp1BO7JNqiMc5np2hiBN2ehItQfJOjEcw TGgA== X-Gm-Message-State: APjAAAUxw01yeaygzQ2lavo14YCADcTv0ogePNJwzIb7pqFzPTjC8FSY G8tP/+Xgt+hW/2n8WtJGxBEm3/Ir1r8nd/V+7g8= X-Google-Smtp-Source: APXvYqzXkm4Gnmx4lA86XhbiixxWWANKSm7CZOImslXoBIsgM+rSjmCeKc5AimBvmspsv6S5jVqFm+tirjNuBOa+lyg= X-Received: by 2002:a9d:ed3:: with SMTP id 77mr2985835otj.314.1572502112654; Wed, 30 Oct 2019 23:08:32 -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::331 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:241665 Archived-At: --000000000000d55bb705962ead51 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable OK, this is one of those instances where the specific build and local configuration make a difference. I have this in my init.el (setq mac-command-modifier 'meta) (setq mac-option-modifier 'none) which makes things work like my Linux system (I use 'super' for OS level actions, like switching desktops, rather than for Emcs. This also means I don't have 's' (super) mappings in emacs. If you wanted to just get rid of s-t, you could unbind the key and problem solved. e.g. (global-unset-key "s-t") On Thu, 31 Oct 2019 at 16:35, Mark H. David wrote: > 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 > development 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 build > using the homebrew recipe, then I used the pre-built homebrew keg > (essentially 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 doe= s > on Linux and what I'm use to). > > > What happens if you do C-h k and then enter command+t? > > On my system, that runs 'transpose 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 wrote: > > > I wasn't quite sure myself, so here's what I did: I downloaded and > installed from emacsformacosx.com and tried this. > Bottom line: same problem reproducible in latest versions. > I took notes, so here are all the gory details: > > - 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-darwin18.2.0, NS appkit-1671.20 Version 10.14.3 (Build > 18D109)) of 2019-09-02" > - Result: same behavior as described before (Command+T shows but does not > hide annoying fonts window.) > > ----- Original message ----- > From: chad > To: "Mark H. David" > Cc: Alan Third , EMACS development team < > emacs-devel@gnu.org> > Subject: Re: Annoying Fonts Window in Emacs on MacOS - How to Hide > Date: Wednesday, October 30, 2019 1:09 PM > > 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 acces= s > 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 > > > > > -- > regards, > > Tim > > -- > Tim Cross > > > --=20 regards, Tim -- Tim Cross --000000000000d55bb705962ead51 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
OK, this is one of those instances where the specific= build and local configuration make a difference. I have this in my init.el=

=C2=A0 (setq mac-command-modifier 'meta)
= =C2=A0 (setq mac-option-modifier 'none)

which = makes things work like my Linux system (I use 'super' for OS level = actions, like switching desktops, rather than for Emcs. This also means I d= on't have 's' (super) mappings in emacs. If you wanted to just = get rid of s-t, you could unbind the key and problem solved. e.g.

(global-unset-key "s-t")


On T= hu, 31 Oct 2019 at 16:35, Mark H. David <m= hd@yv.org> wrote:
C-h k

=3D= >

s-t runs the command ns-popup-font-panel (found in global-ma= p), 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 th= e font panel.


----- Original message -----
From: Tim Cross <theophilusx@gmail.com>
To: "Mark H. D= avid" <mhd@yv.org>
Cc: chad <yandros@gmail.com>, Alan Third <alan@idiocy.org>, EMACS developmen= t team <emacs-d= evel@gnu.org>
Subject: Re: Annoying Fonts Window in Em= acs on MacOS - How to Hide
Date: Wednesday, October 30, 2019 = 5:47 PM

that is a good point regarding the versi= on/build of Emacs. I use to build using the homebrew recipe, then I used th= e pre-built homebrew keg (essentially emacsformac version), but now I use r= ailwaycat's recipe as I've found it to be the best (best meaning em= acs behaves most like it does on Linux and what I'm use to).
<= div>

What happens if you do C-h k and then ent= er 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 an= d must be turned off at the OS level.

On Thu, 31 Oct 2019 at 09:16, M= ark H. David <mhd@yv.org= > wrote:

I wasn= 9;t quite sure myself, so here's what I did: I downloaded and installed= from emacsformacos= x.com and tried this.
Bottom = line: same problem reproducible in latest versions.
I took notes, so here are all the gory details:

- Click MacOS download button
- Click Emacs f= or OSX link
=C2=A0 - Now here: https://emacsformac= osx.com/
- Click Other Versio= ns button
- Click &q= uot;Emacs-26.3-universal.dmg" link to download it
- It downloaded the file at following URL
<= div style=3D"font-family:Arial">=C2=A0 https://emacsfor= macosx.com/emacs-builds/Emacs-26.3-universal.dmg
- I then installed, and then brought it up.
- Now here's version info: "GNU Ema= cs 26.3 (build 1, x86_64-apple-darwin18.2.0, NS appkit-1671.20 Version 10.1= 4.3 (Build 18D109))=C2=A0of 2019-09-02&q= uot;
- Result: same behavi= or as described before (Command+T shows but does not hide annoying fonts wi= ndow.)

----- Origi= nal message -----
From: chad <yandros@gmail.com>
To: &quo= t;Mark H. David" <m= hd@yv.org>
Cc: Alan Third <alan@idiocy.org>, EMACS development tea= m <emacs-devel@= gnu.org>
Subject: Re: Annoying Fonts Window in Emacs o= n MacOS - How to Hide
Date: Wednesday, October 30, 2019 1:09 = PM

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= 9;s github or homebrew build? I ask because this sort of native-system sett= ing is sometimes added/enabled by default in one of the native-ized ports b= ut 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 t= o 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.
<= /div>

Thanks,
~Chad

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

----- Original message -----
From: Alan Third <alan@idiocy.org>
To: "Mark H. David" <mhd@yv.org>
Subject: Re: Ann= oying 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 (pa= rticularly Chrome) it's used for creating a new tab, and I
> do that so often, I must do it by mistak= e. I almost never change
> fon= ts, and never with command+t. Ever. So, I looked into this a bit,
=
> and it's a documented "featu= re" for Emacs on MacOS (see:
> https://support.apple.com/en-us/HT201236). Apple's MacOS do= c says:
> Command-T: Show or h= ide the Fonts window.
>
> In various apps with document win= dows (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 n= ever use. I always just want to get
> rid of it.
>
> Here's the annoying and buggy pa= rt with respect to Emacs: you cannot
> hide it from the keyboard. It's supposed hidden by doing a sec= ond
> 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 re= sults, 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.
<= div style=3D"font-family:Arial">
= I=E2=80=99d suggest unbinding super-t, something like:

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

--
Alan Third

=


--
regards,
<= div>
Tim

--
Tim Cross

=



--
regards,

Tim

--
Tim Cross

--000000000000d55bb705962ead51--