From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "mailpitches@email.com" Newsgroups: gmane.emacs.help Subject: Emacs regexp problem Date: Tue, 29 Jan 2008 10:00:52 -0800 (PST) Organization: http://groups.google.com Message-ID: <79627687-f8b7-42f7-a6c4-230d6f525a53@e6g2000prf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1201642216 28680 80.91.229.12 (29 Jan 2008 21:30:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Jan 2008 21:30:16 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 29 22:30:36 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JJy2N-0008QY-Mr for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Jan 2008 22:30:35 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JJy1w-0001Ef-M6 for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Jan 2008 16:30:08 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!e6g2000prf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 21 Original-NNTP-Posting-Host: 64.175.21.46 Original-X-Trace: posting.google.com 1201629652 10120 127.0.0.1 (29 Jan 2008 18:00:52 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 29 Jan 2008 18:00:52 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: e6g2000prf.googlegroups.com; posting-host=64.175.21.46; posting-account=qWFMIwoAAAAREebX17vgru11bYDAgra7 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-us) AppleWebKit/523.10.6 (KHTML, like Gecko) Version/3.0.4 Safari/523.10.6, gzip(gfe), gzip(gfe) Original-Xref: shelby.stanford.edu gnu.emacs.help:155680 X-Mailman-Approved-At: Tue, 29 Jan 2008 16:29:52 -0500 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:51070 Archived-At: X-No-Archive:yes Hello, I'm doing an emacs replace-regexp and the regexp behaves differently from how it behaves in Python, and also differently from how I expect. I'm trying to add quotes around the parameter in a function call. I.e.: func(param) should be converted to func('param') I use the following command: M-x replace-regexp [enter] get\((.*)\) [enter] get('\1')) [enter] and the result is func(param) is converted to func('(param)') Why are those extra parentheses appearing in there; is this an error on emacs' part? Thanks