diff options
| author | Richard M. Stallman | 1996-07-23 16:32:24 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-07-23 16:32:24 +0000 |
| commit | 70611080d211dbda1e222f3df3f45bd4ad4990e3 (patch) | |
| tree | f921c4241a6572494f361664549503c06c254b2f /lib-src | |
| parent | bff1accf0422c0bfb74fbdc13d7b10e7cd8af30d (diff) | |
| download | emacs-70611080d211dbda1e222f3df3f45bd4ad4990e3.tar.gz emacs-70611080d211dbda1e222f3df3f45bd4ad4990e3.zip | |
(readline_internal) [DOS_NT]: Don't include CRs when
computing character positions in source files.
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/etags.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c index 97f860a96a4..35e396c3be7 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c | |||
| @@ -4105,7 +4105,16 @@ readline_internal (linebuffer, stream) | |||
| 4105 | if (p > buffer && p[-1] == '\r') | 4105 | if (p > buffer && p[-1] == '\r') |
| 4106 | { | 4106 | { |
| 4107 | *--p = '\0'; | 4107 | *--p = '\0'; |
| 4108 | #ifdef DOS_NT | ||
| 4109 | /* Assume CRLF->LF translation will be performed by Emacs | ||
| 4110 | when loading this file, so CRs won't appear in the buffer. | ||
| 4111 | It would be cleaner to compensate within Emacs; | ||
| 4112 | however, Emacs does not know how many CRs were deleted | ||
| 4113 | before any given point in the file. */ | ||
| 4114 | chars_deleted = 1; | ||
| 4115 | #else | ||
| 4108 | chars_deleted = 2; | 4116 | chars_deleted = 2; |
| 4117 | #endif | ||
| 4109 | } | 4118 | } |
| 4110 | else | 4119 | else |
| 4111 | { | 4120 | { |