help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: closing emacsclient always focuses another emacs window


From: trygve . flathen
Subject: Re: closing emacsclient always focuses another emacs window
Date: Sun, 9 Mar 2014 11:22:43 -0700 (PDT)
User-agent: G2/1.0

kl. 01:44:00 UTC+1 søndag 9. mars 2014 skrev Michael Heerdegen følgende:
> 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 
> the recipe, I get the desired behavior. 
> 
> OTOH, when I start up with emacs -Q --daemon, and follow the recipe, I 
> see what trygve.flathen sees. 

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 args) 
(when (car args) (apply f args)))) nil)
  eval-last-sexp-1(nil)
  eval-last-sexp(nil)
  call-interactively(eval-last-sexp nil nil)

-Trygve


reply via email to

[Prev in Thread] Current Thread [Next in Thread]