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: Katsumi Yamaoka
Subject: Re: Make raise-frame work on Cygwin
Date: Thu, 17 May 2012 15:59:56 +0900
User-agent: Gnus/5.130006 (真 Gnus v0.6) Emacs/24.1.50 (i686-pc-cygwin)

Katsumi Yamaoka wrote:
> 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.  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)))

Some program tries to raise the selected frame even if it is
the sole one, so this should be turned into:

(defadvice raise-frame (before make-it-work (&optional frame) activate)
  "Make it work on Cygwin."
  (when (and frame (not (eq frame (selected-frame))))
    (make-frame-invisible frame)))

> iconify-frame instead of make-frame-invisible there has no effect.
> It also revealed that some ELisp applications call raise-frame two
> or more times at a time since a raised frame blinks. ;-)

> BTW, I still use wmctrl on Fedora:
> http://lists.gnu.org/archive/html/emacs-devel/2006-10/msg01117.html



reply via email to

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