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.devel Subject: Re: auto-raise-mode and auto-lower-mode Date: Sun, 27 Nov 2011 12:03:38 +0100 Message-ID: <87hb1pg73p.fsf@gmail.com> References: <87y5v2owyk.fsf@gnu.org> 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 1322392192 17739 80.91.229.12 (27 Nov 2011 11:09:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 27 Nov 2011 11:09:52 +0000 (UTC) Cc: emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 27 12:09:49 2011 Return-path: Envelope-to: ged-emacs-devel@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 1RUccF-0004Ia-Og for ged-emacs-devel@m.gmane.org; Sun, 27 Nov 2011 12:09:47 +0100 Original-Received: from localhost ([::1]:49696 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RUccE-0004Jw-Sy for ged-emacs-devel@m.gmane.org; Sun, 27 Nov 2011 06:09:46 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:32930) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RUccC-0004Jp-6f for emacs-devel@gnu.org; Sun, 27 Nov 2011 06:09:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RUccB-0000KK-6b for emacs-devel@gnu.org; Sun, 27 Nov 2011 06:09:44 -0500 Original-Received: from mail-bw0-f41.google.com ([209.85.214.41]:49004) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RUcc9-0000K5-Oo; Sun, 27 Nov 2011 06:09:41 -0500 Original-Received: by bke17 with SMTP id 17so7619237bke.0 for ; Sun, 27 Nov 2011 03:09:40 -0800 (PST) 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=/0LHZOh6ySrAmfcBTqD33bhi28OtCsz6JmDNRM7IATs=; b=TAxQSHMyUuAFAcSYWu+E9kbsR4z178ELhxK/m8pcpqzpfGzlqNWHbPIY7rCiGiDWoi 3NC5mqfN9ozzbiAjvwWgSkJ/H38o+Ty/G5cMv+fPnCBZ3Jaub5SB2JA4dvYbZRnOikwZ aCcN/nKDMtrRsTZrmGqam/2VXg4K0aIn0CnaM= Original-Received: by 10.204.132.78 with SMTP id a14mr38317376bkt.15.1322392180305; Sun, 27 Nov 2011 03:09:40 -0800 (PST) Original-Received: from localhost (176.119.broadband10.iol.cz. [90.177.119.176]) by mx.google.com with ESMTPS id j4sm35322193fae.3.2011.11.27.03.09.38 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 27 Nov 2011 03:09:39 -0800 (PST) In-Reply-To: <87y5v2owyk.fsf@gnu.org> (Chong Yidong's message of "Sun, 27 Nov 2011 15:17:55 +0800") 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.214.41 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:146282 Archived-At: On Sun, 27 Nov 2011 08:17:55 +0100 Chong Yidong wrote: > AFAICT, these don't work on modern window managers, right? I'm going to > remove them from the Emacs manual. Any opinion about marking them as > obsolete? How is `auto-raise-mode' different from `raise-frame'? IOW, if you want to obsolete the former, you might just as well obsolete the latter. In any case, I thought `raise-frame' was supposed to work on Windows at least, maybe also OS X and some other environments I don't use. When `raise-frame' fails but the WM supports EWMH, the following has worked for me: (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)) So ISTM fixing `raise-frame' would be a more appropriate solution. --=20 =C5=A0t=C4=9Bp=C3=A1n