]> git.eshelyaron.com Git - emacs.git/commitdiff
src/w32fns.c (Fw32_shell_execute): Improve commentary.
authorEli Zaretskii <eliz@gnu.org>
Tue, 4 Feb 2014 16:25:52 +0000 (18:25 +0200)
committerEli Zaretskii <eliz@gnu.org>
Tue, 4 Feb 2014 16:25:52 +0000 (18:25 +0200)
src/w32fns.c

index 9628b3e604e3d644eb91477fd7ae5a0590bec733..ad5d3c0ea4b21efc4151d3901a1b4cf8861f8dc9 100644 (file)
@@ -6924,11 +6924,12 @@ an integer representing a ShowWindow flag:
 #else  /* !CYGWIN */
   current_dir = ENCODE_FILE (current_dir);
   /* We have a situation here.  If DOCUMENT is a relative file name,
-     and is not in CURRENT_DIR, ShellExecute below will fail to find
-     it.  So we need to make the file name absolute.  But DOCUMENT
-     does not have to be a file, it can be a URL, for example.  So we
-     make it absolute only if it is an existing file; if it is a file
-     that does not exist, tough.  */
+     but its name includes leading directories, i.e. it lives not in
+     CURRENT_DIR, but in its subdirectory, then ShellExecute below
+     will fail to find it.  So we need to make the file name is
+     absolute.  But DOCUMENT does not have to be a file, it can be a
+     URL, for example.  So we make it absolute only if it is an
+     existing file; if it is a file that does not exist, tough.  */
   GCPRO1 (absdoc);
   absdoc = Fexpand_file_name (document, Qnil);
   /* Don't call file handlers for file-exists-p, since they might