From: "dsevilla@gmail.com" <dsevilla@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: whitespace-cleanup + untabify?
Date: Sat, 14 Jun 2008 08:10:29 -0700 (PDT) [thread overview]
Message-ID: <13ecdbf9-b231-4078-8272-ffba79dfba71@r66g2000hsg.googlegroups.com> (raw)
In-Reply-To: g30mht$ogh$1@news.albasani.net
On Jun 14, 5:02 pm, Rupert Swarbrick <rswarbr...@gmail.com> wrote:
> "dsevi...@gmail.com" <dsevi...@gmail.com> writes:
> > 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:
>
> > GNU Emacs 23.0.60.1 (i486-pc-linux-gnu, GTK+ Version 2.12.9)
>
> > I would really appreciate the help.
>
> > Regards,
> > diego.
>
> I hope I've understood the problem correctly: it seems you want a
> command to run whitespace-cleanup and untabify on the current
> buffer. As far as I know such a command doesn't exist...
>
> (defun both-cleanups ()
> (interactive)
> (untabify (point-min) (point-max))
> (whitespace-cleanup))
>
> ... well, it does now!
>
> I must admit I've never used whitespace-cleanup before, and can't get
> it to do anything! But that applies to calling it manually too, so I
> presume this will work ok for you.
>
> You probably want to give it a better name and/or a keybinding.
>
> Rupert
Really thanks, Rupert, that was it.
I thought you could configure whitespace cleanup command (that is, the
Whitespace group of Emacs) so that you could decide either if several
spaces were converted to a tab (depending on the default tab size or
the one defined locally for the buffer) or just all the tabs and
spaces were converted to just spaces.
Thanks again, I'll try this.
diego.
next prev parent reply other threads:[~2008-06-14 15:10 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 [this message]
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
[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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=13ecdbf9-b231-4078-8272-ffba79dfba71@r66g2000hsg.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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.