From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= Newsgroups: gmane.emacs.help Subject: How to raise a frame under X (was: how to raise compilation frame) Date: Wed, 20 Jul 2011 10:57:23 +0200 Message-ID: <871uxle3d8.fsf@gmail.com> References: <32091270.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1311224521 8037 80.91.229.12 (21 Jul 2011 05:02:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 21 Jul 2011 05:02:01 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: igah Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 21 07:01:57 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QjlOX-00072h-Er for geh-help-gnu-emacs@m.gmane.org; Thu, 21 Jul 2011 07:01:57 +0200 Original-Received: from localhost ([::1]:57088 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjlOW-0004cI-MY for geh-help-gnu-emacs@m.gmane.org; Thu, 21 Jul 2011 01:01:56 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:47757) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjSfH-0004Pm-70 for help-gnu-emacs@gnu.org; Wed, 20 Jul 2011 05:02:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QjSfC-0007e4-VD for help-gnu-emacs@gnu.org; Wed, 20 Jul 2011 05:01:58 -0400 Original-Received: from mail-fx0-f52.google.com ([209.85.161.52]:62946) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjSfC-0007dU-Ar for help-gnu-emacs@gnu.org; Wed, 20 Jul 2011 05:01:54 -0400 Original-Received: by fxd18 with SMTP id 18so1189498fxd.39 for ; Wed, 20 Jul 2011 02:01:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type:content-transfer-encoding; bh=8SsOOBkMETjAU4kNxDX0T30ZLFNdDFxBFpomuyKLnbE=; b=qDRFxt3vpcUqg5CeRx2sXXH7IZYQ1ORV+0jpPeHNuN8RFilXjM8wBaZMJiUMWQh60I gEMCfGaWkeC1VMxalDef4xmRSpeDB9v4/aFiZi9igeqYNKoF99Y1NvTkdcC0u4qRPQHD du0QZHq9knoMXdoXwn+a/pc0YSfYRvZxLxfvQ= Original-Received: by 10.223.1.68 with SMTP id 4mr1565351fae.74.1311152512236; Wed, 20 Jul 2011 02:01:52 -0700 (PDT) Original-Received: from localhost (176.119.broadband10.iol.cz [90.177.119.176]) by mx.google.com with ESMTPS id 22sm551831fas.35.2011.07.20.02.01.50 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 20 Jul 2011 02:01:51 -0700 (PDT) In-Reply-To: <32091270.post@talk.nabble.com> (igah's message of "Tue, 19 Jul 2011 06:39:28 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.161.52 X-Mailman-Approved-At: Thu, 21 Jul 2011 01:01:51 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:81708 igah writes: > when i run the "compile" command, a new frame pops up. when i run compile > again (from the main frame), the compilation frame doesn't get raised > automatically. i am using emacs 23.2.1 (x86_64-redhat-linux-gnu, GTK+ > Version 2.24.4) under fluxbox. any help is greatly appreciated.=20 Under X and with some window managers, Emacs' `raise-frame' seems to fail. If your WM supports EWMH[1], you might be able to fix it with something like the following: (defadvice raise-frame (around wmctrl activate) (if (eq (window-system (ad-get-arg 0)) 'x) (x-send-client-message nil 0 (ad-get-arg 0) "_NET_ACTIVE_WINDOW" 32 '(1)) ad-do-it)) You might also want to `report-emacs-bug', as Emacs obviously doesn't do as much as it should on its own. =C5=A0t=C4=9Bp=C3=A1n [1] http://standards.freedesktop.org/wm-spec/wm-spec-latest.html