diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 3 | ||||
| -rw-r--r-- | src/fileio.c | 4 |
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 @@ | |||
| 1 | 2002-02-26 Eli Zaretskii <eliz@is.elta.co.il> | 1 | 2002-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; |