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

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

Re: whitespace-cleanup + untabify?


From: Lennart Borgman (gmail)
Subject: Re: whitespace-cleanup + untabify?
Date: Sun, 15 Jun 2008 23:32:43 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666

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.




reply via email to

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