From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov 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: Sun, 31 Jan 2016 02:04:58 +0200 Organization: LINKOV.NET Message-ID: <87io2apqad.fsf@mail.linkov.net> References: <87zivq8xp2.fsf@secretsauce.net> <87r3h2boyj.fsf@mail.linkov.net> <89D2C9D3-7CA3-49A8-9BFC-CE455C91A8A8@secretsauce.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1454199455 26446 80.91.229.3 (31 Jan 2016 00:17:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 31 Jan 2016 00:17:35 +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 Sun Jan 31 01:17:24 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 1aPfhh-0004n1-3J for geb-bug-gnu-emacs@m.gmane.org; Sun, 31 Jan 2016 01:17:21 +0100 Original-Received: from localhost ([::1]:40153 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPfhg-0005Ks-7f for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Jan 2016 19:17:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46234) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPfhU-00055V-BK for bug-gnu-emacs@gnu.org; Sat, 30 Jan 2016 19:17:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aPfhO-0003Yk-BX for bug-gnu-emacs@gnu.org; Sat, 30 Jan 2016 19:17:08 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54188) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPfhO-0003Ye-9D for bug-gnu-emacs@gnu.org; Sat, 30 Jan 2016 19:17:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aPfhO-0002Lg-6J for bug-gnu-emacs@gnu.org; Sat, 30 Jan 2016 19:17: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: Sun, 31 Jan 2016 00:17:02 +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.14541993748946 (code B ref 22479); Sun, 31 Jan 2016 00:17:02 +0000 Original-Received: (at 22479) by debbugs.gnu.org; 31 Jan 2016 00:16:14 +0000 Original-Received: from localhost ([127.0.0.1]:42404 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aPfgc-0002KE-HH for submit@debbugs.gnu.org; Sat, 30 Jan 2016 19:16:14 -0500 Original-Received: from sub3.mail.dreamhost.com ([69.163.253.7]:44173 helo=homiemail-a101.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aPfga-0002Jz-FR for 22479@debbugs.gnu.org; Sat, 30 Jan 2016 19:16:12 -0500 Original-Received: from homiemail-a101.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a101.g.dreamhost.com (Postfix) with ESMTP id BD87A117E06A; Sat, 30 Jan 2016 16:16:11 -0800 (PST) Original-Received: from localhost.linkov.net (62.65.226.255.cable.starman.ee [62.65.226.255]) (Authenticated sender: jurta@jurta.org) by homiemail-a101.g.dreamhost.com (Postfix) with ESMTPA id DD9DB117E065; Sat, 30 Jan 2016 16:16:10 -0800 (PST) In-Reply-To: <89D2C9D3-7CA3-49A8-9BFC-CE455C91A8A8@secretsauce.net> (Dima Kogan's message of "Sat, 30 Jan 2016 03:43:28 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (x86_64-pc-linux-gnu) 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:112118 Archived-At: > Hi. #11378 doesn't talk about keeping the meta-data in the history > generically. It mentions remembering the state for the last search, but > you'd still have the issue in this bug for older searches. So unless > I missed it (very possible since it was a very long thread), that bug > doesn't touch on this. We can propose new things, however :) > > I don't know how much complexity we want here. Each history item can > be a richer structure than just the search string. Too much? Yes, this is a harder problem. We have to remember meta-data for every search history element. There are several possibilities: 1. Changing the current format of =E2=80=98search-ring=E2=80=99 and =E2=80= =98regexp-search-ring=E2=80=99 is not backward-compatible: for external packages, for desktop.el, for savehist.el. Also note that distinction between these two variables already remembers one particular search parameter: either an ordinary or regexp search. So we don't need to remember the regexp search parameter alongside with the value of the search search. OTOH, by remembering it with the value, we can obsolete =E2=80=98regexp-search-ring=E2=80=99. 2. Adding more such variables for other search parameters: =E2=80=98word-search-ring=E2=80=99, =E2=80=98symbol-search-ring=E2=80=99= , =E2=80=98char-fold-search-ring=E2=80=99. A big mess ensues... 3. Using an additional variable with only meta-data requires keeping it in sync with the values in =E2=80=98search-ring=E2=80=99 and =E2=80=98= regexp-search-ring=E2=80=99. 4. Adding meta-data by text-properties to the strings in =E2=80=98search-ring=E2=80=99 and =E2=80=98regexp-search-ring=E2=80=99= poses a problem of saving the values in the desktop and restoring in another session. 5. More ideas? ;)