X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:reply-to:subject:to
	:mime-version:content-type; q=dns; s=default; b=y2mT9TYpjk20Pv26
	ULHZ6/UuTN35fMjejIHtdVwwx/P/F57eJCOWYJXZ2u+l6e8ADmTdf6beDZOEOBYQ
	Ncp65cPMlZMGoQ0PJVZ7WKgQt8LZfzBs5NeligQmaC2spDRgLXdP8TnkP9Y6DEfs
	Nu0+h0e4W8wNGtf+45O82kUdxK8=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:reply-to:subject:to
	:mime-version:content-type; s=default; bh=CwjBDVx1nYzS8JqpHBVFRP
	h4FnY=; b=Q8qDtc3GNzcJUKj/fvW3TRmAlZAim4S8+TX9mztfpJemt2FQciyyM3
	XnNeaEsYYHoFGfEmkxNCosiAiEKwj7fkQ8RuxtiYCPIPxfhzriihJUcboYSwQRWV
	wNWUU5rzjrx6b2nEGUUcm+B6EB3X1G0Xl/CuZk/6xatbEemKYVzDo=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=2.9 required=5.0 tests=AWL,BAYES_20,FREEMAIL_FROM,KAM_FROM_URIBL_PCCC,RCVD_IN_DNSWL_NONE,SPF_PASS,T_RP_MATCHES_RCVD autolearn=no version=3.3.2
X-HELO: nm43-vm4.bullet.mail.gq1.yahoo.com
Message-ID: <1424600881.98950.YahooMailBasic@web120106.mail.ne1.yahoo.com>
Date: Sun, 22 Feb 2015 02:28:01 -0800
From: gjnospam2014-cygwinproblems@yahoo.com
Reply-To: gjnospam2014-cygwinproblems@yahoo.com
Subject: emacs server problem (was: Re: [ANNOUNCEMENT] Updated: Cygwin 1.7.34-6)
To: cygwin@cygwin.com
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii

Ken Brown wrote:

> > > Reverting to cygwin-1.7.33 "fixes" it.
> >
> > Ken, can you take a look, perhaps?  I'm just not familiar enough with emacs...
>
> I can't reproduce it either. I think we need more details from the OP,
> including detailed step-by-step instructions, as well as attached 
> cygcheck output (http://cygwin.com/problems.html). It might also be 
> useful to see the ACL on the directory /tmp/emacs<uid> that the emacs
> server uses for its socket. OP, can we see the results of 'ls -l' and 
> 'getfacl' on that directory? You might also try deleting that 
> directory and letting emacs create a new one the next time it starts a 
> server.

It definitely seems to be something to do with permissions.  In a standalone emacs I tried 'server-start' and got told that "The directory
`/cygdrive/c/Users/GJ/AppData/Local/Temp/emacs197609' is unsafe"

$ ls -ld emacs197609/
drwxrwx---+ 1 GJ None 0 Feb 22 01:39 emacs197609//

$ getfacl emacs197609/
# file: emacs197609/
# owner: GJ
# group: None
user::rwx
user:gdj:rwx
group::---
group:SYSTEM:rwx
group:Administrators:rwx
mask:rwx
other:---
default:user::rwx
default:user:gdj:rwx
default:group::---
default:group:SYSTEM:rwx
default:group:Administrators:rwx
default:mask:rwx
default:other:---

I tried setting the server-socket-dir variable to another, more private,
directory, but that didn't work (in a different way).  If I set the
variable to, say, ~/.emacs.d/server emacs does not give me an error
message when trying to start the server, but...
$ /usr/bin/emacsclient -t --alternate-editor=""
emacsclient: can't find socket; have you started the server?
To start the server in Emacs, type "M-x server-start".
[...]
Starting Emacs daemon.
Unable to start the daemon.
Another instance of Emacs is running the server, either as daemon or interactively.
You can use emacsclient to connect to that Emacs process.
[...]
Error: server did not start correctly
Error: Could not start the Emacs daemon

Running on Windows 7, non-admin account.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

