Bug#3291: AE uses CR and LF
Michael Meskes <meskes@Informatik.RWTH-Aachen.DE>
> When editing ae inserts both, CR and LF at the end of a line. This is MSDOS
> style but some UNIX commands don't like it. For instance I broke a line in
> a makefile and used '\' to make it continuous. However, make didn't accept
> it because the actual character was '\^M'.
That's not the behavior I see.
1. When editing a new file or a unix-style text file, ae treats \n
line terminators as might be expected from a unix editor.
2. When editing an existing file which has \r\n line terminators
(e.g., a file produced by script(1)), ae uses \n line terminators
for any added lines. However, ae does not display the or treat the
\r part of the \r\n line terminators already in the file in any way
that would alert the user that they're there. In fact, it seems
to try to hide the fact that there are \r\n line terminators in
the file from the user by attempting to handle both \n and \r\n
line terminators appropriately.
Perhaps you're doing something different than I am. Could you
let me know exactly how to duplicate this problem as you see it?
(To spare the list the noise on this, it'd probably be best to
Cc: quiet@bugs.debian.org instead of bugs.debian.org).
I think it might be useful to have ae treat the \r part of a \r\n
line terminator just like it treats \r chars encountered elsewhere
(i.e., display them as "^M", and treat them as unrecognized control
chars). Comments?
I'll try to find time to look into this.
Reply to: