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
[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:]] *"