From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "s. keeling" Newsgroups: gmane.emacs.help Subject: query-replace-regexp ... "Invalid repacement string '\.'" Date: Sun, 24 Sep 2006 23:56:41 GMT Message-ID: Reply-To: keeling@spots.ab.ca NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1159144883 28054 80.91.229.2 (25 Sep 2006 00:41:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 25 Sep 2006 00:41:23 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 25 02:41:14 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GReWV-0001nN-S1 for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Sep 2006 02:40:40 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GReWV-0004IP-DA for geh-help-gnu-emacs@m.gmane.org; Sun, 24 Sep 2006 20:40:39 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news4.google.com!news.glorb.com!newsfeed2.telusplanet.net!newsfeed.telus.net!edtnps82.POSTED!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help X-UCE: I forward UCE/spam with ALL headers to abuse@your.isp UNREAD! X-UCE2: Wow, are spammers ever stoopid! X-PGP-Key: GPG key: http://keyserver.noreply.org:11371/pks/lookup?op=vindex&search=0x48EE77B1AC94E4B7 User-Agent: slrn/0.9.8.1 (Debian) Original-Lines: 20 Original-NNTP-Posting-Host: 209.115.174.241 Original-X-Trace: edtnps82 1159142201 209.115.174.241 (Sun, 24 Sep 2006 17:56:41 MDT) Original-NNTP-Posting-Date: Sun, 24 Sep 2006 17:56:41 MDT Original-Xref: shelby.stanford.edu gnu.emacs.help:141973 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:37595 Archived-At: Hi. I was trying to make it easy on myself using q-r-r replacing '[^\]\.' (not a backslash, followed by a literal dot/period) with the string (sans quotes) '\.', essentially "escaping" every dot/period in the file. "M-x query-replace" had no trouble with it but M-x query-replace-regexp refused, spouting the error message in the subject. So how do you replace '.' with '\.' in emacs? Googling's (groups.google.com) turned up nothing useful (interesting, but not useful). I tried variations of '\\\.' (literal backslash followed by literal period) to no effect. Suggestions or pointers welcome. Thanks. -- Any technology distinguishable from magic is insufficiently advanced. (*) http://www.spots.ab.ca/~keeling Linux Counter #80292 - - http://www.faqs.org/rfcs/rfc1855.html Please, don't Cc: me. Spammers! http://www.spots.ab.ca/~keeling/emails.html