From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Juanma Barranquero" Newsgroups: gmane.emacs.devel Subject: Re: error in server-running-p on M$ Date: Wed, 10 Dec 2008 19:47:52 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1228935536 5275 80.91.229.12 (10 Dec 2008 18:58:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Dec 2008 18:58:56 +0000 (UTC) Cc: Eli Zaretskii , Ulrich Mueller , emacs-devel@gnu.org To: "Stefan Monnier" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 10 19:59:59 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LAUHU-0002aE-J1 for ged-emacs-devel@m.gmane.org; Wed, 10 Dec 2008 19:59:33 +0100 Original-Received: from localhost ([127.0.0.1]:56827 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LAUGJ-0008PU-Ex for ged-emacs-devel@m.gmane.org; Wed, 10 Dec 2008 13:58:19 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LAU6J-0008C5-V4 for emacs-devel@gnu.org; Wed, 10 Dec 2008 13:48:00 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LAU6I-0008AU-Rj for emacs-devel@gnu.org; Wed, 10 Dec 2008 13:47:59 -0500 Original-Received: from [199.232.76.173] (port=42126 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LAU6I-0008AC-KZ for emacs-devel@gnu.org; Wed, 10 Dec 2008 13:47:58 -0500 Original-Received: from yw-out-1718.google.com ([74.125.46.157]:23639) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LAU6F-00076P-LF; Wed, 10 Dec 2008 13:47:55 -0500 Original-Received: by yw-out-1718.google.com with SMTP id 9so300908ywk.66 for ; Wed, 10 Dec 2008 10:47:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=g/xD2yBnO8xvv3atUTHRfp+axCL4/H8LPhixplFcGYg=; b=jRDIy0lJ3OKK7EBRtWc1Iyq2OmDPHsvpSBM317Lg33mg06IrY08YVtdLuKJRU0jqUW sOVC7nC5pWPzbfxNuizyHHAuNKzcCF6zjAu7rqIoiWistX5m9mzxCX3KnQ4LuxscSi5P zS6feUYKES4G/WWaw57j3t1mpE1z3lDPHPGQ4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=UJgNAKyadUjWcWmTBMUb5WO8YnLTZUplJZpPd0O5nhwa347T3S+JiyqRr5AOyxcJ5s gnYBQ59QUobPfL/KLJ9QcnCE+ZPQzgIbv07pvcYLtoRM9hw/+iQnMPO1R41OmlphSxVP sHOqxWkPqiwQQ960iUwtzGxPYi2oo0DQ+JM+o= Original-Received: by 10.100.128.2 with SMTP id a2mr1334075and.93.1228934872701; Wed, 10 Dec 2008 10:47:52 -0800 (PST) Original-Received: by 10.100.13.13 with HTTP; Wed, 10 Dec 2008 10:47:52 -0800 (PST) In-Reply-To: Content-Disposition: inline X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:106768 Archived-At: On Wed, Dec 10, 2008 at 19:30, Stefan Monnier wrote: > A config var doesn't sound right. Programmatically, there's no need to > do anything special. The problem is for interactive use. I don't have > a good solution to propose just now, we could just say "to force-start > a sever first do M-x server-force-delete and then M-x server-mode". If you're not going to worry about the non-interactive use, there's no need of using another command. Ulrich's original proposal, asking the user, would be better IMHO. (Of course, noninteractive == t would turn it off.) > That sounds about right. The doc could simply say "t, nil, other" where > "other" means that we're not sure and the value returned might give > a hint about why we're not sure. Sorry, I don't understand. Do you mean that the documentation would say "t, nil, other", but we would return t, nil, and other values that give a hint (like not-sure, or remote), or do you mean that we return t, nil, other, and the caller must know what to do? I prefer the second option. > As for process name, I'd rather not check the name of the process. I'd guess (out of the blue sky) than in a heavily used system the probability of a process ID collision between a long-dead process and a new one is significant. I'd feel safer checking the name and adding a note to the docstring about the dangers of running Emacs servers with atypical names. But it is your call, I'll implement what you decide. Juanma