[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
making emacsclient create/destroy a frame
From: |
Roland Roberts |
Subject: |
making emacsclient create/destroy a frame |
Date: |
13 Oct 2003 17:24:58 -0400 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 |
-----BEGIN PGP SIGNED MESSAGE-----
I'm trying to figure out a way to make "emacsclient FOO" create a new
frame for editing FOO, then have C-x # destroy the frame. It's
sort-of working....
(delete-frame
(setq server-window (make-frame)))
(defun rbr:server-done-hook ()
(if (boundp 'server-window)
(delete-frame server-window)))
(setq server-done-hook 'rbr:server-done-hook)
Okay, the first thing is creating and destroying the initial frame is
kludgey beyond words, but once done makes server-switch-buffer do the
right thing. Almost.
Although rbr:server-done-hook destroys the frame, server-switch-buffer
creates a new one when it tries to pop back to the pre-server edit
configuration.
I was hoping I could get away with just setting some variable, but at
this point I'm browsing the code in server.el trying to figure out
what I have to do. Has anyone done this before and can give me a
clue?
TIA,
roland
- --
PGP Key ID: 66 BC 3B CD
Roland B. Roberts, PhD RL Enterprises
roland@rlenter.com 6818 Madeline Court
roland@astrofoto.org Brooklyn, NY 11220
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv
Comment: Processed by Mailcrypt 3.5.4, an Emacs/PGP interface
iQCVAwUBP4sYKuoW38lmvDvNAQF5oAQAqaY9Mq9F/NNkkad3/zmeO/43RgLmIn9S
ywDrZwGkD++yfgnqKxs3EbKsvVO/69Hcl+zHpMfVh2ek+S8pfL93Ali6eU/XKd+o
lU8moynoOLJhnmjFpJmH5gX2uTCTev2fQotb2ArPfpT/6VcejXIUqy3853qF0pVh
0MJDlCPSrzE=
=v21s
-----END PGP SIGNATURE-----
- making emacsclient create/destroy a frame,
Roland Roberts <=