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: Thu, 31 Oct 2019 09:07:11 -0700 Message-ID: References: Mime-Version: 1.0 (1.0) Content-Type: multipart/alternative; boundary=Apple-Mail-59EF033F-C5CB-4F40-94F0-AE4A4874F96E Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="178908"; mail-complaints-to="usenet@blaine.gmane.org" 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 17:27: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 1iQDIR-000kMI-9w for ged-emacs-devel@m.gmane.org; Thu, 31 Oct 2019 17:27:39 +0100 Original-Received: from localhost ([::1]:52306 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQDIP-0004g7-94 for ged-emacs-devel@m.gmane.org; Thu, 31 Oct 2019 12:27:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35366) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQCyk-00010P-Q7 for emacs-devel@gnu.org; Thu, 31 Oct 2019 12:07:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iQCyi-0001Ls-AZ for emacs-devel@gnu.org; Thu, 31 Oct 2019 12:07:18 -0400 Original-Received: from out5-smtp.messagingengine.com ([66.111.4.29]:39469) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iQCyh-0001Ks-VN for emacs-devel@gnu.org; Thu, 31 Oct 2019 12:07:16 -0400 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id EB92F21B03; Thu, 31 Oct 2019 12:07:14 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Thu, 31 Oct 2019 12:07:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding: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=NJ+A/8B7XOALLX/XcuHWuEfJuuKtHoCcoQbanGqTq wo=; b=tR/OwSLMc37NPIpf6LFmC+dy84CyxO6AkeaACvjMaq+SRqh9D6mrxrT/H zSvSsWgk6ePOFVjqIwlptDYa2tnA6kOIG5mZzutZwL7KSrsw512iWJpysjE28QHd YE+1hxu3RQgdd0dWo+lDKHMqANAYjX43x5+NLY6TUeiEhICN6kz7KFrFSF4jx31a NdgkWLdQR9wGYMaLKmxroRb5v0jKiEjiF7XADpuqM3eKTKUnjt3/IQ0OIXySR3UA ZRSt2YZ+nC0O3LcC/PLll3lGgE3FZL831pDwCjIOlqV5AQwwX6nvOYPZS50E9I4m +Wy+cIuzLFgzPoBPms9hn3CzVbBsw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedruddthedgkeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurheptgfgggfuhfgjfffkfhfvofesrgejmherhhdtjeenucfhrhhomhepfdforghr khcujfdrucffrghvihgufdcuoehmhhguseihvhdrohhrgheqnecukfhppedujedvrddvhe dtrdduvddurdegfeenucfrrghrrghmpehmrghilhhfrhhomhepmhhhugeshihvrdhorhhg necuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Original-Received: from [192.168.1.174] (cpe-172-250-121-43.socal.res.rr.com [172.250.121.43]) by mail.messagingengine.com (Postfix) with ESMTPA id 9D2E93060060; Thu, 31 Oct 2019 12:07:12 -0400 (EDT) In-Reply-To: X-Mailer: iPhone Mail (17A860) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 66.111.4.29 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:241671 Archived-At: --Apple-Mail-59EF033F-C5CB-4F40-94F0-AE4A4874F96E Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Yes the workaround is fine. Thank you But I think the command in emacs shou= ld ultimately be changed to dismiss the fonts dialog if up already and docum= ented accordingly. > On Oct 30, 2019, at 11:08 PM, Tim Cross wrote: >=20 > =EF=BB=BF > OK, this is one of those instances where the specific build and local conf= iguration make a difference. I have this in my init.el >=20 > (setq mac-command-modifier 'meta) > (setq mac-option-modifier 'none) >=20 > which makes things work like my Linux system (I use 'super' for OS level a= ctions, 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. >=20 > (global-unset-key "s-t") >=20 >=20 >> On Thu, 31 Oct 2019 at 16:35, Mark H. David wrote: >> C-h k >>=20 >> =3D> >>=20 >> 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. >>=20 >> It is bound to s-t. >>=20 >> (ns-popup-font-panel &optional FRAME) >>=20 >> Pop up the font panel. >>=20 >>=20 >> ----- Original message ----- >> From: Tim Cross >> To: "Mark H. David" >> Cc: chad , Alan Third , EMACS develop= ment team >> Subject: Re: Annoying Fonts Window in Emacs on MacOS - How to Hide >> Date: Wednesday, October 30, 2019 5:47 PM >>=20 >> 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 (essentia= lly 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 w= hat I'm use to). >>=20 >>=20 >> What happens if you do C-h k and then enter command+t?=20 >>=20 >> 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 th= e macOS and not emacs and must be turned off at the OS level.=20 >>=20 >> On Thu, 31 Oct 2019 at 09:16, Mark H. David wrote: >>=20 >> I wasn't quite sure myself, so here's what I did: I downloaded and instal= led 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-darwin1= 8.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.) >>=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 macOS?= In particular, are you building it yourself, are you using homebrew, are yo= u running the Mac port, are you using emacsformacosx.com, or railwaycat's gi= thub or homebrew build? I ask because this sort of native-system setting is s= ometimes 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 f= or myself; sorry.) Knowing this might help figure out how to deal with the (= mis)feature -- particularly, not being able to dismiss the font selector wit= h Command-T, or not being able to dismiss 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 o= f 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. It should be changed to cl= ose 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 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. >>=20 >> Usually when I get the fonts window open I just can=E2=80=99t get rid of i= t 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 >>=20 >> --=20 >> regards, >>=20 >> Tim >>=20 >> -- >> Tim Cross >>=20 >>=20 >=20 >=20 > --=20 > regards, >=20 > Tim >=20 > -- > Tim Cross >=20 --Apple-Mail-59EF033F-C5CB-4F40-94F0-AE4A4874F96E Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Yes the workaround is fine= . Thank you  But I think the command in emacs should ultimately be chan= ged to dismiss the fonts dialog if up already and documented accordingly.

On Oct 30, 2019, at 11:08 P= M, Tim Cross <theophilusx@gmail.com> wrote:

=
=EF=BB=BF
OK= , this is one of those instances where the specific build and local configur= ation 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 syste= m (I use 'super' for OS level actions, like switching desktops, rather than f= or Emcs. This also means I don't have 's' (super) mappings in emacs. If you w= anted 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 <mh= d@yv.org> wrote:
C-h k

=3D>

s-t runs the command ns-popup-font-panel (found in global-map), which=
is an interactive built-in functi= on 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 C= ross <theophil= usx@gmail.com>
To: "Mark H. David" <mhd@yv.org>
S= ubject: Re: Annoying Fonts Window in Emacs on MacOS - How to Hide
<= div>Date: Wednesday, October 30, 2019 5:47 PM

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


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

On my system, t= hat 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 em= acs and must be turned off at the OS level.

On Thu, 31 Oct 2019 at 09:1= 6, Mark H. David <mhd@yv.= org> wrote:

I wasn't q= uite sure myself, so here's what I did: I downloaded and installed from emacsformacosx.com a= nd tried this.
Bottom line: same p= roblem reproducible in latest versions.
I took notes, so here are all the gory details:

- Click M= acOS download button
- Click Emacs for OSX link
<= div style=3D"font-family:Arial">  - Now here: https://emacsformacosx.com/
- Click Other Versions button
  - Now here: https://emacsformacosx.com/builds
<= /div>
- Click "Emacs-26.3-universal.dmg" lin= k to download it
- It downloaded t= he file at following URL
  https://emacsformacosx.com/emacs-builds/Emacs-26.3-universa= l.dmg
- I then installed, and t= hen brought it up.
- Now here's ve= rsion info: "GNU Emacs 26.3 (build 1, x86_64-apple-darwin18.2.0, NS appkit-1= 671.20 Version 10.14.3 (Build 18D109)) of 2019-09-02"
- Result:= same behavior as described before (Command+T shows but does not hide annoyi= ng 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.or= g>
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 yo= u running the Mac port, are you using emacsformacosx.com, or railwaycat's github or homebrew b= uild? I ask because this sort of native-system setting is sometimes added/en= abled 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; so= rry.) 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, o= r not being able to dismiss it at all.

Thanks,<= br>
~Chad

On Tue, Oct 29, 2019 at 3:32 PM Mark H. David <mhd@yv.org> wrote:
<= /div>
Fantastic -= thank you. That would work as a workaround.
It seems a bug should be made for the behavior Command+T not gett= ing 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= 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>
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 bec= ause in browser
> apps (particu= larly 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 neve= r with command+t. Ever. So, I looked into this a bit,
> and it's a documented "feature" for Emacs on MacOS (= see:
> generally for documents (see:
> https://support.apple.com/en-u= s/HT201236). Apple's MacOS doc says:
> Command-T: Show or hide the Fonts window.
>
> In v= arious apps with document windows (e.g., build-in TextEdit as
> well as Emacs) it is supposed to pop up a wi= ndow thingee that lets
> you ch= oose fonts. Whatever, I never use. I always just want to get
> rid of it.
>
> Here's the ann= oying and buggy part with respect to Emacs: you cannot
> hide it from the keyboard. It's supposed hidden by d= oing 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 po= pup "windoid"
> that results, e= ven 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 i= t at
all.

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

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

--
Ala= n Third




--
regards,

Tim
=
--
Tim Cross




--
regards,

<= div>Tim

--
Tim Cross

<= /div> = --Apple-Mail-59EF033F-C5CB-4F40-94F0-AE4A4874F96E--