aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2002-02-26 18:42:25 +0000
committerEli Zaretskii2002-02-26 18:42:25 +0000
commitb135bd4ced63d3e8dbcd94ba16c1ab6a5b243736 (patch)
tree0df8dbc2acc050b9f74210d8e404d1cb2f3a8fcc /src
parent16425473d513596157fe53e0bcc13d4d668fc8f0 (diff)
downloademacs-b135bd4ced63d3e8dbcd94ba16c1ab6a5b243736.tar.gz
emacs-b135bd4ced63d3e8dbcd94ba16c1ab6a5b243736.zip
(Fsubstitute_in_file_name): Fix the change from 2002-02-08.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog3
-rw-r--r--src/fileio.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index fdeb0b359e6..1d6d087b665 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,8 @@
12002-02-26 Eli Zaretskii <eliz@is.elta.co.il> 12002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
2 2
3 * fileio.c (Fsubstitute_in_file_name): Fix the change from
4 2002-02-08.
5
3 * xselect.c (Qcompound_text_with_extensions): Renamed from 6 * xselect.c (Qcompound_text_with_extensions): Renamed from
4 Qcompound_text_no_extensions. 7 Qcompound_text_no_extensions.
5 (lisp_data_to_selection_data, syms_of_xselect): Use the new name. 8 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
diff --git a/src/fileio.c b/src/fileio.c
index 7a4362f413a..894189008d5 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -2069,7 +2069,7 @@ duplicates what `expand-file-name' does. */)
2069 && *s != ':' 2069 && *s != ':'
2070#endif /* VMS */ 2070#endif /* VMS */
2071 ); s++); 2071 ); s++);
2072 if (s > p + 1) 2072 if (p[0] == '~' && s > p + 1) /* we've got "/~something/" */
2073 { 2073 {
2074 o = (unsigned char *) alloca (s - p + 1); 2074 o = (unsigned char *) alloca (s - p + 1);
2075 bcopy ((char *) p, o, s - p); 2075 bcopy ((char *) p, o, s - p);
@@ -2080,7 +2080,7 @@ duplicates what `expand-file-name' does. */)
2080 /* If we have ~/ or ~user and `user' exists, discard 2080 /* If we have ~/ or ~user and `user' exists, discard
2081 everything up to ~. But if `user' does not exist, leave 2081 everything up to ~. But if `user' does not exist, leave
2082 ~user alone, it might be a literal file name. */ 2082 ~user alone, it might be a literal file name. */
2083 if (s == p + 1 || pw) 2083 if (IS_DIRECTORY_SEP (p[0]) || s == p + 1 || pw)
2084 { 2084 {
2085 nm = p; 2085 nm = p;
2086 substituted = 1; 2086 substituted = 1;