[Top][All Lists]

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

Re: emacs server and new frames

From: Andreas Schwab
Subject: Re: emacs server and new frames
Date: Mon, 05 Jun 2006 20:14:17 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)

Sam Steingold <address@hidden> writes:

> I want buffers created by the emacs server to show up in their own
> frames, so I do
> (add-hook 'server-switch-hook 'new-frame)
> (custom-set-variables '(server-window 'pop-to-buffer))

This is what I'm using:

(defun server-done-maybe-delete-frame ()
  (if (and (not server-clients)
           (frame-live-p server-window))
      (delete-frame server-window)))
(add-hook 'server-done-hook 'server-done-maybe-delete-frame)
(defun server-window-create-frame (next-buffer)
  (setq server-window (make-frame))
  (server-switch-buffer next-buffer))
(setq server-window 'server-window-create-frame)


Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

reply via email to

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