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: Tue, 14 Feb 2017 02:00:01 +0200 Organization: LINKOV.NET Message-ID: <87bmu5d4la.fsf@localhost> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1487031021 20770 195.159.176.226 (14 Feb 2017 00:10:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 14 Feb 2017 00:10:21 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.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 Tue Feb 14 01:10:14 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 1cdQhB-0004gn-P2 for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 Feb 2017 01:10:14 +0100 Original-Received: from localhost ([::1]:60188 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cdQhE-00049p-7P for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Feb 2017 19:10:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58514) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cdQh3-00049a-Fz for bug-gnu-emacs@gnu.org; Mon, 13 Feb 2017 19:10:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cdQh0-0002lt-LS for bug-gnu-emacs@gnu.org; Mon, 13 Feb 2017 19:10:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40831) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cdQh0-0002lp-If for bug-gnu-emacs@gnu.org; Mon, 13 Feb 2017 19:10:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cdQh0-0006J4-DP for bug-gnu-emacs@gnu.org; Mon, 13 Feb 2017 19:10:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 14 Feb 2017 00:10: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.148703097024180 (code B ref 25591); Tue, 14 Feb 2017 00:10:02 +0000 Original-Received: (at 25591) by debbugs.gnu.org; 14 Feb 2017 00:09:30 +0000 Original-Received: from localhost ([127.0.0.1]:39026 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cdQgT-0006Hw-Os for submit@debbugs.gnu.org; Mon, 13 Feb 2017 19:09:29 -0500 Original-Received: from sub3.mail.dreamhost.com ([69.163.253.7]:39398 helo=homiemail-a39.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cdQgT-0006Ho-41 for 25591@debbugs.gnu.org; Mon, 13 Feb 2017 19:09:29 -0500 Original-Received: from homiemail-a39.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a39.g.dreamhost.com (Postfix) with ESMTP id E37C915006D; Mon, 13 Feb 2017 16:09:27 -0800 (PST) Original-Received: from localhost.linkov.net (m83-191-240-183.cust.tele2.ee [83.191.240.183]) (Authenticated sender: jurta@jurta.org) by homiemail-a39.g.dreamhost.com (Postfix) with ESMTPA id 1FAF4150069; Mon, 13 Feb 2017 16:09:26 -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:129327 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 characters: > > 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. But what if you mistakenly invoked the replacement in wrong mode, and want to repeat the same replacement in the right one? E.g. first entered replacement strings in regexp replacement mode: C-M-% i RET u RET and then realized you want apply the same replacement strings in word mode: C-u M-% RET Should it perform word replacement as explicitly stated by the prefix arg C-u, or use a previous replacement type (in this case, regexp replacement) remembered in the replacement history?