From: Pascal Bourguignon <spam@mouse-potato.com>
Subject: Re: Substiotution of tabs with spaces...
Date: 15 Apr 2005 15:15:01 +0200 [thread overview]
Message-ID: <87is2o9o6i.fsf@thalassa.informatimago.com> (raw)
In-Reply-To: mailman.1631.1113563465.2895.help-gnu-emacs@gnu.org
Peter Dyballa <Peter_Dyballa@Web.DE> writes:
> Am 15.04.2005 um 11:06 schrieb luca.spinacci@seleniacomms.com:
>
> > is there a smart way to replace all tabs with 3 spaces in a buffer
> > edited
> >
>
> How about: replace-regexp RET TAB + RET SPC SPC SPC RET ?
> Or: replace-string RET TAB RET SPC SPC SPC RET ?
It's not satisfactory. For example, try it on:
(progn
(find-file "/tmp/exemple")
(erase-buffer)
(insert "\n\ta\ta\n\taa\taa\n\taaa\taaa\n"))
Also, with my emacs configuration,
M-x replace-string RET TAB
tries to substitute a string of four spaces, not one tabulation.
Try:
M-x replace-regexp RET C-q TAB + RET SPC SPC SPC RET
M-x replace-string RET C-q TAB RET SPC SPC SPC RET
--
__Pascal Bourguignon__ http://www.informatimago.com/
You never feed me.
Perhaps I'll sleep on your face.
That will sure show you.
next prev parent reply other threads:[~2005-04-15 13:15 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-15 9:06 Substiotution of tabs with spaces luca.spinacci
2005-04-15 11:10 ` Peter Dyballa
[not found] ` <mailman.1631.1113563465.2895.help-gnu-emacs@gnu.org>
2005-04-15 13:15 ` Pascal Bourguignon [this message]
2005-04-15 22:49 ` Peter Dyballa
[not found] ` <mailman.1690.1113606252.2895.help-gnu-emacs@gnu.org>
2005-04-15 23:38 ` Pascal Bourguignon
2005-04-17 21:42 ` Peter Dyballa
2005-04-16 4:16 ` Stefan Monnier
2005-04-17 20:05 ` Steinar Børmer
2005-04-17 21:18 ` Peter Dyballa
2005-04-17 21:50 ` Peter Dyballa
[not found] ` <mailman.1796.1113775705.2895.help-gnu-emacs@gnu.org>
2005-04-18 6:39 ` Steinar Børmer
2005-04-18 0:03 ` Quokka
[not found] <mailman.1624.1113556776.2895.help-gnu-emacs@gnu.org>
2005-04-15 10:52 ` Pascal Bourguignon
2005-04-15 19:55 ` Alan Mackenzie
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=87is2o9o6i.fsf@thalassa.informatimago.com \
--to=spam@mouse-potato.com \
/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).