From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexander Zhukov Newsgroups: gmane.emacs.bugs Subject: bug#21573: (no subject) Date: Thu, 03 Dec 2015 15:23:41 +0300 Message-ID: References: <8337vkj96q.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1449161489 29386 80.91.229.3 (3 Dec 2015 16:51:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Dec 2015 16:51:29 +0000 (UTC) Cc: 21573@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 03 17:51:14 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a4X6A-0007pv-E0 for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Dec 2015 17:51:14 +0100 Original-Received: from localhost ([::1]:36417 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4X69-0002KZ-PR for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Dec 2015 11:51:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42486) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4X65-0002K7-8S for bug-gnu-emacs@gnu.org; Thu, 03 Dec 2015 11:51:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a4X60-0002Tb-7z for bug-gnu-emacs@gnu.org; Thu, 03 Dec 2015 11:51:09 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47994) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4X5z-0002TA-Qi for bug-gnu-emacs@gnu.org; Thu, 03 Dec 2015 11:51:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1a4X5z-000762-N8 for bug-gnu-emacs@gnu.org; Thu, 03 Dec 2015 11:51:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alexander Zhukov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Dec 2015 16:51:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21573 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21573-submit@debbugs.gnu.org id=B21573.144916145427250 (code B ref 21573); Thu, 03 Dec 2015 16:51:03 +0000 Original-Received: (at 21573) by debbugs.gnu.org; 3 Dec 2015 16:50:54 +0000 Original-Received: from localhost ([127.0.0.1]:37700 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a4X5n-00075P-HM for submit@debbugs.gnu.org; Thu, 03 Dec 2015 11:50:54 -0500 Original-Received: from eu2.mail.crystax.net ([144.76.48.94]:29146) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a4SvY-0005aj-JJ for 21573@debbugs.gnu.org; Thu, 03 Dec 2015 07:24:03 -0500 Original-Received: by eu2.mail.crystax.net (Postfix, from userid 65534) id 6C173201F3; Thu, 3 Dec 2015 15:23:54 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=crystax.net; s=CRYSTAX; t=1449145434; bh=dv+Ax14+Z95ZB48AdhnAs8bC3KfD7bi7PfOKcGQbzIk=; h=From:To:Cc:Subject:References:Date:In-Reply-To; b=NDatp0mLDvITJOX+ieyjk4td/pn9JskM4HbQMFWgjV+mifgQ3l+b+86zzfhMMHUK9 +QBPh0I/Ft3zHrA3MiRBK4T7Ghco4xH9dqBuNDfPoJrkPox8M/A6MBQRKg2SRB0h23 E6UeuGxopqsVgHo4ixKNvinexxNyDrZtdjY7H/Aw= Original-Received: from ithilien (unknown [77.241.46.223]) by eu2.mail.crystax.net (Postfix) with ESMTPSA id 62E9A201E7; Thu, 3 Dec 2015 15:23:42 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=crystax.net; s=CRYSTAX; t=1449145422; bh=dv+Ax14+Z95ZB48AdhnAs8bC3KfD7bi7PfOKcGQbzIk=; h=From:To:Cc:Subject:References:Date:In-Reply-To; b=ONgnKLE2zc/djfY827lNHkj69bm5ET77ivhmoyrGrtTA6+GJSbt58B3e3NTY3/dZ3 RewkI1NXpqOk5BmKwtQoJRcRSWIr5sIEsbI1Lt/w7iTqBn96v7mXlyYju02CK/HLwA r6BYsmVsUzU++Dj0nytCanyIENyPgB5v0+71GGIU= In-Reply-To: <8337vkj96q.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 03 Dec 2015 09:14:05 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) X-Mailman-Approved-At: Thu, 03 Dec 2015 11:50:48 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:109562 Archived-At: >>>>> Eli Zaretskii (EZ) writes: >> From: Alexander Zhukov Date: Wed, 02 Dec 2015 >> 21:11:45 +0300 >> >> 1. Create Git repo with a one file: some bash scripts with >> executable bit set, f.e. script.sh. >> >> 2. Open fresh terminal. I mean close running terminal app with Cmd-Q >> and run a fresh copy. >> >> 3. Run Emacs app like this: >> /Applications/Emacs.app/Contents/MacOS/Emacs -Q & >> >> 4. Eval in the scratch buffer (file-accessible-directory-p >> "/private/var/tmp/repo/script.sh"). The result should be 'nil' >> >> 5. Open file: C-x C-f ".../script.sh" >> >> 6. Go back the scratch buffer and eval (file-accessible-directory-p >> ".../script.sh") The result should be 't'. EZ> It is nil here. >> 7. Exit Emacs with C-x C-c >> >> 8. Run Emacs from the same terminal window as in 3. >> >> 9. Eval in the scratch buffer (file-accessible-directory-p >> "/private/var/tmp/repo/script.sh") The result should be t EZ> No, it again returns nil here. As it should, since this file is EZ> not a directory. >> NB I'm using standard terminal app that goes with OS X. EZ> Could be something OS X specific, I tried on GNU/Linux and on EZ> Windows, and the function always returns nil for files that are not EZ> directories. EZ> I tried both in a Git repository where I have many files, and in a EZ> repository where I have only one shell script, as you mentioned. EZ> The results are always the same. Yes, it's OS X specific. Even more, it's seems to be specific to my machine and the author of the original bug. I have reported this bug to magit initially and so far nobody with OS X machines was able to reproduce the bug. EZ> What version of Emacs do you use? GNU Emacs 24.5.1 (x86_64-apple-darwin14.3.0, NS apple-appkit-1347.57) of 2015-04-13 on ithilien -- Alexander Zhukov