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 ?
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. _______________________________________________ Help-gnu-emacs mailing list Help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs