[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Different behaviour between M-x replace-regexp in function and in ec
From: |
Peter Tury |
Subject: |
Re: Different behaviour between M-x replace-regexp in function and in echowindow |
Date: |
Thu, 21 Apr 2005 13:21:08 GMT |
Hi,
consider this alternative:
(defun comment-formatting(start end)
(interactive "*r")
(save-excursion
(goto-char start)
(while (search-forward "//" end t)
(just-one-space))))
It inserts a SPC if needed. Hm?
Br,
P
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Different behaviour between M-x replace-regexp in function and in echowindow,
Peter Tury <=