help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

regexp hell


From: B. T. Raven
Subject: regexp hell
Date: Fri, 28 Dec 2012 00:57:05 -0600
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120907 Thunderbird/15.0.1

I am trying to byte-compile my .emacs for the first time and I see the
complaint "replace-string is to be used interactively..." or something.
I am using the form:

  (replace-string "\\" "\\\\" nil (point-min) (point-max))

in a function and it seems to work but I can't make any equivalent re's
work in re-search-forward (the suggested equivalent  to be used in a
lisp programm). I can't get past the "trailing backslash" error. Is
there something kosher for the above replace-string form?

Thanks,

Ed


reply via email to

[Prev in Thread] Current Thread [Next in Thread]