Mercurial > emacs
comparison src/fileio.c @ 17580:331ce9fbf08b
(Fsubstitute_in_file_name): Use xnm uniformly, never nm,
when handling /~ and // at the end.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 27 Apr 1997 18:19:42 +0000 |
parents | 648beff801bb |
children | 6a190274d2e7 |
comparison
equal
deleted
inserted
replaced
17579:8dd146dbe737 | 17580:331ce9fbf08b |
---|---|
1920 || (IS_DIRECTORY_SEP (p[0]) && p - 1 != xnm) | 1920 || (IS_DIRECTORY_SEP (p[0]) && p - 1 != xnm) |
1921 #else /* not (APOLLO || WINDOWSNT) */ | 1921 #else /* not (APOLLO || WINDOWSNT) */ |
1922 || IS_DIRECTORY_SEP (p[0]) | 1922 || IS_DIRECTORY_SEP (p[0]) |
1923 #endif /* not (APOLLO || WINDOWSNT) */ | 1923 #endif /* not (APOLLO || WINDOWSNT) */ |
1924 ) | 1924 ) |
1925 && p != nm && IS_DIRECTORY_SEP (p[-1])) | 1925 && p != xnm && IS_DIRECTORY_SEP (p[-1])) |
1926 xnm = p; | 1926 xnm = p; |
1927 #ifdef DOS_NT | 1927 #ifdef DOS_NT |
1928 else if (IS_DRIVE (p[0]) && p[1] == ':' | 1928 else if (IS_DRIVE (p[0]) && p[1] == ':' |
1929 && p > nm && IS_DIRECTORY_SEP (p[-1])) | 1929 && p > nm && IS_DIRECTORY_SEP (p[-1])) |
1930 xnm = p; | 1930 xnm = p; |