From: Allan Gottlieb <gottlieb@nyu.edu>
To: help-gnu-emacs@gnu.org
Subject: Re: new frame for emacsclient-emacs (v22)
Date: Wed, 29 Aug 2007 13:05:35 -0400 [thread overview]
Message-ID: <yu9mywa9sps.fsf@nyu.edu> (raw)
In-Reply-To: <m3r6lmqpuo.fsf@fleche.redhat.com> (Tom Tromey's message of "Wed\, 29 Aug 2007 10\:15\:27 -0600")
At Wed, 29 Aug 2007 10:15:27 -0600 Tom Tromey <tromey@redhat.com> wrote:
>>>>>> "Allan" == Allan Gottlieb <gottlieb@nyu.edu> writes:
>
> Allan> I would like emacsclient-emacs (this is the name of the executable on
> Allan> my gentoo system; I had thought it was simply emacsclient), to show
> Allan> the requested file in a new frame. I have set server-window to
> Allan> `pop-to-buffer', but that does not create a new frame.
>
> Try setting server-window to a function that makes a frame and
> displays your buffer in it.
>
> This is untested but may do what you want:
>
> (defun server-make-frame-for-buffer (buffer)
> (if multiple-frames
> (let ((frame (make-frame)))
> (set-window-buffer (frame-selected-window frame) buffer)
> (select-frame-set-input-focus frame))
> (pop-to-buffer buffer)))
Thanks. I changed `multiple-frames' to `window-system' since
sometimes the server emacs has only one frame.
Works very well; thanks again,
allan
next prev parent reply other threads:[~2007-08-29 17:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-29 15:16 new frame for emacsclient-emacs (v22) Allan Gottlieb
2007-08-29 16:15 ` Tom Tromey
2007-08-29 17:05 ` Allan Gottlieb [this message]
2007-08-29 19:36 ` Reiner Steib
2007-08-29 21:38 ` Allan Gottlieb
2007-08-29 21:47 ` Reiner Steib
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=yu9mywa9sps.fsf@nyu.edu \
--to=gottlieb@nyu.edu \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).