[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: replace tab stops with spaces

From: Bingham, Jay
Subject: RE: replace tab stops with spaces
Date: Mon, 14 Oct 2002 09:25:37 -0500

The suggested approach may produce undesirable results, such as when a tab 
takes less than a fixed number of spaces, which is the reason for existence of 
tab characters.

Instead try the M-x untabify command at the start of the buffer

untabify is an interactive compiled Lisp function in `tabify'.
(untabify START END)

Convert all tabs in region to multiple spaces, preserving columns.
Called non-interactively, the region is specified by arguments
START and END, rather than by the position of point and mark.
The variable `tab-width' controls the spacing of tab stops.

.    HP - NonStop Austin Software & Services - Software Product Assurance
.    Austin, TX
. Language is the apparel in which your thoughts parade in public.
. Never clothe them in vulgar and shoddy attire.          -Dr. George W. Crane-

 -----Original Message-----
From:   Kevin Dziulko [] 
Sent:   Monday, October 14, 2002 9:04 AM
Subject:        Re: replace tab stops with spaces

With the cursor at the beginning of the file, type M-x replace string.
At the "Replace string:" prompt, hit tab key then enter.
At the "Replace string   with:" prompt hit 4 spaces then enter.

On Mon, 14 Oct 2002, Roland Reichenberg wrote:

> Hi everybody,
> 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.
> This bothers me while editing buffers. Is there an easy-to-use command
> which converts all tab stops into 4 blank spaces?
> Thanks in advance,
>       Roland
> _______________________________________________
> Help-gnu-emacs mailing list

Help-gnu-emacs mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]