From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#21573: (no subject) Date: Thu, 03 Dec 2015 09:14:05 +0200 Message-ID: <8337vkj96q.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1449126924 9045 80.91.229.3 (3 Dec 2015 07:15:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Dec 2015 07:15:24 +0000 (UTC) Cc: 21573@debbugs.gnu.org To: Alexander Zhukov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 03 08:15:12 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 1a4O6h-0004nZ-7Q for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Dec 2015 08:15:11 +0100 Original-Received: from localhost ([::1]:33695 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4O6g-0008FZ-8f for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Dec 2015 02:15:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35607) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4O6d-0008EI-2O for bug-gnu-emacs@gnu.org; Thu, 03 Dec 2015 02:15:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a4O6Z-00066t-Sf for bug-gnu-emacs@gnu.org; Thu, 03 Dec 2015 02:15:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47118) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4O6Z-00066p-PC for bug-gnu-emacs@gnu.org; Thu, 03 Dec 2015 02:15:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1a4O6Z-0006un-8Q for bug-gnu-emacs@gnu.org; Thu, 03 Dec 2015 02:15:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Dec 2015 07:15: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.144912686626514 (code B ref 21573); Thu, 03 Dec 2015 07:15:03 +0000 Original-Received: (at 21573) by debbugs.gnu.org; 3 Dec 2015 07:14:26 +0000 Original-Received: from localhost ([127.0.0.1]:36825 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a4O5x-0006ta-QR for submit@debbugs.gnu.org; Thu, 03 Dec 2015 02:14:26 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:57475) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a4O5v-0006tR-GN for 21573@debbugs.gnu.org; Thu, 03 Dec 2015 02:14:24 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NYR00100TBLAN00@a-mtaout20.012.net.il> for 21573@debbugs.gnu.org; Thu, 03 Dec 2015 09:14:22 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NYR000KRTFXYC60@a-mtaout20.012.net.il>; Thu, 03 Dec 2015 09:14:22 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il 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:109542 Archived-At: > 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'. 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 No, it again returns nil here. As it should, since this file is not a directory. > NB I'm using standard terminal app that goes with OS X. Could be something OS X specific, I tried on GNU/Linux and on Windows, and the function always returns nil for files that are not directories. I tried both in a Git repository where I have many files, and in a repository where I have only one shell script, as you mentioned. The results are always the same. What version of Emacs do you use?