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: Mon, 01 Feb 2016 00:05:32 +0200 Organization: LINKOV.NET Message-ID: <87oac1o15f.fsf@mail.linkov.net> References: <87zivq8xp2.fsf@secretsauce.net> <87r3h2boyj.fsf@mail.linkov.net> <89D2C9D3-7CA3-49A8-9BFC-CE455C91A8A8@secretsauce.net> <87io2apqad.fsf@mail.linkov.net> <2e298ac7-bc65-4afc-9d23-72785e2cad93@default> <87bn814qe6.fsf@secretsauce.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1454278346 15419 80.91.229.3 (31 Jan 2016 22:12:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 31 Jan 2016 22:12:26 +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 23:12:12 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 1aQ0E8-0004jM-2S for geb-bug-gnu-emacs@m.gmane.org; Sun, 31 Jan 2016 23:12:12 +0100 Original-Received: from localhost ([::1]:43479 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQ0E7-0002YX-AL for geb-bug-gnu-emacs@m.gmane.org; Sun, 31 Jan 2016 17:12:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38280) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQ0E2-0002Xm-2Z for bug-gnu-emacs@gnu.org; Sun, 31 Jan 2016 17:12:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aQ0Dz-0004Wt-2G for bug-gnu-emacs@gnu.org; Sun, 31 Jan 2016 17:12:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55303) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQ0Dy-0004Wg-W7 for bug-gnu-emacs@gnu.org; Sun, 31 Jan 2016 17:12:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aQ0Dy-0007tG-Sm for bug-gnu-emacs@gnu.org; Sun, 31 Jan 2016 17:12: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 22:12: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.145427826630257 (code B ref 22479); Sun, 31 Jan 2016 22:12:02 +0000 Original-Received: (at 22479) by debbugs.gnu.org; 31 Jan 2016 22:11:06 +0000 Original-Received: from localhost ([127.0.0.1]:43522 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aQ0D3-0007rx-VY for submit@debbugs.gnu.org; Sun, 31 Jan 2016 17:11:06 -0500 Original-Received: from sub3.mail.dreamhost.com ([69.163.253.7]:57725 helo=homiemail-a15.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aQ0D2-0007rp-Cr for 22479@debbugs.gnu.org; Sun, 31 Jan 2016 17:11:04 -0500 Original-Received: from homiemail-a15.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a15.g.dreamhost.com (Postfix) with ESMTP id 05CC476C069; Sun, 31 Jan 2016 14:11:03 -0800 (PST) Original-Received: from localhost.linkov.net (82.131.112.255.cable.starman.ee [82.131.112.255]) (Authenticated sender: jurta@jurta.org) by homiemail-a15.g.dreamhost.com (Postfix) with ESMTPA id 049E876C065; Sun, 31 Jan 2016 14:11:01 -0800 (PST) In-Reply-To: <87bn814qe6.fsf@secretsauce.net> (Dima Kogan's message of "Sun, 31 Jan 2016 09:20:33 -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:112165 Archived-At: >> 5. More ideas? ;) > > - We can retain the two histories: regex, non-regex > > - Any fancy (word, symbol, etc) searches can be stored into the regex > history, bookmarked with the appropriate regexen ("\_<", "\_>" for > instance) > > - When reading the history to present to the user, these can be parsed > out. So for instance when the user looks through the symbol-search > history by hitting > > M-s _ > C-s > > emacs can look through the regex history, only selecting entries in > \_<...\_>. The C-M-s history can either include all of these, or show > only unbookmarked entries; both would be ok, I think. This approach is compromising but unreliable (doesn't distinguish between the case when the user uses the symbol search M-s _ or types \_<...\_> directly in the regexp search) and insufficient (need to remember other search parameters like case-fold and lax-whitespace).