From: Reiner Steib <reinersteib+gmane@imap.cc>
To: help-gnu-emacs@gnu.org
Subject: Re: new frame for emacsclient-emacs (v22)
Date: Wed, 29 Aug 2007 21:36:48 +0200 [thread overview]
Message-ID: <v9ir6y6skv.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: yu9mywa9sps.fsf@nyu.edu
On Wed, Aug 29 2007, Allan Gottlieb wrote:
> 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.
Shouldn't the existing customize choice "Display in new frame"
(switch-to-buffer-other-frame) already do the same? If not, I think
we should add a predefined function doing what Allan expects (I think
this is a very common wish).
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/
next prev parent reply other threads:[~2007-08-29 19:36 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
2007-08-29 19:36 ` Reiner Steib [this message]
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=v9ir6y6skv.fsf@marauder.physik.uni-ulm.de \
--to=reinersteib+gmane@imap.cc \
--cc=Reiner.Steib@gmx.de \
--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).