emacs-devel
[Top][All Lists]
Advanced

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

Re: emacs server and new frames


From: Stefan Monnier
Subject: Re: emacs server and new frames
Date: Mon, 05 Jun 2006 21:20:14 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> (add-hook 'server-switch-hook 'new-frame)

IIRC using server-switch-hook had problems because it's either not always
called when you need the new frame, or it's also called at times when you
don't want it.

> (custom-set-variables '(server-window 'pop-to-buffer))

I believe that's what you want.  But maybe your `pop-to-buffer' doesn't
create new frames because you haven't set pop-up-frames.  If you don't want
to set pop-up-frames in general, try:

(setq server-window
      (lambda (&rest args)
        (let ((pop-up-frames t))
          (apply 'pop-to-buffer args))))


-- Stefan




reply via email to

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