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:mime-version:to:subject
	:references:in-reply-to:content-type:content-transfer-encoding;
	 q=dns; s=default; b=bKZaNmxBpbvdJhVHr7axewjWcWoRB6G7OQdbHK5iX2H
	BQpLuQnlkXd9+OSAlRHgncw2mEwatipx0FjxPsC/YGjH/QjPdzoDBCTT97td+r6Q
	JlLu/bXpMlfO5ZTt5FnvKQsRWRJdk0eHX8QHdx540QqZL++ypK8mZgnwuqQ66zQc
	=
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:mime-version:to:subject
	:references:in-reply-to:content-type:content-transfer-encoding;
	 s=default; bh=s5s/yjhWPyjYblKEP7FEupPcOXk=; b=C8fSR229WpZNY/9QG
	bF11zVGqr1E+Hia842gnP0mN1SqDqkIxCvM3dZOlIJuyywFAMOhhA2kaDjFxBXOt
	NEKpR4n3pTOW5z58KA6gFBlFE4aCickRgt6G503flALWY9Rol2QuSsX4xy4xeaqJ
	yKDkX/QltKo3c2I5m8hFhbfvC8=
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=-1.7 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2
X-HELO: limerock02.mail.cornell.edu
X-CornellRouted: This message has been Routed already.
Message-ID: <53FD0662.5050208@cornell.edu>
Date: Tue, 26 Aug 2014 18:12:50 -0400
From: Ken Brown <kbrown@cornell.edu>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: (call-process ...) hangs in emacs
References: <53DB8D23.7060806@alice.it>	<CAK9Gx1cjj-7cDP7CunD7Bxz35L+SU9+4Ro3HRot5cwjcArudOA@mail.gmail.com>	<20140801133225.GD25860@calimero.vinschen.de>	<53DEDBBA.20102@cornell.edu>	<20140804080034.GA2578@calimero.vinschen.de>	<53DF8BDC.8090104@cornell.edu>	<20140804134526.GK2578@calimero.vinschen.de>	<53E0CC2D.4080305@cornell.edu>	<20140805135830.GA9994@calimero.vinschen.de>	<53E11A93.9070800@cornell.edu>	<20140805184047.GC13601@calimero.vinschen.de>	<53E3685B.8050508@cornell.edu> <53E39BAD.3010004@redhat.com>	<53E3CB46.1020909@cornell.edu> <53E3F2AE.7030608@redhat.com>	<53E4D01B.9010005@cornell.edu> <53F1F154.1020702@cornell.edu>	<53FB87DC.2050908@cornell.edu> <87wq9v9j2y.fsf@Rainer.invalid>
In-Reply-To: <87wq9v9j2y.fsf@Rainer.invalid>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

On 8/26/2014 2:55 PM, Achim Gratz wrote:
> Ken Brown writes:
>> It looks like my idea is going to work, but it needs testing to make
>> sure I've implemented it correctly.  If anyone is willing to test it,
>> you can download emacs-24.3.93-2 from my personal Cygwin repository:
>>
>>    http://sanibeltranquility.com/cygwin/
>>
>> Instructions can be found at that URL.
>
> I've switched to this version today.
>
> I've noticed that two bugs are still present at least in the emacs-w32
> version:
>
> 1) When showing the Windows desktop with Win-D and then restoring it
> (including Emacs) with Win-D again, the cursor becomes a hollow
> rectangle that doesn't blink.  To get the normal cursor behaviour back
> you have to minimize and restore the Emacs window in the "normal" way.

This one has nothing to do with emacs.  I see the same thing in mintty, 
with just a shell prompt (bash in my case).

> 2) Files that have no POSIX permissions (filemode 0000) and where access
> is granted via ACL only get always opened as "read-only" and you have to
> C-x C-q them before saving.  It appears that this is Cygwin specific
> since on Linux the same version copes with that situation correctly
> (however, the mask bits in the ACL get displayed in the group portion of
> the file mode, which I've never seen happen on Cygwin, so this may be
> something that Cygwin needs to do -- maybe that'd even solve the
> problems that Perl has in the same situation).

AFAICT, emacs decides whether the file is writable via the system call 
faccessat.  (See the function 'check_writable' in src/fileio.c.)  This 
is not Cygwin specific.  So faccessat must be returning failure in the 
scenario you described.  I don't know if that's a Cygwin bug or not.

BTW, emacs on Cygwin doesn't directly check ACLs, because the relevant 
configure test fails.  That would explain the ACL display you see on 
Linux but not on Cygwin.  But I think this is a separate matter, not 
related to the bug you're reporting.

Ken

--
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

