unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Annoying Fonts Window in Emacs on MacOS - How to Hide
@ 2019-10-29 19:31 Mark H. David
  2019-10-29 21:45 ` Tim Cross
  2019-10-29 22:18 ` Alan Third
  0 siblings, 2 replies; 10+ messages in thread
From: Mark H. David @ 2019-10-29 19:31 UTC (permalink / raw)
  To: emacs-devel

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.

So, this is super annoying and a bug.  

Here's my Emacs version.

"GNU Emacs 25.3.1 (x86_64-apple-darwin13.4.0, NS appkit-1265.21 Version 10.9.5 (Build 13F1911)) of 2017-09-12"

I'd appreciate knowing if this is a known bug, if it's fixed upstream, and if anyone can share any workaround.

Thanks,

-Mark



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Annoying Fonts Window in Emacs on MacOS - How to Hide
  2019-10-29 19:31 Annoying Fonts Window in Emacs on MacOS - How to Hide Mark H. David
@ 2019-10-29 21:45 ` Tim Cross
  2019-10-29 22:18 ` Alan Third
  1 sibling, 0 replies; 10+ messages in thread
From: Tim Cross @ 2019-10-29 21:45 UTC (permalink / raw)
  To: Mark H. David; +Cc: Emacs developers

[-- Attachment #1: Type: text/plain, Size: 2038 bytes --]

I don't see this behavior with Emacs 26.3 on macOS 10.15  I also don't
recall seeing anything like this with previous versions of Emacs or macOS.
However, I also disable many of the macOS shortcuts via preferences ->
keyboard -> shortcuts.

I ran Emacs with -Q to ensure it wasn't something in my config, so I
suspect either you have something in your Emacs config or you need to
disable the shortcut at the macOS level.

On Wed, 30 Oct 2019 at 06:32, Mark H. David <mhd@yv.org> 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.
>
> So, this is super annoying and a bug.
>
> Here's my Emacs version.
>
> "GNU Emacs 25.3.1 (x86_64-apple-darwin13.4.0, NS appkit-1265.21 Version
> 10.9.5 (Build 13F1911)) of 2017-09-12"
>
> I'd appreciate knowing if this is a known bug, if it's fixed upstream, and
> if anyone can share any workaround.
>
> Thanks,
>
> -Mark
>
>

-- 
regards,

Tim

--
Tim Cross

