Re: Different behaviour between M-x replace-regexp in function and in echo window

2005-04-21 Thread Peter Dyballa
Am 21.04.2005 um 11:35 schrieb [EMAIL PROTECTED]: If I use the same replace-regexp "\(//\)[[:space:]] *" "\1 " in a function no replacing is done - Replaced 0 occurences - (defun comment-formatting(start end) (interactive "*r") (save-excursion (save-restriction (narrow-to-region start

Re: Different behaviour between M-x replace-regexp in function and in echo window

2005-04-21 Thread David Kastrup
[EMAIL PROTECTED] writes: > If I use M-x replace-regexp followed by > "\(//\)[[:space:]] *" "\1 " > the behaviour is correct - replacing any space > between '//' ed comment text > Ex. > //___Text... => //_Text... > where '_' is a space > > If I use the same > replace-regexp "\(//\)[[:space:]] *"