From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Newsgroups: gmane.emacs.help Subject: Re: raise frame no go Date: Thu, 04 Jan 2007 05:22:10 +0000 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1167888136 10807 80.91.229.12 (4 Jan 2007 05:22:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 4 Jan 2007 05:22:16 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 04 06:22:14 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1H2L3I-0006gB-1e for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Jan 2007 06:22:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H2L3H-0006ik-23 for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Jan 2007 00:22:07 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H2L33-0006h3-IX for help-gnu-emacs@gnu.org; Thu, 04 Jan 2007 00:21:53 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H2L31-0006fo-JK for help-gnu-emacs@gnu.org; Thu, 04 Jan 2007 00:21:52 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H2L31-0006fj-DZ for help-gnu-emacs@gnu.org; Thu, 04 Jan 2007 00:21:51 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1H2L30-0002xW-QK for help-gnu-emacs@gnu.org; Thu, 04 Jan 2007 00:21:51 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1H2L2s-0004U4-1V for help-gnu-emacs@gnu.org; Thu, 04 Jan 2007 06:21:42 +0100 Original-Received: from sl392.st-edmunds.cam.ac.uk ([131.111.223.202]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 04 Jan 2007 06:21:42 +0100 Original-Received: from sdl.web by sl392.st-edmunds.cam.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 04 Jan 2007 06:21:42 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Lines: 75 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: sl392.st-edmunds.cam.ac.uk Face: iVBORw0KGgoAAAANSUhEUgAAAC0AAAAtCAIAAAC1eHXNAAAACXBIWXMAAAsTAAALEwEAmpwY AAAAB3RJTUUH1gsWAiw4GKZrngAAAaVJREFUWMPtWDGOxCAMTJD/s9F9BCqae8K9556wTarwkVV+ xBUgCxFizBKzKc5KsckiMdjjwfbsvZ9kbDEm+7Jv2/Hf8BEmMSvuemaCOI57E2hADsRuHbVg1eI4 EES22YfisuqUInSMlBAtgieq9BT0B+EDwtR0D/vHIY3j5/tFvA71B+7NBCGSL7/PL0QQfnNsxvuW n+sSqa7Qge/lvQhPPwKlXH/s25YGqKmG6BFfoBcNI41KSc48QXiyA3XGFJq8F+9SYy73luIIzmKM dIBUk+rJGQRyFKEsxlTzJVvzts3H/mWksOIZ7nLvt+WLnMMg8LSqH9LBAsxbvpShh5CkqCjF3jV7 LZ6KyhdCyhAEQkFZSxU2VTxa94Cp6z1xQRXO3HNZXcgEl/ryTG+gNdGrgoYhqLLnxjqW8nRYVZZu pC7sUXvaYDi7b6tQYtStC619J/S5Z04X5i3ZnOOsvB3aR2XjKH5VoCRALKuOwbKOmX0C86BVh0Ka Pxzj1qcV5lsXVYscEAryI15g1iECejbHqj9ar/5q/9dmXsweWvvn9NCas/gPmFCS6kuMMdAAAAAA SUVORK5CYII= User-Agent: Gnus v5.11, Emacs/23.0.0.1 (2007-01-01), Fedora 6 gnu/linux Cancel-Lock: sha1:Z41bZYC5Uqb8dckQOrs0gv4wDjo= X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:40134 Archived-At: * Mathias Dahl (2007-01-04 02:34 +0100) said: ^^^^^^^^^^^^ > Leo writes: > >> I want to use emacsclient to bring Emacs frame to the front. I tried >> several functions including raise-frame, x-focus-frame etc, but none >> of them worked. All they do is causing the Emacs frame to flash in >> the taskbar. Any ideas? >> >> This is tested in Gnome 2.16 in Fedora 6. >> Emacs 23: 20061218. > > I just wanted to mention that I have the same problem. Running CVS > Emacs as of 2007-01-1 under Mandriva GNU/Linux, using GNOME with its > Metacity window manager. What I do is this: > > $ emacsclient -e "(my-function)" > > and my-function is: > > (defun my-function () > (select-frame-set-input-focus (selected-frame))) > > (well, of course it does more than that but...) > > Up until today I haven't played with emacsclient under GNU/Linux. I > have just used gnuclient & friends under w32. I am currently coding a > small command/url/hatever launcher in Emacs, and the current behavior > is quite frustrating (when Emacs is not the topmost window). > > I see this code in xterm.c: > > XTframe_raise_lower (f, raise_flag) > FRAME_PTR f; > int raise_flag; > { > if (raise_flag) > { > /* The following code is needed for `raise-frame' to work on > some versions of metacity; see Window Manager > Specification/Extended Window Manager Hints at > http://freedesktop.org/wiki/Standards_2fwm_2dspec > > However, on other versions (metacity 2.17.2-1.fc7), it > reportedly causes hangs when resizing frames. */ > > /* Lisp_Object frame; > const char *atom = "_NET_ACTIVE_WINDOW"; */ > > x_raise_frame (f); > > /* XSETFRAME (frame, f); > Fx_send_client_event (frame, make_number (0), frame, > make_unibyte_string (atom, strlen (atom)), > make_number (32), > Fcons (make_number (1), > Fcons (make_number (time (NULL) * 1000), > Qnil))); */ > } > else > x_lower_frame (f); > } > > Is is that piece of code that fails? My version of metaciy is 2.16.1. > > /Mathias Thank you for confirming this bug. I have forwarded to pretest-bugs list. Xref: news.gmane.org gmane.emacs.pretest.bugs:16379 Archived-At: -- Leo (GPG Key: 9283AA3F)