From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#22479: 25.0.50; isearch and query-replace histories do not remember if we were looking for symbols Date: Thu, 28 Jan 2016 09:10:33 +0100 Message-ID: <87powm6s5i.fsf@gmx.net> References: <87zivq8xp2.fsf@secretsauce.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1453968699 21751 80.91.229.3 (28 Jan 2016 08:11:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Jan 2016 08:11:39 +0000 (UTC) Cc: 22479@debbugs.gnu.org To: Dima Kogan Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 28 09:11:28 2016 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 1aOhfd-0002ju-D7 for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Jan 2016 09:11:13 +0100 Original-Received: from localhost ([::1]:54434 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOhfc-000298-K0 for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Jan 2016 03:11:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51638) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOhfV-000263-Uc for bug-gnu-emacs@gnu.org; Thu, 28 Jan 2016 03:11:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aOhfR-0000Fy-U3 for bug-gnu-emacs@gnu.org; Thu, 28 Jan 2016 03:11:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50856) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOhfR-0000Fs-QQ for bug-gnu-emacs@gnu.org; Thu, 28 Jan 2016 03:11:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aOhfR-00041q-L5 for bug-gnu-emacs@gnu.org; Thu, 28 Jan 2016 03:11:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Jan 2016 08:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22479 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22479-submit@debbugs.gnu.org id=B22479.145396864715463 (code B ref 22479); Thu, 28 Jan 2016 08:11:01 +0000 Original-Received: (at 22479) by debbugs.gnu.org; 28 Jan 2016 08:10:47 +0000 Original-Received: from localhost ([127.0.0.1]:39076 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aOhfD-00041L-Cu for submit@debbugs.gnu.org; Thu, 28 Jan 2016 03:10:47 -0500 Original-Received: from mout.gmx.net ([212.227.17.20]:49252) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aOhfA-000416-Sf for 22479@debbugs.gnu.org; Thu, 28 Jan 2016 03:10:45 -0500 Original-Received: from rosalinde ([89.245.82.29]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0MbOrg-1ahKRT41I4-00In46; Thu, 28 Jan 2016 09:10:36 +0100 In-Reply-To: <87zivq8xp2.fsf@secretsauce.net> (Dima Kogan's message of "Wed, 27 Jan 2016 14:27:53 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-Provags-ID: V03:K0:vq1mQa4gUxjd66w3E/5kwt34+Y2A1okwA64Z473y4/6j9APTKwu Yt2i3mGf4fI31dhE52V4ODzGo3SgswFpsxMJJWtmYQWLq2lwOPmHikzcPMq+rSy9VeeBu2G vkbBM9Nujn6C6KSirUDSGvf5HnkW3XQ2vPywjIqTuHVjAXDn1neCPTN4lhZUlZu6jl+CQvD 9B0KEpHIhXk8+RjlrqQng== X-UI-Out-Filterresults: notjunk:1;V01:K0:DYr3Sufu+Ro=:PhzdRknTyuxxtd2MSFXvD1 +TZqtzs6b4Yx9oetc4/9fxYqDluF4J6gdFrudiLHcPCzR4o6M3raZngO349y0buQwZGHAxNOJ KOrUbrpyXDpoEpOAZElLJQb12bKkeZaBbL2IJmEh1o27CmrBo6hD+sLhWb2RVannFqlGQRasV FnCuzTMvi3pm9iliwGzpSISfWYBO/hCGZtJ+8TCiTdbqI5kaNV5Kt7sAFTYRl+hPOJBUoRz/i e9yYkruuolP7fTHDXCaYOoZ9/CkTwWEup5pDJtXWOBIjwGdMM8e+BQeHD5k5B7Hh7JObl7X4p 37QHLJ1Dp6f9HqIKvHgHzjWRxIBMhSxDmNX5x5/HVp3Ph/HSbDc1o7H5R9ywoaEKWWSNZ7X4W f8DYyy+ZwAkCP1Y2sJzlmfxPTsm9AjOXK02Wtt9QbxTl0ZK0urYKlWjvz4Rr4EHAvTRHz/rTw iFrfQZ9pNN4uIkukk0isveZfLThLklpVjRRbfIfYdUSYdqlzcBRnx2MTXRKJEmHHZAFWCZhd+ DJHnEdR+hxibCtS+Gvv/S0Fja6S9F78Ok3gpVuGtZSHM13pYC/6M1+8M9wzfMyGJJI9WhZe90 wRvWky6q4lULwcGWmoZPpR8wZsbLntIvRDJ//vjUn2IR4BlY1TdfYBTMnZnWGby81HjDeormY 1SR4RqRu8zhXob2dkeK3NlGQYlusBBd4CGNfY/Mvv59DbjPVXMCotz4iTczNH+kQpVHTOmtoT 209Kfx9Yl49gnB9WAIT+LuEDK3ZRInngx2KNSx0g5kRwg2zkd4fLiwY+YhqrJjBhrfQxd7ZQ 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:112048 Archived-At: On Wed, 27 Jan 2016 14:27:53 -0800 Dima Kogan wrote: > Hi. It is possible to look for a symbol, and for this information to be > lost when repeating a search. For instance, say I have this buffer: > > ======= > a b c > ab bc > ======= > > 1. I put the point on the first 'a' > > 2. M-s . (search for symbol at point). This find a symbol 'a', so the > 'a' in 'ab' doesn't match > > 3. C-g (quit the search) > > 4. C-s C-s (repeat previous search). Here emacs remembers we looked for > 'a', but not that it was a symbol, so it finds the 'a' in 'ab' even > though it should not I can't reproduce this with -Q in emacs-25 (revision 5293d1b); doing step 4 displays the message "[No previous search string]". But if prior to step 1 I do `C-s b RET C-a' and then continue with your recipe, doing step 4 makes "b" the search string. So I guess you had searched for "a" before doing `M-s .'. > > A similar sequence is possible with query-replace: > > 1. Point on 'a' > > 2. M-s . > > 3. C-M-%, 'asdf' to replace the symbol 'a' with 'asdf' > > 4. C-g (quit before replacing anything) > > 5. C-M-% (repeat last replacement. The symbol-ness of 'a' was forgotten) This I can reproduce with -Q. Steve Berman