emacs-devel
[Top][All Lists]
Advanced

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

Re: delete-trailing-whitespace and binary files


From: Kim F. Storm
Subject: Re: delete-trailing-whitespace and binary files
Date: Thu, 01 Jun 2006 16:23:22 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Kevin Rodgers <address@hidden> writes:

> Stefan Monnier wrote:
>>> text-mode is derived from Fundamental-mode, which has
>>> a somewhat peculiar (IMO) interpretation of "whitespace":
>>
>>> C-@ .. SPC          which means: whitespace
>>> DEL .. ÿ            which means: whitespace
>>>                     which means: whitespace
>>>       .. ​          which means: whitespace
>>> <<default>>         which means: whitespace
>>
>> This looks wrong.  Why should all the control chars be considered whitespace
>> in text-mode?  Rather than try to use another major mode I think we should
>> fix the above.
>
> That's what I thought, but I don't see a more appropriate choice in the
> Syntax Class Table node of the Emacs Lisp manual, which says this:
>
> | "Whitespace characters" (designated by ` ' or `-') separate symbols
> | and words from each other.

Maybe the solution for delete-trailing-whitespace is to explicitly
only consider "normal" whitespace characters, i.e. don't use the
syntax table ?

-- 
Kim F. Storm <address@hidden> http://www.cua.dk





reply via email to

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