From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#36328: 26.2; Args out of range on search-and-replace of *.cc file Date: 22 Jun 2019 13:25:49 -0000 Organization: muc.de e.V. Message-ID: <20190622132549.84518.qmail@mail.muc.de> References: Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="35521"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: tin/2.4.2-20171224 ("Lochhead") (UNIX) (FreeBSD/11.2-RELEASE-p9 (amd64)) Cc: 36328@debbugs.gnu.org To: Jayden Navarro Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 22 15:26:22 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1heg29-00092g-TP for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Jun 2019 15:26:22 +0200 Original-Received: from localhost ([::1]:40780 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1heg21-00026K-LN for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Jun 2019 09:26:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43187) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1heg1w-000265-1z for bug-gnu-emacs@gnu.org; Sat, 22 Jun 2019 09:26:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1heg1t-0003NT-Sx for bug-gnu-emacs@gnu.org; Sat, 22 Jun 2019 09:26:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37726) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1heg1s-0003Hm-Ak for bug-gnu-emacs@gnu.org; Sat, 22 Jun 2019 09:26:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1heg1r-0000VP-Us for bug-gnu-emacs@gnu.org; Sat, 22 Jun 2019 09:26:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Jun 2019 13:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36328 X-GNU-PR-Package: emacs Original-Received: via spool by 36328-submit@debbugs.gnu.org id=B36328.15612099561925 (code B ref 36328); Sat, 22 Jun 2019 13:26:01 +0000 Original-Received: (at 36328) by debbugs.gnu.org; 22 Jun 2019 13:25:56 +0000 Original-Received: from localhost ([127.0.0.1]:51270 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1heg1k-0000Uz-9N for submit@debbugs.gnu.org; Sat, 22 Jun 2019 09:25:56 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:40249 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1heg1h-0000Up-Sg for 36328@debbugs.gnu.org; Sat, 22 Jun 2019 09:25:54 -0400 Original-Received: (qmail 84519 invoked by uid 3782); 22 Jun 2019 13:25:49 -0000 In-Reply-To: X-Newsgroups: gnu.emacs.bug X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.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" Xref: news.gmane.org gmane.emacs.bugs:161017 Archived-At: Hello, Jayden. In article you wrote: > [-- text/plain, encoding 7bit, charset: UTF-8, 97 lines --] [ .... ] > Fill a *.cc file with 100 lines of any string (e.g. "bar"). At line 101 > write a unique string (e.g. "foo"). Does your file look like: bar bar bar ... ... bar foo ? Or does it look like: "bar" "bar" "bar" ... ... "bar" "foo" ? > Close the file and reopen (emacs -Q). OK. > and perform search-and-replace on "foo" (replacing with any other string). What, precisely, did you do to attempt this "search-and-replace"? With emacs-26.2, after emacs -Q, I did C-x C-f test.cc , followed by M-% foo FOO , in both possibilities for the file (see above), yet could not reproduce the error. The replacement command simply worked for me. > At this point you should see "Args out of range: #, 0, 1". This is what I don't see. :-( At least, not yet. [ .... ] -- Alan Mackenzie (Nuremberg, Germany).