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

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

Re: whitespace-cleanup + untabify?


From: address@hidden
Subject: Re: whitespace-cleanup + untabify?
Date: Sun, 15 Jun 2008 13:05:57 -0700 (PDT)
User-agent: G2/1.0

On Jun 14, 3:43 pm, Juanma <address@hidden> wrote:
> On Saturday 14 June 2008, address@hidden wrote:
>
> > Dear all:
>
> > I'm a no tab person. I would like my whitespace-cleanup command to
> > also perform an untabify. How can this be done? I haven't found any
> > option that connects untabify and whitespace-cleanup. I'm using:
>
> It's easy to put things together in your own function:
>
> (defun my-whitespace-cleanup ()
>   (interactive)
>   (whitespace-cleanup)
>   (call-interactively 'untabify))
>
> That's the quick&dirty-est way and you should mark a region to use it (as it
> would be for 'untabify' anyway). Bind it to a key. Done.
>
> But, does 'whitespace-cleanup' work for you? I mean, the documentation of
> `whitespace-buffer' says:
> +-----------------------------------------------------------------------------+
> | 3. Indentation space (8 or more spaces, that should be replaced with TABS). 
> |
> +-----------------------------------------------------------------------------+
>
> Saludos,
> Juan

Hello, Juan:

Yes, it has worked always. It does what it should do, but certain tabs
weren't converted to spaces (as I wanted) and/or it inserted tabs (I
haven't tested this one, but still). What I wanted was to remove tabs
and substitute them by spaces. The solutions of defining a new
function worked nicely.

Thanks,
diego.


reply via email to

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