From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Isearch interaction model Date: Sun, 11 Mar 2018 23:58:03 +0200 Organization: LINKOV.NET Message-ID: <87tvtmnul0.fsf@mail.linkov.net> References: <87po4slrg4.fsf@mail.linkov.net> <2854ae14-ad4a-2fa2-ff0f-652e1501819e@dancol.org> <87fu5jh14h.fsf_-_@mail.linkov.net> <87po4gvptz.fsf@mail.linkov.net> <87h8prwmaq.fsf@mail.linkov.net> <87d10echr9.fsf@mail.linkov.net> <87o9jvy6e6.fsf@mail.linkov.net> <4d42eab9-1d69-8a02-5f14-04315888f29e@dancol.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1520805531 9093 195.159.176.226 (11 Mar 2018 21:58:51 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 11 Mar 2018 21:58:51 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: Emacs developers To: Daniel Colascione Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 11 22:58:47 2018 Return-path: Envelope-to: ged-emacs-devel@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 1ev8zK-0002D7-Kr for ged-emacs-devel@m.gmane.org; Sun, 11 Mar 2018 22:58:42 +0100 Original-Received: from localhost ([::1]:55724 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ev91N-0002iK-Gt for ged-emacs-devel@m.gmane.org; Sun, 11 Mar 2018 18:00:49 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44289) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ev90M-0002hk-Ev for emacs-devel@gnu.org; Sun, 11 Mar 2018 17:59:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ev90K-0005hW-Ny for emacs-devel@gnu.org; Sun, 11 Mar 2018 17:59:46 -0400 Original-Received: from sub3.mail.dreamhost.com ([69.163.253.7]:44730 helo=homiemail-a15.g.dreamhost.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ev90K-0005hE-Ht for emacs-devel@gnu.org; Sun, 11 Mar 2018 17:59:44 -0400 Original-Received: from homiemail-a15.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a15.g.dreamhost.com (Postfix) with ESMTP id 8A48F76C06B; Sun, 11 Mar 2018 14:59:43 -0700 (PDT) Original-Received: from localhost.linkov.net (m91-129-108-46.cust.tele2.ee [91.129.108.46]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by homiemail-a15.g.dreamhost.com (Postfix) with ESMTPSA id A053D76C065; Sun, 11 Mar 2018 14:59:42 -0700 (PDT) In-Reply-To: <4d42eab9-1d69-8a02-5f14-04315888f29e@dancol.org> (Daniel Colascione's message of "Sat, 10 Mar 2018 13:36:41 -0800") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x [fuzzy] X-Received-From: 69.163.253.7 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:223627 Archived-At: >>>> But it you want to share string and regexp histories, it's easy to implement >>>> by another layer of indirection like for query-replace history variables: >>>> >>>> (defcustom query-replace-from-history-variable 'query-replace-history >>>> (defcustom query-replace-to-history-variable 'query-replace-history >>> >>> Sure. It's possible to make this behavior customizable. >> >> But then perhaps search-ring-yank-pointer and regexp-search-ring-yank-pointer >> need similar indirection, or code could be smart enough to detect such >> indirection and compute the right pointer depending on where such variables >> point to. > > I really think you're over-thinking this problem. Let's just try a unified > history and see whether it causes problems in practice. I suspect it'll > feel perfectly natural, and we won't need complex indirection layers. So far we have seen only two opinions: you prefer sharing histories, and I keep the list of frequently used regexp searches in the separate regexp history saved in the desktop file.