unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: executable-find in files.el
Date: Thu, 12 May 2005 08:42:32 -0400	[thread overview]
Message-ID: <8764xo39nx.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <01c556bc$Blat.v2.4$cc9849e0@zahav.net.il> (Eli Zaretskii's message of "Thu, 12 May 2005 09:34:31 +0300")

>> > Yes.  But since you obviously didn't read my identical comment posted
>> > in response to your suggestion to do what you just did in this version
>> > of executable-find (or perhaps you read it, but disregarded it), I
>> > posted the same comment again.
>> 
>> Hmm... I replied to it in
>> http://lists.gnu.org/archive/html/emacs-devel/2005-05/msg00381.html but
>> haven't seen any answer.

> That's not the comment I meant.  I meant what I said here:

>   http://lists.gnu.org/archive/html/emacs-devel/2005-05/msg00379.html

> which got no responses.

I don't see any difference in actual content.  Both messages basically say
"subtle differences, thus file-executable-p", so msg00379 is also the answer
I'd have given.

>> Fine, but as long as noone changes call-process to do something meaningful
>> when requested to execute a file which is only available via
>> a file-name-handler, I think we should stick to 1 because I think it's more
>> important to match the behavior of call-process (as I wrote in the comment).

> I think we don't know what is more important.  Software is funny: it
> can use the infrastructure in ways that are unimaginable when the
> infrastructure was written.  That is why infrastructure needs to be
> consistent.  I'm sure I'm not saying anything you didn't already know.

Of course, I don't know, but I grepped for uses and they seem to corroborate
my intuition.

>> But, really, this is all academic anyway since I don't know of anyone who
>> has funny file-name-handled directories on her exec-path.

> That's not the only difference between openp and file-executable-p.
> Please compare check_executable and openp, and you will see that:

>   . on Windows, check_executable uses stat to verify executability
>   . on Posix systems, check_executable uses euidaccess if it's available
>   . by contrast, openp always uses access

> These are subtle differences, but they are real.

These are too subtle for me, indeed.  Are you saying that:
1- call-process on w32 doesn't use check_executable but should
2- are you saying that call-process on w32 does use check_executable whereas
   a "1" arg to locate-file doesn't, and thus that a `file-executable-p' arg
   to locate-file better mimicks call-process on w32.

If (1), it's beyond the scope of my patch.


        Stefan

  reply	other threads:[~2005-05-12 12:42 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1DVuFh-0001h1-GE@monty-python.gnu.org>
2005-05-11 18:29 ` executable-find in files.el Eli Zaretskii
2005-05-11 19:07   ` Stefan Monnier
2005-05-11 22:56     ` Eli Zaretskii
2005-05-11 23:16       ` Stefan Monnier
2005-05-11 23:50         ` David Kastrup
2005-05-12  1:31           ` Stefan Monnier
2005-05-12  6:34         ` Eli Zaretskii
2005-05-12 12:42           ` Stefan Monnier [this message]
2005-05-12 13:14             ` Eli Zaretskii
2005-05-14 14:58     ` Michael Albinus
2005-05-15  0:21       ` Richard Stallman
2005-05-16 19:27         ` Michael Albinus
2005-05-16 22:38           ` Stefan Monnier
2005-05-17 22:03             ` Kim F. Storm
2005-05-17 22:23               ` Stefan Monnier
2005-05-18 13:08                 ` Richard Stallman
2005-05-17  4:36           ` Richard Stallman
2005-05-17 16:32             ` Michael Albinus
2005-05-18  5:19               ` Richard Stallman
2005-05-18 13:08           ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8764xo39nx.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).