unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Allow Command+H to pass through to OS X (Emacs 23 Nightly)
@ 2009-02-10 22:45 Brett Hoerner
  2009-02-10 23:47 ` Peter Dyballa
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Brett Hoerner @ 2009-02-10 22:45 UTC (permalink / raw)
  To: help-gnu-emacs

I'm using Emacs nightly Cocoa builds, when I check what is bound to
Command+H I get "A-h is undefined".  I'd like for Emacs to "pass this
through" to OS X like other commands, so that it hides the
application.

Any ideas?

Thanks.


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

* Re: Allow Command+H to pass through to OS X (Emacs 23 Nightly)
  2009-02-10 22:45 Allow Command+H to pass through to OS X (Emacs 23 Nightly) Brett Hoerner
@ 2009-02-10 23:47 ` Peter Dyballa
       [not found] ` <mailman.376.1234309669.31690.help-gnu-emacs@gnu.org>
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 11+ messages in thread
From: Peter Dyballa @ 2009-02-10 23:47 UTC (permalink / raw)
  To: Brett Hoerner; +Cc: help-gnu-emacs


Am 10.02.2009 um 23:45 schrieb Brett Hoerner:

> I'd like for Emacs to "pass this through" to OS X like other  
> commands, so that it hides the
> application.


Did you find the preferences pane?

--
Greetings

   Pete

Basic, n.:
	A programming language. Related to certain social diseases in
	that those who have it will not admit it in polite company.







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

* Re: Allow Command+H to pass through to OS X (Emacs 23 Nightly)
       [not found] ` <mailman.376.1234309669.31690.help-gnu-emacs@gnu.org>
@ 2009-02-10 23:59   ` Brett Hoerner
  2009-02-11 18:40     ` Ian Eure
       [not found]     ` <mailman.461.1234377623.31690.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 11+ messages in thread
From: Brett Hoerner @ 2009-02-10 23:59 UTC (permalink / raw)
  To: help-gnu-emacs

On Feb 10, 5:47 pm, Peter Dyballa <Peter_Dyba...@Web.DE> wrote:
> Did you find the preferences pane?

I've checked it, but I see nothing regarding this ... and I don't have
Command set to anything (I'm using Alt for Meta).

Prefs: http://i39.tinypic.com/n3r7yq.png

Brett


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

* Re: Allow Command+H to pass through to OS X (Emacs 23 Nightly)
  2009-02-10 22:45 Allow Command+H to pass through to OS X (Emacs 23 Nightly) Brett Hoerner
  2009-02-10 23:47 ` Peter Dyballa
       [not found] ` <mailman.376.1234309669.31690.help-gnu-emacs@gnu.org>
@ 2009-02-11  0:17 ` Pascal J. Bourguignon
  2009-02-11  1:10   ` Brett Hoerner
  2009-02-11 17:51 ` Xah Lee
  3 siblings, 1 reply; 11+ messages in thread
From: Pascal J. Bourguignon @ 2009-02-11  0:17 UTC (permalink / raw)
  To: help-gnu-emacs

Brett Hoerner <bretthoerner@gmail.com> writes:

> I'm using Emacs nightly Cocoa builds, when I check what is bound to
> Command+H I get "A-h is undefined".  I'd like for Emacs to "pass this
> through" to OS X like other commands, so that it hides the
> application.
>
> Any ideas?

