From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#25591: 25.1; M-% offers to repeat last search, but forgets that it was a "symbol" search Date: Wed, 01 Feb 2017 02:23:27 +0200 Organization: LINKOV.NET Message-ID: <87fujyzsiu.fsf@mail.linkov.net> References: 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 1485910176 14934 195.159.176.226 (1 Feb 2017 00:49:36 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 1 Feb 2017 00:49:36 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (x86_64-pc-linux-gnu) Cc: 25591@debbugs.gnu.org To: Eric Hanchrow Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 01 01:49:33 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1cYj76-0003eb-Kw for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Feb 2017 01:49:32 +0100 Original-Received: from localhost ([::1]:41991 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cYj7C-00030m-5h for geb-bug-gnu-emacs@m.gmane.org; Tue, 31 Jan 2017 19:49:38 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43219) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cYj6g-0002mP-DL for bug-gnu-emacs@gnu.org; Tue, 31 Jan 2017 19:49:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cYj6e-00051o-07 for bug-gnu-emacs@gnu.org; Tue, 31 Jan 2017 19:49:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54478) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cYj6d-00051g-Sh for bug-gnu-emacs@gnu.org; Tue, 31 Jan 2017 19:49:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cYj6c-0002I9-LF for bug-gnu-emacs@gnu.org; Tue, 31 Jan 2017 19:49:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Feb 2017 00:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25591 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25591-submit@debbugs.gnu.org id=B25591.14859101098727 (code B ref 25591); Wed, 01 Feb 2017 00:49:02 +0000 Original-Received: (at 25591) by debbugs.gnu.org; 1 Feb 2017 00:48:29 +0000 Original-Received: from localhost ([127.0.0.1]:52669 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cYj64-0002Gh-Nd for submit@debbugs.gnu.org; Tue, 31 Jan 2017 19:48:28 -0500 Original-Received: from sub3.mail.dreamhost.com ([69.163.253.7]:40687 helo=homiemail-a76.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cYj62-0002GY-Sd for 25591@debbugs.gnu.org; Tue, 31 Jan 2017 19:48:27 -0500 Original-Received: from homiemail-a76.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a76.g.dreamhost.com (Postfix) with ESMTP id C37E945807C; Tue, 31 Jan 2017 16:48:25 -0800 (PST) Original-Received: from localhost.linkov.net (m213-102-76-140.cust.tele2.ee [213.102.76.140]) (Authenticated sender: jurta@jurta.org) by homiemail-a76.g.dreamhost.com (Postfix) with ESMTPA id EBBA245807B; Tue, 31 Jan 2017 16:48:24 -0800 (PST) In-Reply-To: (Eric Hanchrow's message of "Tue, 31 Jan 2017 17:56:01 +0000") 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: 208.118.235.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:128854 Archived-At: > I don't know if this is a bug, but it's disappointing and inconvenient. > > Start emacs with -Q, and type into the *scratch* buffer these 10 charac= ters: > > I ate this > > Now do C-a to move point to the beginning of the line. > > Now replace the symbol "i" with "u": > > M-s _ i M-% u RET ! > > So far, so good: we are looking at > > U at this > > which is correct. > > Now try to repeat the replacement: > > C-a M-% RET ! > > This changes the "i" in "this" to a u, even though that "i" isn't an > independent symbol. I was hoping that it would do nothing. Thanks for the feature request, or you might call it a bug since it doesn't do what you expect. We discussed this for isearch a while ago, where the proposal was for =E2=80=98C-s C-s=E2=80=99 to reuse the search type from a previous se= arch. You rightfully want the same for =E2=80=98M-% RET=E2=80=99 to reuse a pre= vious replacement type. The main problem in https://debbugs.gnu.org/22479 was to find a suitable data structure complementary to the existing history lists to keep search/replacement meta-data as well.