# HG changeset patch # User Richard M. Stallman # Date 838139544 0 # Node ID eb1cef7102e3cb8fa4f56e0414a2cc571a350020 # Parent ac60bc3e89cdcfabcb75c6dfeb18085fd148e87e (readline_internal) [DOS_NT]: Don't include CRs when computing character positions in source files. diff -r ac60bc3e89cd -r eb1cef7102e3 lib-src/etags.c --- a/lib-src/etags.c Tue Jul 23 16:17:39 1996 +0000 +++ b/lib-src/etags.c Tue Jul 23 16:32:24 1996 +0000 @@ -4105,7 +4105,16 @@ if (p > buffer && p[-1] == '\r') { *--p = '\0'; +#ifdef DOS_NT + /* Assume CRLF->LF translation will be performed by Emacs + when loading this file, so CRs won't appear in the buffer. + It would be cleaner to compensate within Emacs; + however, Emacs does not know how many CRs were deleted + before any given point in the file. */ + chars_deleted = 1; +#else chars_deleted = 2; +#endif } else {