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

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

Re: whitespace-cleanup + untabify?


From: Thierry Volpiatto
Subject: Re: whitespace-cleanup + untabify?
Date: Mon, 16 Jun 2008 08:28:47 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

"Lennart Borgman (gmail)" <address@hidden> writes:

> Nikolaj Schumacher wrote:
>> "Lennart Borgman (gmail)" <address@hidden> wrote:
>>
>>>>> I have never used whitespace-cleanup (I use delete-trailing-whitespace),
>>>>>   but from the doc of this function it looks like it also untabifies if
>>>>> `indent-tabs-mode' is nil. Does not that work?
>>>> Yes, that's what I thought, but was not the case, as if I applied
>>>> whitespace-cleanup and then untabify, the file was modified (that is,
>>>> it still converted *some* tabs to spaces), so I assumed it didn't work
>>>> this way. I had indent-tabs-mode set to nil also.
>>> In that case it looks like a bug to me. Could you please send a bug report
>>
>>>From the documentation it appears to me that it will transform 8
>> spaces to tabs, but not vice-versa.  So I don't think it's necessarily a
>> bug.  But I do think it would be a good feature to add.
>
> You might be right about the doc, I don't understand it ;-)
>
> It looks like a simple alternative that is equivalent to untabify +
> delete-trailing-whitespace indeed is a good feature to add.
>
>
Hello all,
did somebody try something like:

,----
| (add-hook 'picture-mode-hook 'untabify)
`----

Not tested but it should work.
-- 
A + Thierry
Pub key: http://pgp.mit.edu




reply via email to

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