From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#17330: files.el cd-absolute overcome false negative from file-executable-p Date: Sun, 04 May 2014 14:07:50 -0400 Message-ID: References: <41559D99-B080-4B34-B491-3A811FA9FEAE@bluewin.ch> <5364B437.2070106@bluewin.ch> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1399226900 28293 80.91.229.3 (4 May 2014 18:08:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 4 May 2014 18:08:20 +0000 (UTC) Cc: Philip Hodges , 17330@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 04 20:08:13 2014 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 1Wh0pf-0007QB-QG for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 May 2014 20:08:12 +0200 Original-Received: from localhost ([::1]:54113 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wh0pe-0006zC-Uz for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 May 2014 14:08:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42552) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wh0pX-0006z7-VI for bug-gnu-emacs@gnu.org; Sun, 04 May 2014 14:08:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wh0pX-0006vQ-7L for bug-gnu-emacs@gnu.org; Sun, 04 May 2014 14:08:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33598) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wh0pX-0006vI-3y for bug-gnu-emacs@gnu.org; Sun, 04 May 2014 14:08:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Wh0pW-0001t3-8j for bug-gnu-emacs@gnu.org; Sun, 04 May 2014 14:08:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 May 2014 18:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17330 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17330-submit@debbugs.gnu.org id=B17330.13992268757241 (code B ref 17330); Sun, 04 May 2014 18:08:02 +0000 Original-Received: (at 17330) by debbugs.gnu.org; 4 May 2014 18:07:55 +0000 Original-Received: from localhost ([127.0.0.1]:50949 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wh0pO-0001si-Js for submit@debbugs.gnu.org; Sun, 04 May 2014 14:07:54 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:34055 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wh0pM-0001sY-BG for 17330@debbugs.gnu.org; Sun, 04 May 2014 14:07:52 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Wh0pK-0002ri-Id; Sun, 04 May 2014 14:07:50 -0400 X-Spook: encryption LABLINK bullion ASLET CDC ANC red noise UFO X-Ran: 1,GPH7&;+7*WH~G*~+g0"^skEI:gO#_OB&6;[>sO-hz*7A8VKcqwx~A'Ht@m+N!|a.`#=H X-Hue: white X-Attribution: GM In-Reply-To: (Stefan Monnier's message of "Sun, 04 May 2014 09:01:12 -0400") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) 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: 140.186.70.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:88632 Archived-At: Stefan Monnier wrote: > So, we could solve this problem either by dropping this error, or by > using call-process instead of file-executable-p. Yet another way would > be to provide a new subroutine that gives access to chdir somehow > (e.g. "file-chdirable-p"). I'd still like to hear if file-accessible-directory-p does any better than file-executable-p. At least on !DOS_NT, it seems to be something a bit different. > I think the simplest solution for now is to turn the error into a warning. Sounds good, but might be annoying on Unix platforms; if as you say this situation is impossible there an error might be clearer for them.