From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "B. T. Raven" Newsgroups: gmane.emacs.help Subject: regexp hell Date: Fri, 28 Dec 2012 00:57:05 -0600 Organization: NewsGuy - Unlimited Usenet $23.95 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1356678018 12607 80.91.229.3 (28 Dec 2012 07:00:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Dec 2012 07:00:18 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 28 08:00:34 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ToTvj-0003aA-GS for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Dec 2012 08:00:31 +0100 Original-Received: from localhost ([::1]:53452 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ToTvR-0006vM-Nm for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Dec 2012 02:00:13 -0500 X-Received: by 10.66.88.129 with SMTP id bg1mr5974957pab.46.1356677877822; Thu, 27 Dec 2012 22:57:57 -0800 (PST) Original-Path: usenet.stanford.edu!kr7no995285pbb.0!news-out.google.com!s9ni67335pbb.0!nntp.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!spln!extra.newsguy.com!newsp.newsguy.com!news4 Original-Newsgroups: gnu.emacs.help Original-Lines: 14 Original-NNTP-Posting-Host: p7429e8a20a003a7a85c7a48e260c679f3389aacbc63de7e1.newsdawg.com User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 X-Received-Bytes: 1129 Original-Xref: usenet.stanford.edu gnu.emacs.help:196016 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:88329 Archived-At: 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