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: Sun, 9 Mar 2014 11:22:43 -0700 (PDT) Message-ID: <913ee34a-f81c-408f-afe4-6944a9c56430@googlegroups.com> References: <83pplwq0s2.fsf@gnu.org> <83ob1gpw98.fsf@gnu.org> <9cc39d8d-e5ae-488b-9ba6-78dd71a2257f@googlegroups.com> 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 1394389521 21529 80.91.229.3 (9 Mar 2014 18:25:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 9 Mar 2014 18:25:21 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 09 19:25:30 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 1WMiPh-0002P4-1v for geh-help-gnu-emacs@m.gmane.org; Sun, 09 Mar 2014 19:25:29 +0100 Original-Received: from localhost ([::1]:45081 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WMiPg-0004Am-KV for geh-help-gnu-emacs@m.gmane.org; Sun, 09 Mar 2014 14:25:28 -0400 X-Received: by 10.58.23.170 with SMTP id n10mr10648394vef.25.1394389363748; Sun, 09 Mar 2014 11:22:43 -0700 (PDT) X-Received: by 10.140.91.227 with SMTP id z90mr601196qgd.3.1394389363697; Sun, 09 Mar 2014 11:22:43 -0700 (PDT) Original-Path: usenet.stanford.edu!w5no2850594qac.0!news-out.google.com!du2ni1227qab.0!nntp.google.com!w5no2850591qac.0!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: Sun, 09 Mar 2014 18:22:43 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:204080 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:96350 Archived-At: kl. 01:44:00 UTC+1 s=F8ndag 9. mars 2014 skrev Michael Heerdegen f=F8lgende= : > How do you start the server? I usually start emacs just with "emacs&", and I have (server-start) in init= .el. > When I first start emacs (emacs -Q), and do M-x start-server, and follow= =20 > the recipe, I get the desired behavior.=20 >=20 > OTOH, when I start up with emacs -Q --daemon, and follow the recipe, I=20 > see what trygve.flathen sees.=20 Both of these methods give me the same undesired behaviour, with or without= server-start in init.el. > Does evaluating the following change the behavior for you? Seems like I am missing something: Debugger entered--Lisp error: (void-function advice-add) (advice-add (quote server-switch-buffer) :around (lambda (f &rest args) (= when (car args) (apply f args)))) eval((advice-add (quote server-switch-buffer) :around (lambda (f &rest ar= gs) (when (car args) (apply f args)))) nil) eval-last-sexp-1(nil) eval-last-sexp(nil) call-interactively(eval-last-sexp nil nil) -Trygve