From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: zhanghj Newsgroups: gmane.emacs.devel Subject: query-replace-regexp: Can't use \0 in TO-STRING Date: Sat, 06 May 2017 08:48:01 +0800 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1494043879 28845 195.159.176.226 (6 May 2017 04:11:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 6 May 2017 04:11:19 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 06 06:11:14 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d6r3q-0007NO-6R for ged-emacs-devel@m.gmane.org; Sat, 06 May 2017 06:11:14 +0200 Original-Received: from localhost ([::1]:49913 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d6r3s-0000gz-0v for ged-emacs-devel@m.gmane.org; Sat, 06 May 2017 00:11:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50963) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d6ntY-0006aX-CB for emacs-devel@gnu.org; Fri, 05 May 2017 20:48:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d6ntV-0005J8-8p for emacs-devel@gnu.org; Fri, 05 May 2017 20:48:24 -0400 Original-Received: from mail-pf0-x231.google.com ([2607:f8b0:400e:c00::231]:33265) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d6ntV-0005HR-30 for emacs-devel@gnu.org; Fri, 05 May 2017 20:48:21 -0400 Original-Received: by mail-pf0-x231.google.com with SMTP id q20so9477038pfg.0 for ; Fri, 05 May 2017 17:48:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=BHj4libFgc9W02RTgu3Pb9639sflvIV+nLw7rT7G9Hk=; b=TrHT/XhIfBSGhCvvuRhpX1tlnBrV64TmOCAY+SyRSGuFM6T4gbU2zHK1fGD+wggaEj rYUYRjC7e3A6q7I4MHfrxMM7iWhXGL9etabo0EGcjVp9skPqF5OP5+LAW3U2sMLogBhO MruQiXf4mncWomQ3CQqaOS4OhZ4cRP0aJxM31A5XQCWeaHnSsolOi7+lRHv+t4J1KVam UM1bW2W96qcKrqMNFT9WGm9uqj6VLY1b2R4jxLyGc3/fXh3twlEZh6wMADl1Fa7MJA4i AWLuf77AMV3AF3U7TUhK+v8k4LWOX3i/ow7Y9zGegMPvHKMMkVh7ijrxr3xPWyadHERv Ny5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=BHj4libFgc9W02RTgu3Pb9639sflvIV+nLw7rT7G9Hk=; b=N3uwenVt66fDdWl9ZCpp6D9+Tgsb9LMSR1K7CUKtOUHLkBjBPodTjmEHKvgWalmeZo XjHgSK1p78TROgX3cjl778qyDGp8d6B6yVyV66YHn/eOyqTYE2mc8KgcPMZ1ZDFvRIRK cDlmwRI9RwwLlwScOpVNIbAYEHquHbNGSNSkLcmWHI9oqZIDLeCos0hwbcK4FmmTRtPP 981Ikf/tjuIgUBdgYsSY7azbgUZUcDotI1neNYvd6MFjiGxP7ibHCrRrFkqdR8YURfp4 JdfBLEf83SRNvPOpfYTRLVpDrzoNsgopGqfht+++ss3QqxPEq2ac+b8IV+fS2Q4rzt2m q49w== X-Gm-Message-State: AN3rC/4GvN5H+1Peufa/Jc4z1e9CnxnoXGzoE6nTqJcVOppkBd42zwZ/ BDmCkMqyKZhxCKHT X-Received: by 10.84.197.3 with SMTP id m3mr69403887pld.3.1494031697344; Fri, 05 May 2017 17:48:17 -0700 (PDT) Original-Received: from jundeMac.local ([58.100.32.43]) by smtp.gmail.com with ESMTPSA id x4sm7608203pgc.65.2017.05.05.17.48.13 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 05 May 2017 17:48:14 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::231 X-Mailman-Approved-At: Sat, 06 May 2017 00:11:03 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:214598 Archived-At: The doc says: In TO-STRING, =E2=80=98\&=E2=80=99 or =E2=80=98\0=E2=80=99 stands for whate= ver matched the whole of REGEXP, and =E2=80=98\N=E2=80=99 (where N is a digit) stands for whatever m= atched the Nth =E2=80=98\(...\)=E2=80=99 (1-based) in REGEXP. The =E2=80=98\(...\= )=E2=80=99 groups are counted from 1. But when using \0, emacs gives the following error message:=20 match-substitute-replacement: Invalid use of =E2=80=98\=E2=80=99 in replace= ment text Using \& is OK.