Re: Substiotution of tabs with spaces...

2005-04-17 Thread Steinar Børmer
Peter Dyballa wrote: | I think that is the new URL to the tutorials at the University in | Duisburg: | ftp://ftp.is.informatik.uni-duisburg.de/pub/src/emacs/tutorials/. I | found it from the GNUS home page http://my.gnus.org/. I think a lot of people who don't use Gnus would benefit from readi

Re: Substiotution of tabs with spaces...

2005-04-17 Thread Quokka
Peter Dyballa wrote: Am 15.04.2005 um 11:06 schrieb [EMAIL PROTECTED]: 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 ? Mark the whole buffer then M-x untabify RET OR

Re: Substiotution of tabs with spaces...

2005-04-17 Thread Peter Dyballa
Am 17.04.2005 um 22:05 schrieb Steinar Børmer: http://www.xemacs.org/Links/tutorials_toc.html > I think that is the new URL to the tutorials at the University in Duisburg: ftp://ftp.is.informatik.uni-duisburg.de/pub/src/emacs/tutorials/. I found it from the GNUS home page http://my.gnus.org/. -

Re: Substiotution of tabs with spaces...

2005-04-17 Thread Peter Dyballa
Am 16.04.2005 um 01:38 schrieb Pascal Bourguignon: You should have: (setq tab-always-indent t) in your ~/.emacs ! I think that's the default value. In GNU Emacs 22.0.50 and 21.3.50 it is t although I never set it. -- Greetings Pete -- Mit friedvollen Grüßen Pete Macht kaputt, was Afghan

Re: Substiotution of tabs with spaces...

2005-04-17 Thread Peter Dyballa
Am 17.04.2005 um 22:05 schrieb Steinar Børmer: Stefan Monnier wrote: | Look for Kai's tutorial on TAB and other key bindings. These can be hard to find, as most of the links I've come across are dead. (Kai, are you reading this?) However, I was able to locate them on the XEmacs web site: http://w

Re: Substiotution of tabs with spaces...

2005-04-17 Thread Steinar Børmer
Stefan Monnier wrote: | Look for Kai's tutorial on TAB and other key bindings. These can be hard to find, as most of the links I've come across are dead. (Kai, are you reading this?) However, I was able to locate them on the XEmacs web site: http://www.xemacs.org/Links/tutorials_toc.html > HT

Re: Substiotution of tabs with spaces...

2005-04-16 Thread Alan Mackenzie
[EMAIL PROTECTED] wrote on Fri, 15 Apr 2005 11:06:02 +0200: > Hi, > is there a smart way to replace all tabs with 3 spaces in a buffer edited > in c-mode > (both comments and code lines) Yes, but that might not be what you really want. Assuming you've got tab-width set to 3, a tab extends to the

Re: Substiotution of tabs with spaces...

2005-04-15 Thread Stefan Monnier
> Do have an idea why TAB is sometimes \t and sometimes a few spaces? This makes no sense. TAB is TAB and nothing more. What you probably mean is that the TAB *key* is bound to a command that doesn't always insert just a TAB character or just spaces, but sometimes one, sometimes the other, and so

Re: Substiotution of tabs with spaces...

2005-04-15 Thread Pascal Bourguignon
Peter Dyballa <[EMAIL PROTECTED]> writes: > Am 15.04.2005 um 15:15 schrieb Pascal Bourguignon: > > > 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 SP

Re: Substiotution of tabs with spaces...

2005-04-15 Thread Peter Dyballa
Am 15.04.2005 um 15:15 schrieb Pascal Bourguignon: 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 Yes, that'

Re: Substiotution of tabs with spaces...

2005-04-15 Thread Pascal Bourguignon
Peter Dyballa <[EMAIL PROTECTED]> writes: > Am 15.04.2005 um 11:06 schrieb [EMAIL PROTECTED]: > > > 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 ?

Re: Substiotution of tabs with spaces...

2005-04-15 Thread Peter Dyballa
Am 15.04.2005 um 11:06 schrieb [EMAIL PROTECTED]: 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 ? -- Greetings Pete Got Mole problems? Call Avogadro 6.02 x 10^23

Re: Substiotution of tabs with spaces...

2005-04-15 Thread Pascal Bourguignon
[EMAIL PROTECTED] writes: > Hi, > is there a smart way to replace all tabs with 3 spaces in a buffer edited > in c-mode > (both comments and code lines) C-x h M-| expand -3 RET -- __Pascal Bourguignon__ http://www.informatimago.com/ Nobody can fix the economy. Nobody can b