Mercurial > emacs
changeset 15197:a97349b06c2c
Comment changes.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 09 May 1996 23:21:54 +0000 |
parents | 414e523050d5 |
children | fd47674bb3a7 |
files | src/dired.c |
diffstat | 1 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dired.c Thu May 09 19:45:49 1996 +0000 +++ b/src/dired.c Thu May 09 23:21:54 1996 +0000 @@ -453,6 +453,8 @@ use it as the best match rather than one that is not an exact match. This way, we get the case pattern of the actual match. */ + /* This tests that the current file is an exact match + but BESTMATCH is not (it is too long). */ if ((matchsize == len && matchsize + !!directoryp < XSTRING (bestmatch)->size) @@ -460,13 +462,15 @@ /* If there is no exact match ignoring case, prefer a match that does not change the case of the input. */ + /* If there is more than one exact match aside from + case, and one of them is exact including case, + prefer that one. */ + /* This == checks that, of current file and BESTMATCH, + either both or neither are exact. */ (((matchsize == len) == (matchsize + !!directoryp == XSTRING (bestmatch)->size)) - /* If there is more than one exact match aside from - case, and one of them is exact including case, - prefer that one. */ && !bcmp (p2, XSTRING (file)->data, XSTRING (file)->size) && bcmp (p1, XSTRING (file)->data, XSTRING (file)->size))) {