From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?0JDQvdC00YDQtdC5INCf0LDRgNCw0LzQvtC90L7Qsg==?= Newsgroups: gmane.emacs.help Subject: re-builder vs replace-regexp Date: Thu, 24 Nov 2011 22:24:17 +0300 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1322164341 27197 80.91.229.12 (24 Nov 2011 19:52:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 24 Nov 2011 19:52:21 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 24 20:52:17 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RTfLE-0007yy-VE for geh-help-gnu-emacs@m.gmane.org; Thu, 24 Nov 2011 20:52:17 +0100 Original-Received: from localhost ([::1]:35697 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTfLE-00047g-G8 for geh-help-gnu-emacs@m.gmane.org; Thu, 24 Nov 2011 14:52:16 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:50603) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTeup-0002AO-Oa for help-gnu-emacs@gnu.org; Thu, 24 Nov 2011 14:25:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RTeup-0000Bg-0u for help-gnu-emacs@gnu.org; Thu, 24 Nov 2011 14:24:59 -0500 Original-Received: from mail-qy0-f169.google.com ([209.85.216.169]:36765) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTeuo-0000Ba-Uz for help-gnu-emacs@gnu.org; Thu, 24 Nov 2011 14:24:58 -0500 Original-Received: by qyg14 with SMTP id 14so349395qyg.0 for ; Thu, 24 Nov 2011 11:24:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; bh=vP0ywBAFxu/MIuX15WGXmKCeTDZkXwrbCqeQNFV4qPY=; b=qFOROY+VAWf5QRnVRPWX1MSzlDpqiIa7l6bt5PFbiSIdXQP3ae9/PJwteV2eR6T2Ol lhRE5N4l9yxp+ZmRvIgj530QJqfEHtovPytOqTZ+2cZMamQY8znVGS13zlUxEPJgBpBL hzaO7r9iZuiK7CR+zkxwIC8KhxfpX1OHzItTs= Original-Received: by 10.229.63.202 with SMTP id c10mr3427791qci.156.1322162698295; Thu, 24 Nov 2011 11:24:58 -0800 (PST) Original-Received: by 10.229.34.83 with HTTP; Thu, 24 Nov 2011 11:24:17 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.216.169 X-Mailman-Approved-At: Thu, 24 Nov 2011 14:52:13 -0500 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:83037 Archived-At: Re-Builder is a great tool. It allows interactive search with incredibly handy highlight, subexpression mode, etc. However, one often needs not just search by regexp, but also perform regexp replace. I thought reb-copy command would help me to pass my regexp to replace-regexp. But replace-regexp doesn't understand the result of reb-copy, i.e. for default *scratch* buffer the following regexp works in Re-Builder: "\\(file\\)" but to make it suitable for search-forward-regexp/replace-regexp I need to manually adjust it to \(file\) I find it really inconvenient (the larger regexp the more inconvenient). Should I report a bug, or I'm missing something basic? I'm running GNU Emacs 23.3.1. Best wishes, Andrey Paramonov