From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Angelo Graziosi Newsgroups: gmane.emacs.bugs Subject: bug#20975: Replacing text add also the comma Date: Sat, 04 Jul 2015 00:15:35 +0200 Message-ID: <55970987.1060809@alice.it> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1435961786 24950 80.91.229.3 (3 Jul 2015 22:16:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Jul 2015 22:16:26 +0000 (UTC) To: 20975@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 04 00:16:14 2015 Return-path: Envelope-to: geb-bug-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 1ZB9Fk-0001vO-RR for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Jul 2015 00:16:12 +0200 Original-Received: from localhost ([::1]:42711 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZB9Fj-00043f-VF for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Jul 2015 18:16:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47808) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZB9Fg-00043Y-23 for bug-gnu-emacs@gnu.org; Fri, 03 Jul 2015 18:16:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZB9Fa-0000J2-Qd for bug-gnu-emacs@gnu.org; Fri, 03 Jul 2015 18:16:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37578) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZB9Fa-0000Iy-Nz for bug-gnu-emacs@gnu.org; Fri, 03 Jul 2015 18:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZB9Fa-0000Fg-4y for bug-gnu-emacs@gnu.org; Fri, 03 Jul 2015 18:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Angelo Graziosi Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Jul 2015 22:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 20975 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.1435961760955 (code B ref -1); Fri, 03 Jul 2015 22:16:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Jul 2015 22:16:00 +0000 Original-Received: from localhost ([127.0.0.1]:39024 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZB9FX-0000FK-Vk for submit@debbugs.gnu.org; Fri, 03 Jul 2015 18:16:00 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34233) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZB9FV-0000F7-FO for submit@debbugs.gnu.org; Fri, 03 Jul 2015 18:15:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZB9FP-0000DL-F0 for submit@debbugs.gnu.org; Fri, 03 Jul 2015 18:15:52 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:42982) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZB9FP-0000DH-Bz for submit@debbugs.gnu.org; Fri, 03 Jul 2015 18:15:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47736) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZB9FO-00043R-8c for bug-gnu-emacs@gnu.org; Fri, 03 Jul 2015 18:15:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZB9FK-0000AZ-79 for bug-gnu-emacs@gnu.org; Fri, 03 Jul 2015 18:15:50 -0400 Original-Received: from smtp201.alice.it ([82.57.200.97]:23342) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZB9FJ-00009Q-UY for bug-gnu-emacs@gnu.org; Fri, 03 Jul 2015 18:15:46 -0400 Original-Received: from [192.168.1.100] (79.19.231.149) by smtp201.alice.it (8.6.060.43) (authenticated as angelo.graziosi@alice.it) id 555620A90813A3BE for bug-gnu-emacs@gnu.org; Sat, 4 Jul 2015 00:15:43 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:104663 Archived-At: Suppose one has a file with this text $ cat foo.log abcd r8 efg foo(a_r8,b_r8,c_r8) Try to replace 'r8' with 'DP', i.e. in the minibuffer, M-% Query replace: r8 Query replace r8 with: DP The 'r8' on the first row is replaced correctly while on the second row also the comma is added to the text 'r8' to be replaced. foo.log becomes $ cat foo.log abcd DP efg foo(a_DPb_DPc_DP) Soppose, now, that foo(a_r8,b_r8,c_r8) is a Fortran/C/C++ routine... Is this intentional or a bug? I discovered this with recent (master) builds on MSYS2-MINGW64 (64bit Windows native). I suspect this also regards the builds on other systems.. Angelo