[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


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

reply via email to

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