all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Bruce Korb <bruce.korb@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: emacs server per project?
Date: Tue, 20 Dec 2011 08:49:02 -0800	[thread overview]
Message-ID: <4EF0BC7E.4040103@gmail.com> (raw)


Hi,

I work on a number of different projects.

Each project has a devoted desktop, a cscope task and an emacs process.
Unfortunately, only one cscope gets to talk with one emacs process
because all of them want to be /tmp/emacs1000/server.  I know I can
manually change the value of "server-name", but that is pretty
inconvenient given that this yields a perfectly usable server name:
    server=$(dirname $(pwd | sed "s@^$HOME/*@@") )
more-or-less.  It is easy enough to add "-s $server" to the
emacsclient invocation, but telling emacs itself which server name
to use doesn't seem obvious to me.  Is there a way, or does one
have to learn emacs lisp and fiddle it in ~/.emacs?  Thank you!

Regards, Bruce

P.S. I also tried spawning emacs as a daemon process with --daemon=$server
but I wind up with either a process that steals input from the shell,
or, if I redirect stdin and stdout to /dev/null, it just sees EOF and quits.
That *does* seem a bit odd since if I do *not* specify --daemon, then
it creates its own terminal (or something like that) and does its stdin
and stdout there -- even if I spawn emacs as a true daemon process.
But then I must manually type a bunch of longish manual commands to change
the server name.



             reply	other threads:[~2011-12-20 16:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-20 16:49 Bruce Korb [this message]
2012-01-02 14:24 ` emacs server per project? Juanma Barranquero

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4EF0BC7E.4040103@gmail.com \
    --to=bruce.korb@gmail.com \
    --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.
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.