[-- Attachment #2: Type: text/html, Size: 2823 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Annoying Fonts Window in Emacs on MacOS - How to Hide
  2019-10-29 19:31 Annoying Fonts Window in Emacs on MacOS - How to Hide Mark H. David
  2019-10-29 21:45 ` Tim Cross
@ 2019-10-29 22:18 ` Alan Third
  2019-10-29 22:31   ` Mark H. David
  1 sibling, 1 reply; 10+ messages in thread
From: Alan Third @ 2019-10-29 22:18 UTC (permalink / raw)
  To: Mark H. David; +Cc: emacs-devel

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’t get rid of it at
all.

I’d suggest unbinding super-t, something like:

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

-- 
Alan Third



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Annoying Fonts Window in Emacs on MacOS - How to Hide
  2019-10-29 22:18 ` Alan Third
@ 2019-10-29 22:31   ` Mark H. David
  2019-10-30 20:09     ` chad
  0 siblings, 1 reply; 10+ messages in thread
From: Mark H. David @ 2019-10-29 22:31 UTC (permalink / raw)
  To: Alan Third; +Cc: emacs-devel

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 behavior 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 <alan@idiocy.org>
To: "Mark H. David" <mhd@yv.org>
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’t get rid of it at
all.

I’d suggest unbinding super-t, something like:

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

-- 
Alan Third



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Annoying Fonts Window in Emacs on MacOS - How to Hide
  2019-10-29 22:31   ` Mark H. David
@ 2019-10-30 20:09     ` chad
  2019-10-30 22:13       ` Mark H. David
  0 siblings, 1 reply; 10+ messages in thread
From: chad @ 2019-10-30 20:09 UTC (permalink / raw)
  To: Mark H. David; +Cc: Alan Third, EMACS development team

[-- Attachment #1: Type: text/plain, Size: 2903 bytes --]

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 <mhd@yv.org> 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 behavior
> 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 <alan@idiocy.org>
> To: "Mark H. David" <mhd@yv.org>
> 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’t get rid of it at
> all.
>
> I’d suggest unbinding super-t, something like:
>
>     (global-unset-key (kbd "s-t"))
>
> --
> Alan Third
>
>

[-- Attachment #2: Type: text/html, Size: 3827 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Annoying Fonts Window in Emacs on MacOS - How to Hide
  2019-10-30 20:09     ` chad
@ 2019-10-30 22:13       ` Mark H. David
  2019-10-31  0:47         ` Tim Cross
  0 siblings, 1 reply; 10+ messages in thread
From: Mark H. David @ 2019-10-30 22:13 UTC (permalink / raw)
  To: chad; +Cc: Alan Third, EMACS development team

[-- Attachment #1: Type: text/plain, Size: 4200 bytes --]

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 <yandros@gmail.com>
To: "Mark H. David" <mhd@yv.org>
Cc: Alan Third <alan@idiocy.org>, 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 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 <mhd@yv.org> 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 behavior 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 <alan@idiocy.org>
>  To: "Mark H. David" <mhd@yv.org>
>  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’t get rid of it at
>  all.
> 
>  I’d suggest unbinding super-t, something like:
> 
>  (global-unset-key (kbd "s-t"))
> 
>  -- 
>  Alan Third
> 

[-- Attachment #2: Type: text/html, Size: 8278 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Annoying Fonts Window in Emacs on MacOS - How to Hide
  2019-10-30 22:13       ` Mark H. David
@ 2019-10-31  0:47         ` Tim Cross
  2019-10-31  5:35           ` Mark H. David
  0 siblings, 1 reply; 10+ messages in thread
From: Tim Cross @ 2019-10-31  0:47 UTC (permalink / raw)
  To: Mark H. David; +Cc: chad, Alan Third, EMACS development team

[-- Attachment #1: Type: text/plain, Size: 4985 bytes --]

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 does
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 <mhd@yv.org> 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 <yandros@gmail.com>
> To: "Mark H. David" <mhd@yv.org>
> Cc: Alan Third <alan@idiocy.org>, 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 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 <mhd@yv.org> 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 behavior
> 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 <alan@idiocy.org>
> To: "Mark H. David" <mhd@yv.org>
> 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’t get rid of it at
> all.
>
> I’d suggest unbinding super-t, something like:
>
>     (global-unset-key (kbd "s-t"))
>
> --
> Alan Third
>
>
>

-- 
regards,

Tim

--
Tim Cross

[-- Attachment #2: Type: text/html, Size: 9731 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Annoying Fonts Window in Emacs on MacOS - How to Hide
  2019-10-31  0:47         ` Tim Cross
@ 2019-10-31  5:35           ` Mark H. David
  2019-10-31  6:08             ` Tim Cross
  0 siblings, 1 reply; 10+ messages in thread
From: Mark H. David @ 2019-10-31  5:35 UTC (permalink / raw)
  To: Tim Cross; +Cc: chad, Alan Third, EMACS development team

[-- Attachment #1: Type: text/plain, Size: 5553 bytes --]

C-h k

=>

s-t runs the command ns-popup-font-panel (found in global-map), which
is an interactive built-in function in ‘C source code’.

It is bound to s-t.

(ns-popup-font-panel &optional FRAME)

Pop up the font panel.


----- Original message -----
From: Tim Cross <theophilusx@gmail.com>
To: "Mark H. David" <mhd@yv.org>
Cc: chad <yandros@gmail.com>, Alan Third <alan@idiocy.org>, EMACS development team <emacs-devel@gnu.org>
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 does 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 <mhd@yv.org> 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 <yandros@gmail.com>
> To: "Mark H. David" <mhd@yv.org>
> Cc: Alan Third <alan@idiocy.org>, 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 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 <mhd@yv.org> 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 behavior 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 <alan@idiocy.org>
>> To: "Mark H. David" <mhd@yv.org>
>> 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’t get rid of it at
>> all.
>> 
>> I’d suggest unbinding super-t, something like:
>> 
>>  (global-unset-key (kbd "s-t"))
>> 
>> -- 
>> Alan Third
>> 
> 


-- 
regards,

Tim

--
Tim Cross


[-- Attachment #2: Type: text/html, Size: 11279 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Annoying Fonts Window in Emacs on MacOS - How to Hide
  2019-10-31  5:35           ` Mark H. David
@ 2019-10-31  6:08             ` Tim Cross
  2019-10-31 16:07               ` Mark H. David
  0 siblings, 1 reply; 10+ messages in thread
From: Tim Cross @ 2019-10-31  6:08 UTC (permalink / raw)
  To: Mark H. David; +Cc: chad, Alan Third, EMACS development team

[-- Attachment #1: Type: text/plain, Size: 6267 bytes --]

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 <mhd@yv.org> wrote:

> C-h k
>
> =>
>
> s-t runs the command ns-popup-font-panel (found in global-map), which
> is an interactive built-in function in ‘C source code’.
>
> It is bound to s-t.
>
> (ns-popup-font-panel &optional FRAME)
>
> Pop up the font panel.
>
>
> ----- Original message -----
> From: Tim Cross <theophilusx@gmail.com>
> To: "Mark H. David" <mhd@yv.org>
> Cc: chad <yandros@gmail.com>, Alan Third <alan@idiocy.org>, EMACS
> development team <emacs-devel@gnu.org>
> 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 does
> 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 <mhd@yv.org> 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 <yandros@gmail.com>
> To: "Mark H. David" <mhd@yv.org>
> Cc: Alan Third <alan@idiocy.org>, 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 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 <mhd@yv.org> 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 behavior
> 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 <alan@idiocy.org>
> To: "Mark H. David" <mhd@yv.org>
> 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’t get rid of it at
> all.
>
> I’d suggest unbinding super-t, something like:
>
>     (global-unset-key (kbd "s-t"))
>
> --
> Alan Third
>
>
>
>
> --
> regards,
>
> Tim
>
> --
> Tim Cross
>
>
>

-- 
regards,

Tim

--
Tim Cross

[-- Attachment #2: Type: text/html, Size: 12697 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Annoying Fonts Window in Emacs on MacOS - How to Hide
  2019-10-31  6:08             ` Tim Cross
@ 2019-10-31 16:07               ` Mark H. David
  0 siblings, 0 replies; 10+ messages in thread
From: Mark H. David @ 2019-10-31 16:07 UTC (permalink / raw)
  To: Tim Cross; +Cc: chad, Alan Third, EMACS development team

[-- Attachment #1: Type: text/plain, Size: 6644 bytes --]

Yes the workaround is fine. Thank you  But I think the command in emacs should ultimately be changed to dismiss the fonts dialog if up already and documented accordingly.

> On Oct 30, 2019, at 11:08 PM, Tim Cross <theophilusx@gmail.com> wrote:
> 
> 
> 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 <mhd@yv.org> wrote:
>> C-h k
>> 
>> =>
>> 
>> s-t runs the command ns-popup-font-panel (found in global-map), which
>> is an interactive built-in function in ‘C source code’.
>> 
>> It is bound to s-t.
>> 
>> (ns-popup-font-panel &optional FRAME)
>> 
>> Pop up the font panel.
>> 
>> 
>> ----- Original message -----
>> From: Tim Cross <theophilusx@gmail.com>
>> To: "Mark H. David" <mhd@yv.org>
>> Cc: chad <yandros@gmail.com>, Alan Third <alan@idiocy.org>, EMACS development team <emacs-devel@gnu.org>
>> 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 does 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 <mhd@yv.org> 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 <yandros@gmail.com>
>> To: "Mark H. David" <mhd@yv.org>
>> Cc: Alan Third <alan@idiocy.org>, 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 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 <mhd@yv.org> 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 behavior 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 <alan@idiocy.org>
>> To: "Mark H. David" <mhd@yv.org>
>> 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’t get rid of it at
>> all.
>> 
>> I’d suggest unbinding super-t, something like:
>> 
>>     (global-unset-key (kbd "s-t"))
>> 
>> -- 
>> Alan Third
>> 
>> 
>> 
>> 
>> -- 
>> regards,
>> 
>> Tim
>> 
>> --
>> Tim Cross
>> 
>> 
> 
> 
> -- 
> regards,
> 
> Tim
> 
> --
> Tim Cross
> 

[-- Attachment #2: Type: text/html, Size: 13071 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2019-10-31 16:07 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-29 19:31 Annoying Fonts Window in Emacs on MacOS - How to Hide Mark H. David
2019-10-29 21:45 ` Tim Cross
2019-10-29 22:18 ` Alan Third
2019-10-29 22:31   ` Mark H. David
2019-10-30 20:09     ` chad
2019-10-30 22:13       ` Mark H. David
2019-10-31  0:47         ` Tim Cross
2019-10-31  5:35           ` Mark H. David
2019-10-31  6:08             ` Tim Cross
2019-10-31 16:07               ` Mark H. David

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).