aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorPaul Eggert2015-05-25 13:06:11 -0700
committerPaul Eggert2015-05-25 13:22:36 -0700
commit1efdf7feb3e1a56649ea5da621cdf246d9a4ec50 (patch)
tree9d39a432c32de5c2c099fad246d7d1d1c9224384 /lib-src
parent175a07a1329eb03176882436af86b3401c91ab77 (diff)
downloademacs-1efdf7feb3e1a56649ea5da621cdf246d9a4ec50.tar.gz
emacs-1efdf7feb3e1a56649ea5da621cdf246d9a4ec50.zip
Make TAGS files more portable to MS-Windows
* etc/NEWS: Document this. * lib-src/etags.c (readline_internal) [DOS_NT]: Don't treat CRs differently from GNUish hosts. * lisp/progmodes/etags.el (etags-goto-tag-location): Adjust STARTPOS to account for the skipped CRs in dos-style files.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/etags.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c
index f124d290da3..8b7f53c808b 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -6075,16 +6075,7 @@ readline_internal (linebuffer *lbp, FILE *stream, char const *filename)
6075 if (p > buffer && p[-1] == '\r') 6075 if (p > buffer && p[-1] == '\r')
6076 { 6076 {
6077 p -= 1; 6077 p -= 1;
6078#ifdef DOS_NT
6079 /* Assume CRLF->LF translation will be performed by Emacs
6080 when loading this file, so CRs won't appear in the buffer.
6081 It would be cleaner to compensate within Emacs;
6082 however, Emacs does not know how many CRs were deleted
6083 before any given point in the file. */
6084 chars_deleted = 1;
6085#else
6086 chars_deleted = 2; 6078 chars_deleted = 2;
6087#endif
6088 } 6079 }
6089 else 6080 else
6090 { 6081 {