aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2014-02-04 18:25:52 +0200
committerEli Zaretskii2014-02-04 18:25:52 +0200
commit8101203ad76faba349a98c79f54a6c09659d8719 (patch)
treef1b44eccde94f8c30c308f13994ee62d9fc0dafb /src
parente139a33cd97a0e12405cae760ca5e436d9dcbc74 (diff)
downloademacs-8101203ad76faba349a98c79f54a6c09659d8719.tar.gz
emacs-8101203ad76faba349a98c79f54a6c09659d8719.zip
src/w32fns.c (Fw32_shell_execute): Improve commentary.
Diffstat (limited to 'src')
-rw-r--r--src/w32fns.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/w32fns.c b/src/w32fns.c
index 9628b3e604e..ad5d3c0ea4b 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -6924,11 +6924,12 @@ an integer representing a ShowWindow flag:
6924#else /* !CYGWIN */ 6924#else /* !CYGWIN */
6925 current_dir = ENCODE_FILE (current_dir); 6925 current_dir = ENCODE_FILE (current_dir);
6926 /* We have a situation here. If DOCUMENT is a relative file name, 6926 /* We have a situation here. If DOCUMENT is a relative file name,
6927 and is not in CURRENT_DIR, ShellExecute below will fail to find 6927 but its name includes leading directories, i.e. it lives not in
6928 it. So we need to make the file name absolute. But DOCUMENT 6928 CURRENT_DIR, but in its subdirectory, then ShellExecute below
6929 does not have to be a file, it can be a URL, for example. So we 6929 will fail to find it. So we need to make the file name is
6930 make it absolute only if it is an existing file; if it is a file 6930 absolute. But DOCUMENT does not have to be a file, it can be a
6931 that does not exist, tough. */ 6931 URL, for example. So we make it absolute only if it is an
6932 existing file; if it is a file that does not exist, tough. */
6932 GCPRO1 (absdoc); 6933 GCPRO1 (absdoc);
6933 absdoc = Fexpand_file_name (document, Qnil); 6934 absdoc = Fexpand_file_name (document, Qnil);
6934 /* Don't call file handlers for file-exists-p, since they might 6935 /* Don't call file handlers for file-exists-p, since they might