From: Katsumi Yamaoka <yamaoka@jpl.org>
To: emacs-devel@gnu.org
Subject: Re: Make raise-frame work on Cygwin
Date: Thu, 17 May 2012 20:42:30 +0900 [thread overview]
Message-ID: <b4mobpnf2zd.fsf@jpl.org> (raw)
In-Reply-To: b4md363gumr.fsf@jpl.org
Katsumi Yamaoka wrote:
>> (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)))
Sorry for the noises. Here is the third time lucky:
(defadvice raise-frame (before make-it-work (&optional frame) activate)
"Make it work on Cygwin."
(when (and frame (cdr (frame-list)))
(make-frame-invisible frame)))
This works with `select-frame-set-input-focus'.
next prev parent reply other threads:[~2012-05-17 11:42 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-16 23:44 Make raise-frame work on Cygwin Katsumi Yamaoka
2012-05-17 6:59 ` Katsumi Yamaoka
2012-05-17 11:42 ` Katsumi Yamaoka [this message]
2012-05-17 12:37 ` martin rudalics
2012-05-17 9:09 ` martin rudalics
2012-05-17 11:30 ` Achim Gratz
2012-05-17 12:37 ` martin rudalics
2012-05-17 11:42 ` Katsumi Yamaoka
2012-05-17 12:37 ` martin rudalics
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b4mobpnf2zd.fsf@jpl.org \
--to=yamaoka@jpl.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).