[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: delete-trailing-whitespace and binary files
From: |
Stuart D. Herring |
Subject: |
Re: delete-trailing-whitespace and binary files |
Date: |
Tue, 6 Jun 2006 13:25:42 -0700 (PDT) |
User-agent: |
SquirrelMail/1.4.3a-11.EL3 |
> + /* Control characters should not be whitespace. */
> + temp = XVECTOR (Vsyntax_code_object)->contents[(int) Spunct];
> + for (i = 1; i <= ' ' - 1; i++)
> + SET_RAW_SYNTAX_ENTRY (Vstandard_syntax_table, i, temp);
> + SET_RAW_SYNTAX_ENTRY (Vstandard_syntax_table, 0177, temp);
This seems wrong to me in two respects. It doesn't do anything to NUL,
which was the original problem character; instead, it marks as punctuation
^I (TAB), ^J (LFD), ^L (FFD), and ^M (CR), which should probably be left
as whitespace. One could also make a case that such characters as ^?
(VTB) should remain whitespace, although I've never seen anyone use that
one.
Davis
--
This product is sold by volume, not by mass. If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.
- Re: delete-trailing-whitespace and binary files, Kim F. Storm, 2006/06/01
- Re: delete-trailing-whitespace and binary files, Richard Stallman, 2006/06/01
- Re: delete-trailing-whitespace and binary files, David Kastrup, 2006/06/02
- Re: delete-trailing-whitespace and binary files, Richard Stallman, 2006/06/02
- Re: delete-trailing-whitespace and binary files, David Kastrup, 2006/06/02
- Re: delete-trailing-whitespace and binary files, Richard Stallman, 2006/06/03
- Re: delete-trailing-whitespace and binary files,
Stuart D. Herring <=
- Re: delete-trailing-whitespace and binary files, Stuart D. Herring, 2006/06/06
- Re: delete-trailing-whitespace and binary files, Richard Stallman, 2006/06/06