unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Daemon and client: Only open new frame if there isn't one already?
@ 2009-03-12 22:52 Hugo Heden
  2009-03-12 23:10 ` Peter Dyballa
  0 siblings, 1 reply; 18+ messages in thread
From: Hugo Heden @ 2009-03-12 22:52 UTC (permalink / raw)
  To: help-gnu-emacs

Good day all,

Is there a way for emacsclient to ask the daemon to make a new frame
(as in window-manager-managed X GUI frame, not a terminal one) only if
there isn't one already running? Presumably by using "--eval" on the
commandline I guess, perhaps something like  ( unless selected-frame
(make-frame) ) ( find-file "myfile.txt" ) ..?

When I am about to open a file (from the bash command line) I often
don't remember whether I have a frame open or not..  If there is one,
I would want the file to be automatically opened there, and otherwise
I would want a new frame to be automatically created.

Any hints appreciated.

Best regards

Hugo Heden

--

I am using a snapshot built for Ubuntu 8.10 20090207 --
https://launchpad.net/~ubuntu-elisp/+archive/ppa
$ emacs-snapshot --version
GNU Emacs 23.0.90.1




^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2009-03-21 16:52 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-12 22:52 Daemon and client: Only open new frame if there isn't one already? Hugo Heden
2009-03-12 23:10 ` Peter Dyballa
2009-03-12 23:44   ` Hugo Heden
2009-03-13  5:55     ` thierry.volpiatto
2009-03-13  9:35     ` Peter Dyballa
2009-03-13  9:35     ` Eli Zaretskii
2009-03-13 11:08       ` Hugo Heden
2009-03-13 11:20         ` Eli Zaretskii
2009-03-13 11:39         ` Peter Dyballa
2009-03-13 14:34           ` Hugo Heden
2009-03-13 21:20             ` Johan Bockgård
2009-03-13 21:26               ` Peter Dyballa
2009-03-13 22:11                 ` thierry.volpiatto
2009-03-13 22:35                   ` Peter Dyballa
2009-03-14 10:38               ` Hugo Heden
2009-03-14 11:08                 ` Peter Dyballa
2009-03-15 12:31               ` Hugo Heden
2009-03-21 16:52                 ` Hugo Heden

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).