emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Make raise-frame work on Cygwin


From: martin rudalics
Subject: Re: Make raise-frame work on Cygwin
Date: Thu, 17 May 2012 11:09:11 +0200

> raise-frame doesn't pop up an existing frame on Cygwin (rootless).
> If there are many frames on a Windows screen, we have no means to
> pop up a certain Emacs frame that is hidden by the other frames,
> except for manually digging it up by mouse.

Probably a silly question: What does Cygwin do to pop it up when you are
"manually digging it up by mouse"?  Or is Cygwin bypassed by Windows in
that case?

> But at last I found
> a workaround:
>
> (defadvice raise-frame (before make-it-work (&optional frame) activate)
>   "Make it work on Cygwin."
>   (when frame (make-frame-invisible frame)))

> iconify-frame instead of make-frame-invisible there has no effect.

Dead-ugly.  Nevertheless, we should provide support for that, e.g., by
introducing a `raise-frame-function' variable.

> It also revealed that some ELisp applications call raise-frame two
> or more times at a time since a raised frame blinks. ;-)

Ideally, these `raise-frame' calls are idempotent.  Unfortunately,
sampling frame visibility is not that trivial.

martin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]