[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: replace tab stops with spaces
From: |
Edric M Ellis |
Subject: |
Re: replace tab stops with spaces |
Date: |
14 Oct 2002 10:35:34 +0100 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 |
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