From: "dsevilla@gmail.com" <dsevilla@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: whitespace-cleanup + untabify?
Date: Sun, 15 Jun 2008 13:05:57 -0700 (PDT) [thread overview]
Message-ID: <5c229837-f27c-4871-8a2b-50af196510d7@59g2000hsb.googlegroups.com> (raw)
In-Reply-To: mailman.13261.1213458961.18990.help-gnu-emacs@gnu.org
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.
next prev parent reply other threads:[~2008-06-15 20:05 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-14 10:56 whitespace-cleanup + untabify? dsevilla
2008-06-14 12:02 ` Juanma Barranquero
2008-06-14 12:03 ` Nikolaj Schumacher
2008-06-14 12:37 ` Kevin Rodgers
2008-06-14 16:49 ` Nikolaj Schumacher
2008-06-14 13:43 ` Juanma
2008-06-14 15:02 ` Rupert Swarbrick
2008-06-14 15:10 ` dsevilla
2008-06-14 16:24 ` Lennart Borgman (gmail)
[not found] ` <mailman.13261.1213458961.18990.help-gnu-emacs@gnu.org>
2008-06-15 20:05 ` dsevilla [this message]
[not found] ` <mailman.13267.1213460678.18990.help-gnu-emacs@gnu.org>
2008-06-15 20:07 ` dsevilla
2008-06-15 20:53 ` Lennart Borgman (gmail)
2008-06-15 21:23 ` Nikolaj Schumacher
2008-06-15 21:32 ` Lennart Borgman (gmail)
2008-06-16 6:28 ` Thierry Volpiatto
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5c229837-f27c-4871-8a2b-50af196510d7@59g2000hsb.googlegroups.com \
--to=dsevilla@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).