Perhaps
  (global-set-key (kbd "A-h") 'iconify-or-deiconify-frame)
would do?

Yes, 
  (global-set-key (kbd "A-h") 'iconify-or-deiconify-frame)
will do!


  (global-set-key (kbd "A-h") 'iconify-or-deiconify-frame)
WILL DO!

-- 
__Pascal Bourguignon__


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

* Re: Allow Command+H to pass through to OS X (Emacs 23 Nightly)
  2009-02-11  0:17 ` Pascal J. Bourguignon
@ 2009-02-11  1:10   ` Brett Hoerner
  2009-02-11  2:44     ` Chetan
  0 siblings, 1 reply; 11+ messages in thread
From: Brett Hoerner @ 2009-02-11  1:10 UTC (permalink / raw)
  To: help-gnu-emacs

On Feb 10, 6:17 pm, p...@informatimago.com (Pascal J. Bourguignon)
wrote:
> Perhaps
>   (global-set-key (kbd "A-h") 'iconify-or-deiconify-frame)
> would do?

Thanks for the help, but that does the equivalent of "Command +
M" (minimize), not "Command + H" (hide), which do have differences. :/

Brett


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

* Re: Allow Command+H to pass through to OS X (Emacs 23 Nightly)
  2009-02-11  1:10   ` Brett Hoerner
@ 2009-02-11  2:44     ` Chetan
  2009-02-11 13:32       ` Brett Hoerner
  0 siblings, 1 reply; 11+ messages in thread
From: Chetan @ 2009-02-11  2:44 UTC (permalink / raw)
  To: help-gnu-emacs

Brett Hoerner <bretthoerner@gmail.com> writes:

> On Feb 10, 6:17 pm, p...@informatimago.com (Pascal J. Bourguignon)
> wrote:
>> Perhaps
>>   (global-set-key (kbd "A-h") 'iconify-or-deiconify-frame)
>> would do?
>
> Thanks for the help, but that does the equivalent of "Command +
> M" (minimize), not "Command + H" (hide), which do have differences. :/
>
> Brett

I don't use mac, but do make-frame-invisible and make-frame-visible
work?

Chetan


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

* Re: Allow Command+H to pass through to OS X (Emacs 23 Nightly)
  2009-02-11  2:44     ` Chetan
@ 2009-02-11 13:32       ` Brett Hoerner
  2009-02-11 16:43         ` Peter Dyballa
  0 siblings, 1 reply; 11+ messages in thread
From: Brett Hoerner @ 2009-02-11 13:32 UTC (permalink / raw)
  To: help-gnu-emacs

On Feb 10, 8:44 pm, Chetan <chetan.xs...@xspam.sbcglobal.net> wrote:
> I don't use mac, but do make-frame-invisible and make-frame-visible
> work?

Nope. :/

For some reason, I don't expect this to be an Emacs function, so much
as a way to "hand off" the keypress to OS X.  Command+H is a key bound
in every application to 'Hide', but the actual 'Hiding' is done by the
window manager / Finder / whatever OS X calls it.  Here you can see in
the Emacs menu it even has Hide (which I can use via the mouse, but
not they keyboard ... Emacs still seems to "grab" it when I press it
and like I said - it says it isn't bound to anything).

http://i43.tinypic.com/2djxbmq.png

Brett


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

* Re: Allow Command+H to pass through to OS X (Emacs 23 Nightly)
  2009-02-11 13:32       ` Brett Hoerner
@ 2009-02-11 16:43         ` Peter Dyballa
  0 siblings, 0 replies; 11+ messages in thread
From: Peter Dyballa @ 2009-02-11 16:43 UTC (permalink / raw)
  To: Brett Hoerner; +Cc: help-gnu-emacs


Am 11.02.2009 um 14:32 schrieb Brett Hoerner:

> Emacs still seems to "grab" it when I press it


I have set Command to Command and Alt/Opt to none – because I need  
characters like ï or ¡ Then there is still a yellow button to  
minimise the frame ...

Maybe it helps to ask the question on this specialised list:

	---------------------------- Info -----------------------------
	List Post: <mailto:macosx-emacs@email.esm.psu.edu>
	List Archives: <http://dir.gmane.org/gmane.emacs.macintosh.osx>

--
Greetings

   Pete

When people run around and around in circles we say they are crazy.  
When planets do it we say they are orbiting.






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

* Re: Allow Command+H to pass through to OS X (Emacs 23 Nightly)
  2009-02-10 22:45 Allow Command+H to pass through to OS X (Emacs 23 Nightly) Brett Hoerner
                   ` (2 preceding siblings ...)
  2009-02-11  0:17 ` Pascal J. Bourguignon
@ 2009-02-11 17:51 ` Xah Lee
  3 siblings, 0 replies; 11+ messages in thread
From: Xah Lee @ 2009-02-11 17:51 UTC (permalink / raw)
  To: help-gnu-emacs

On Feb 10, 2:45 pm, Brett Hoerner <bretthoer...@gmail.com> wrote:
> I'm using Emacs nightly Cocoa builds, when I check what is bound to
> Command+H I get "A-h is undefined".  I'd like for Emacs to "pass this
> through" to OS X like other commands, so that it hides the
> application.
>
> Any ideas?
>
> Thanks.

I use the following for Carbon emacs:

; disable the Mac shortcut convention of cmd-h to hide current
application.
(setq mac-pass-command-to-system nil)

  Xah
∑ http://xahlee.org/^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Allow Command+H to pass through to OS X (Emacs 23 Nightly)
  2009-02-10 23:59   ` Brett Hoerner
@ 2009-02-11 18:40     ` Ian Eure
       [not found]     ` <mailman.461.1234377623.31690.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 11+ messages in thread
From: Ian Eure @ 2009-02-11 18:40 UTC (permalink / raw)
  To: Brett Hoerner; +Cc: help-gnu-emacs

On Feb 10, 2009, at 3:59 PM, Brett Hoerner wrote:

> On Feb 10, 5:47 pm, Peter Dyballa <Peter_Dyba...@Web.DE> wrote:
>> Did you find the preferences pane?
>
> I've checked it, but I see nothing regarding this ... and I don't have
> Command set to anything (I'm using Alt for Meta).
>
> Prefs: http://i39.tinypic.com/n3r7yq.png
>
If you set "Command Key" to "Command," it works; but you cannot use  
the Command key in Emacs at all.

In the Carbon Emacs port, there was a way to pass the Command key  
through to the OS if there was no Emacs binding for the pressed chord.  
This functionality isn’t available in the Cocoa Emacs port.

  - Ian



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

* Re: Allow Command+H to pass through to OS X (Emacs 23 Nightly)
       [not found]     ` <mailman.461.1234377623.31690.help-gnu-emacs@gnu.org>
@ 2009-02-11 20:21       ` Brett Hoerner
  0 siblings, 0 replies; 11+ messages in thread
From: Brett Hoerner @ 2009-02-11 20:21 UTC (permalink / raw)
  To: help-gnu-emacs

I found the function I needed to call,

(define-key map [(alt h)] 'ns-do-hide-emacs)

Thanks,
Brett


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

end of thread, other threads:[~2009-02-11 20:21 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-10 22:45 Allow Command+H to pass through to OS X (Emacs 23 Nightly) Brett Hoerner
2009-02-10 23:47 ` Peter Dyballa
     [not found] ` <mailman.376.1234309669.31690.help-gnu-emacs@gnu.org>
2009-02-10 23:59   ` Brett Hoerner
2009-02-11 18:40     ` Ian Eure
     [not found]     ` <mailman.461.1234377623.31690.help-gnu-emacs@gnu.org>
2009-02-11 20:21       ` Brett Hoerner
2009-02-11  0:17 ` Pascal J. Bourguignon
2009-02-11  1:10   ` Brett Hoerner
2009-02-11  2:44     ` Chetan
2009-02-11 13:32       ` Brett Hoerner
2009-02-11 16:43         ` Peter Dyballa
2009-02-11 17:51 ` Xah Lee

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).