From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: trygve.flathen@gmail.com Newsgroups: gmane.emacs.help Subject: Re: closing emacsclient always focuses another emacs window Date: Sat, 8 Mar 2014 07:58:05 -0800 (PST) Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1394294408 14266 80.91.229.3 (8 Mar 2014 16:00:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Mar 2014 16:00:08 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Mar 08 17:00:18 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WMJfd-0002f7-E9 for geh-help-gnu-emacs@m.gmane.org; Sat, 08 Mar 2014 17:00:17 +0100 Original-Received: from localhost ([::1]:41038 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WMJfd-0000Pp-6G for geh-help-gnu-emacs@m.gmane.org; Sat, 08 Mar 2014 11:00:17 -0500 X-Received: by 10.50.115.4 with SMTP id jk4mr3851078igb.1.1394294285294; Sat, 08 Mar 2014 07:58:05 -0800 (PST) X-Received: by 10.140.101.171 with SMTP id u40mr410553qge.1.1394294285239; Sat, 08 Mar 2014 07:58:05 -0800 (PST) Original-Path: usenet.stanford.edu!ur14no4096159igb.0!news-out.google.com!bw18ni3075qab.1!nntp.google.com!hw13no2522637qab.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=79.161.243.147; posting-account=9QvVegoAAAA5wVSi6zQxrpcN48XTGolV Original-NNTP-Posting-Host: 79.161.243.147 User-Agent: G2/1.0 Injection-Date: Sat, 08 Mar 2014 15:58:05 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:204041 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:96311 Archived-At: kl. 14:26:37 UTC+1 l=F8rdag 8. mars 2014 skrev Eli Zaretskii f=F8lgende: > Can you please clarify what focus change you'd like to avoid, exactly? > I couldn't understand that from your original message. When a frame > created by emacsclient is deleted, that frame no longer exists, so > it's not clear to me how could Emacs _not_ switch the focus to some > other frame. That's right, the problem is _which_ other frame. Example: - I start with two windows: a terminal and an emacsclient for some file nam= ed foo that I started yesterday. The emacsclient is minimized and the termi= nal has focus. - I do "emacsclient -c /tmp/bar". A second emacsclient window is created an= d focused. - I do my work, save the bar file, and do C-x #. The bar window disappears. What I now want: terminal gets the focus back. What actually happens: The foo emacsclient is raised and gets focus. In fact, another emacs window is always focused when I close an emacsclient= , regardless of what the focus stack was when I closed it. Usually when a window is closed, focus is returned to whatever had focus im= mediately before the now closed window got focus. Hope that cleared it up a bit. -Trygve