From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Theodore Ehrenborg Newsgroups: gmane.emacs.bugs Subject: bug#36696: 26.2; query-replace error Date: Sat, 20 Jul 2019 11:38:14 -0400 Message-ID: References: <83ef2lt4bi.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000c7f5ff058e1ea300" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="268216"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 36696@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 20 17:58:06 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 1horkM-0017fv-8D for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Jul 2019 17:58:06 +0200 Original-Received: from localhost ([::1]:51788 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1horkL-0007gl-8Q for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Jul 2019 11:58:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47547) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1horkI-0007dd-Tp for bug-gnu-emacs@gnu.org; Sat, 20 Jul 2019 11:58:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1horkH-00057H-T7 for bug-gnu-emacs@gnu.org; Sat, 20 Jul 2019 11:58:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48988) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1horkH-00057C-O6 for bug-gnu-emacs@gnu.org; Sat, 20 Jul 2019 11:58:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1horkH-00018M-MA for bug-gnu-emacs@gnu.org; Sat, 20 Jul 2019 11:58:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Theodore Ehrenborg Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 20 Jul 2019 15:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36696 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: unreproducible Original-Received: via spool by 36696-submit@debbugs.gnu.org id=B36696.15636382314269 (code B ref 36696); Sat, 20 Jul 2019 15:58:01 +0000 Original-Received: (at 36696) by debbugs.gnu.org; 20 Jul 2019 15:57:11 +0000 Original-Received: from localhost ([127.0.0.1]:57806 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1horjS-00016j-AB for submit@debbugs.gnu.org; Sat, 20 Jul 2019 11:57:11 -0400 Original-Received: from mail-lj1-f173.google.com ([209.85.208.173]:41863) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1horRp-0000bn-GU for 36696@debbugs.gnu.org; Sat, 20 Jul 2019 11:38:58 -0400 Original-Received: by mail-lj1-f173.google.com with SMTP id d24so33495357ljg.8 for <36696@debbugs.gnu.org>; Sat, 20 Jul 2019 08:38:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=7E9bTR9hO3np+BPzGuox1q3mM2RxLGO2C2XoifqwgPU=; b=iYAI9IGXjO8qq7jR8nOHLQTSiR8klaTUXghmOwUm/V5+tOP6ElxXjG5zbnp5Yb8ea8 St623JnQr6obcd1jjVzpUd0QUTh9NOnmL7Q0szMNIutKtCq9niSX/p2rx/NXtAorg16+ wsXwF+6JrJ5Uyzo6lwadqnEztXqdwvjyWyunNH71U8g7822Gg27D/QiNN04PmuLrYS4q NHTw3bfct/BIjqf/lpm25zNvRLkEEO6wUe0+x5hE9qPYj2KWb1Merxk65G7oe5qGI7W0 kwrVXoFCffW8iPuN4pUE88LAee8+ZmdM0D1JHjV+Jr6rnu2xyXGd1LDwLVNsISlvIKlq yV6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=7E9bTR9hO3np+BPzGuox1q3mM2RxLGO2C2XoifqwgPU=; b=OBI8xlQQQBMMPV8rMZTI4NxF61y0NG68V9OniPnZG7G6uJ8ynxMMf2r3xFmEbNvWaw jpwZznkIu1AbwpTZi8PdC0nMhQDj7xOySAY1MIs6vKPHoAG4gncJOQZLeEz6Op8wY/Xz rNN8wqA6EiMPr0OiNzNFMxaFDRkTOdqkxsEFmqCAnGNCcxwd0B2EmgcppWYeyfiZ50ZL Y2eo+j4xjtr77j1zJZivp7sxT2n/wRxPuNcbuT19QR65rO/1A7c7KojTVqbQFynOmh+7 jIG80WNTCt9mwfpS5hJySPUssqp06e2vwxNhSP4AyxqFb3A0Ic6mavAPz9O9vy5pY70N 194A== X-Gm-Message-State: APjAAAXHwuYLWJ+5CXDWDHE0dDqq5nbX+2f7U7zSoJcK52ZSNvnM7UeV gkqhOK2S9gw1l8bxvOsVX3z2qO+uiQpTEIFCqHw= X-Google-Smtp-Source: APXvYqz+f57r9R15YMRV6A84GcxfXPpyuUzRcexhjgafcISbwV7jFAWCuKPAGkShRy0XjOhow/8EI5f3JBz6d0pI8hM= X-Received: by 2002:a2e:87d0:: with SMTP id v16mr30949859ljj.24.1563637131505; Sat, 20 Jul 2019 08:38:51 -0700 (PDT) In-Reply-To: <83ef2lt4bi.fsf@gnu.org> X-Mailman-Approved-At: Sat, 20 Jul 2019 11:57:08 -0400 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:163477 Archived-At: --000000000000c7f5ff058e1ea300 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thank you for your help. I cannot reproduce the error in my computer's original version of Emacs, 22.1.1. I don't know why. What OS and Tex version did you use when trying to replicate the error? If the error cannot be replicated on a computer using the latest versions of Emacs and MacTex, neither installed with Homebrew, then I agree that Homebrew is somehow causing the issue. Best regards, Theodore Ehrenborg Den l=C3=B6r 20 juli 2019 kl 05:59 skrev Eli Zaretskii : > tags 36696 unreproducible > thanks > > > From: Theodore Ehrenborg > > Date: Tue, 16 Jul 2019 16:22:44 -0400 > > > > Type emacs -Q > > Use C-x C-f to open a new file called test.tex > > Type the following three lines in test.tex: > > \foo > > foo > > foo > > (The first line is '\foo', not 'foo') > > Then go to the beginning of the file with M-< > > and use M-% to begin query-replace > > Try to replace 'foo' with 'foo'. > > When prompted for the first line, > > type 'y' to replace. > > Then emacs returns an error: > > Args out of range: #, 0, 1 > > > > I'm using the most recent installation of MacTex and emacs. > > Both were installed with Homebrew. > > I cannot reproduce this in Emacs 26.2, 26.2.90, and 27 built from > sources. > > Maybe it's specific to MacTex and Emacs installed with Homebrew. > --000000000000c7f5ff058e1ea300 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thank you for your help.

I c= annot reproduce the error in my computer's original version of Emacs, 2= 2.1.1. I don't know why.

What OS and Tex v= ersion did you use when trying to replicate the error?

If the error cannot be replicated on a computer using t= he latest versions of Emacs and MacTex, neither installed with Homebrew, th= en I agree that Homebrew is somehow causing the issue.

=
Best regards,
Theodore Ehrenborg

Den l=C3=B6r 20 ju= li 2019 kl 05:59 skrev Eli Zaretskii <el= iz@gnu.org>:
tags 36696 unreproducible
thanks

> From: Theodore Ehrenborg <theodore.ehrenborg@gmail.com>
> Date: Tue, 16 Jul 2019 16:22:44 -0400
>
> Type emacs -Q
> Use C-x C-f to open a new file called test.tex
> Type the following three lines in test.tex:
> \foo
> foo
> foo
> (The first line is '\foo', not 'foo')
> Then go to the beginning of the file with M-<
> and use M-% to begin query-replace
> Try to replace 'foo' with 'foo'.
> When prompted for the first line,
> type 'y' to replace.
> Then emacs returns an error:
> Args out of range: #<buffer test.tex>, 0, 1
>
> I'm using the most recent installation of MacTex and emacs.
> Both were installed with Homebrew.

I cannot reproduce this in Emacs 26.2, 26.2.90, and 27 built from
sources.

Maybe it's specific to MacTex and Emacs installed with Homebrew.
--000000000000c7f5ff058e1ea300--