From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Edric M Ellis Newsgroups: gmane.emacs.help Subject: Re: replace tab stops with spaces Date: 14 Oct 2002 10:35:34 +0100 Organization: The Mathworks, Ltd. Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: <3DAA89C8.3000004@gmx.de> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1034588470 1262 127.0.0.1 (14 Oct 2002 09:41:10 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 14 Oct 2002 09:41:10 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1811im-0000KC-00 for ; Mon, 14 Oct 2002 11:41:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 1811iu-0000tY-00; Mon, 14 Oct 2002 05:41:16 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!cyclone.bc.net!newspump.monmouth.com!newspeer.monmouth.com!news-peer-east1.sprintlink.net!news.sprintlink.net!newsfeed.mathworks.com!news.mathworks.com!compaq-bsd!news.mathworks.co.uk!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 30 Original-NNTP-Posting-Host: eellis.mathworks.co.uk Original-X-Trace: sabina.mathworks.co.uk 1034588134 22495 192.168.72.158 (14 Oct 2002 09:35:34 GMT) Original-X-Complaints-To: jwoollatt@mathworks.co.uk Original-NNTP-Posting-Date: Mon, 14 Oct 2002 09:35:34 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Original-Xref: shelby.stanford.edu gnu.emacs.help:106027 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:2574 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:2574 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