From: Edric M Ellis <eellis@mathworks.co.uk>
Subject: Re: replace tab stops with spaces
Date: 14 Oct 2002 10:35:34 +0100 [thread overview]
Message-ID: <u1y6t1hy1.fsf@eellis.mathworks.co.uk> (raw)
In-Reply-To: 3DAA89C8.3000004@gmx.de
Roland Reichenberg wrote:
> in our small development team nearly everybody uses a different
> editor to work on our sources. And not every editor is configured to
> use blank spaces instead of tab stops. So our sources contain both
> real tab stops and blank spaces.
I assume telling them to use a better editor is out of the question ;)
> This bothers me while editing buffers. Is there an easy-to-use
> command which converts all tab stops into 4 blank spaces?
C-x h M-x untabify RET?
NB that "untabify" uses the current value of tab-width, but you could
hard-wire it, and do the whole buffer at once like this:
(defun untabify-whole-buffer-4 nil
(interactive)
(let ((tab-width 4))
(untabify (point-min) (point-max))))
Cheers,
Edric.
--
Edric M Ellis
The MathWorks, Ltd., Matrix House, Cowley Park, Cambridge CB4 0HH, UK
Tel: +44 (0) 1223 423 200 Ext: 218
Fax: +44 (0) 1223 423 255
next prev parent reply other threads:[~2002-10-14 9:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-14 9:09 replace tab stops with spaces Roland Reichenberg
2002-10-14 9:35 ` Edric M Ellis [this message]
2002-10-14 14:03 ` Kevin Dziulko
-- strict thread matches above, loose matches on Subject: below --
2002-10-14 14:25 Bingham, Jay
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=u1y6t1hy1.fsf@eellis.mathworks.co.uk \
--to=eellis@mathworks.co.uk \
/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).