emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] trunk r116261: src/w32fns.c (Fw32_shell_execute): Improve


From: Eli Zaretskii
Subject: [Emacs-diffs] trunk r116261: src/w32fns.c (Fw32_shell_execute): Improve commentary.
Date: Tue, 04 Feb 2014 16:29:14 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 116261
revision-id: address@hidden
parent: address@hidden
committer: Eli Zaretskii <address@hidden>
branch nick: trunk
timestamp: Tue 2014-02-04 18:25:52 +0200
message:
  src/w32fns.c (Fw32_shell_execute): Improve commentary.
modified:
  src/w32fns.c                   w32fns.c-20091113204419-o5vbwnq5f7feedwu-945
=== modified file 'src/w32fns.c'
--- a/src/w32fns.c      2014-02-02 13:00:41 +0000
+++ b/src/w32fns.c      2014-02-04 16:25:52 +0000
@@ -6924,11 +6924,12 @@
 #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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]