HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bff1acc
)
(readline_internal) [DOS_NT]: Don't include CRs when
author
Richard M. Stallman
<rms@gnu.org>
Tue, 23 Jul 1996 16:32:24 +0000
(16:32 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Tue, 23 Jul 1996 16:32:24 +0000
(16:32 +0000)
computing character positions in source files.
lib-src/etags.c
patch
|
blob
|
blame
|
history
diff --git
a/lib-src/etags.c
b/lib-src/etags.c
index
97f860a
..
35e396c
100644
(file)
--- a/
lib-src/etags.c
+++ b/
lib-src/etags.c
@@
-4105,7
+4105,16
@@
readline_internal (linebuffer, stream)
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
{