[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 <juanma_bel...@yahoo.es> wrote:
> On Saturday 14 June 2008, dsevi...@gmail.com 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.
- whitespace-cleanup + untabify?, address@hidden, 2008/06/14
- Re: whitespace-cleanup + untabify?, Kevin Rodgers, 2008/06/14
- Re: whitespace-cleanup + untabify?, Rupert Swarbrick, 2008/06/14
- Re: whitespace-cleanup + untabify?, Juanma, 2008/06/14
- Re: whitespace-cleanup + untabify?, Nikolaj Schumacher, 2008/06/14
- Re: whitespace-cleanup + untabify?, Juanma Barranquero, 2008/06/14
- Re: whitespace-cleanup + untabify?, Lennart Borgman (gmail), 2008/06/14
- Message not available
- Re: whitespace-cleanup + untabify?,
address@hidden <=
- Message not available