From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: quodlibetor Newsgroups: gmane.emacs.help Subject: Possible to check for (and maybe even connect to) a running server from elisp? Date: Tue, 27 Oct 2009 20:03:38 -0700 (PDT) Organization: http://groups.google.com Message-ID: <0fbaadb5-a245-4a6b-b6db-5758da722266@b2g2000yqi.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1256701246 7209 80.91.229.12 (28 Oct 2009 03:40:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 28 Oct 2009 03:40:46 +0000 (UTC) Cc: paul.feitzinger@gmail.com To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 28 04:40:39 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1N2zOo-000543-So for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Oct 2009 04:40:39 +0100 Original-Received: from localhost ([127.0.0.1]:56024 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N2zOo-0000Ee-F7 for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Oct 2009 23:40:38 -0400 Original-Path: news.stanford.edu!usenet.stanford.edu!postnews.google.com!b2g2000yqi.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 16 Original-NNTP-Posting-Host: 69.112.198.255 Original-X-Trace: posting.google.com 1256699018 12179 127.0.0.1 (28 Oct 2009 03:03:38 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 28 Oct 2009 03:03:38 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: b2g2000yqi.googlegroups.com; posting-host=69.112.198.255; posting-account=-bGvIQoAAABPJI7xhxUa9jLKxm0Tx_GX User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.3) Gecko/20090910 Ubuntu/9.04 (jaunty) Shiretoko/3.5.3, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:174214 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:69297 Archived-At: I have `(server-start)' in my .emacs, and sometimes I forget that I've got an emacs daemon running or that I started it from a detached screen instance. I would mostly prefer to be able to just connect to a running server if it exists, but I'm assuming that the existence of emacsclient means that's not possible. Is there, though, a way to at least check if the server is running, so that I can not call (server-start)? Or, alternatively, is it possible to start emacscllient without a file? I normally start into an org agenda-view buffer and choosing a file to start in is mildly irritating. quodlibetor)