bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: decode_eol and inconsistent EOL


From: Stefan Monnier
Subject: Re: decode_eol and inconsistent EOL
Date: 26 Apr 2002 10:37:40 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.50

>>>>> "Stefan" == Stefan Monnier 
>>>>> <monnier+gnu.emacs.bug/news/@flint.cs.yale.edu> writes:
> I think all that we really care about is that the load+save trip is safe
> and that the content of the Emacs buffer looks "as right as possible".

I.e. I suggest the patch below which makes Emacs accept lone CRs inside
dos-style files.  It should fix the problem for Stephen while still
guaranteeing a safe load+save round trip.


        Stefan


--- coding.c.~1.241.~   Tue Apr 16 10:15:28 2002
+++ coding.c    Fri Apr 26 09:09:16 2002
@@ -3173,11 +3173,6 @@
              ONE_MORE_BYTE (c);
              if (c != '\n')
                {
-                 if (coding->mode & CODING_MODE_INHIBIT_INCONSISTENT_EOL)
-                   {
-                     coding->result = CODING_FINISH_INCONSISTENT_EOL;
-                     goto label_end_of_loop;
-                   }
                  src--;
                  c = '\r';
                }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]