all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Separate clients for emacs --daemon
@ 2013-05-13 12:16 Peter Rudenko
  2013-05-13 16:54 ` W. Greenhouse
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Rudenko @ 2013-05-13 12:16 UTC (permalink / raw)
  To: help-gnu-emacs

Hi, i'm using emacs --daemon/emacsclient -c. But i'm working on several projects simultaneously and don't wont buffers from one project being visible on other clients. How to make emacsclient starting with no buffers?

Also if i close one client all other clients became invisible. It seems to being known bug. I'm using emacs snapshot from cassou/emacs ppa. 

Thanks,
Peter


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

* Re: Separate clients for emacs --daemon
  2013-05-13 12:16 Separate clients for emacs --daemon Peter Rudenko
@ 2013-05-13 16:54 ` W. Greenhouse
  0 siblings, 0 replies; 2+ messages in thread
From: W. Greenhouse @ 2013-05-13 16:54 UTC (permalink / raw)
  To: help-gnu-emacs-mXXj517/zsQ

Peter Rudenko <petro.rudenko-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> Hi, i'm using emacs --daemon/emacsclient -c. But i'm working on
> several projects simultaneously and don't wont buffers from one
> project being visible on other clients. How to make emacsclient
> starting with no buffers?

emacsclient -c by itself should start with just the *scratch* buffer.

If you mean that you don't want the daemon's buffer *list* to be shared
between the clients, the only solution is different emacs --daemon
instances.  The buffer list is not tied to a particular client or frame,
but is global to the Emacs instance.  But if you did something like

--8<---------------cut here---------------start------------->8---
emacsclient --daemon=project1
emacsclient -c -s project1
emacsclient --daemon=project2
emacsclient -c -s project2
--8<---------------cut here---------------end--------------->8---

then the project1 and project2 daemons and their clients would be
completely separate from each other and could have different global
variable settings, different kill rings, different buffer lists, etc.

> Also if i close one client all other clients became invisible. It
> seems to being known bug. I'm using emacs snapshot from cassou/emacs
> ppa.

Actually, it's not a known bug in emacsclient, AFAIK.  However, the Gtk+
build of emacs --daemon is known to be vulnerable to a long-standing,
unresolved bug in Gtk+ ( https://bugs.launchpad.net/gtk/+bug/543611 ).
If you are using the GUI emacsclient across multiple X servers, or if
you ever force close an emacsclient frame, it could take down all of
Emacs with it.  For daemon use it is recommended to use emacs-lucid
instead of the gtk+ build.

> Thanks,
> Peter
>

-- 
BOFH excuse #293:

You must've hit the wrong any key.




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

end of thread, other threads:[~2013-05-13 16:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-13 12:16 Separate clients for emacs --daemon Peter Rudenko
2013-05-13 16:54 ` W. Greenhouse

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.