From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: query-replace in isearch (was Re: should search ring contain duplicates?) Date: Fri, 19 May 2006 06:05:57 +0300 Organization: JURTA Message-ID: <87ac9ekbw6.fsf@jurta.org> References: <200605030727.k437R2Wx009975@amrm2.ics.uci.edu> <87bqufwbls.fsf@jurta.org> <200605031504.k43F49hr001544@scanner2.ics.uci.edu> <87wtcslqoj.fsf@jurta.org> <87slng8c5p.fsf@jurta.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1148008141 3670 80.91.229.2 (19 May 2006 03:09:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 19 May 2006 03:09:01 +0000 (UTC) Cc: dann@ics.uci.edu, rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 19 05:08:58 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FgvMG-0004YN-1v for ged-emacs-devel@m.gmane.org; Fri, 19 May 2006 05:08:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FgvMF-00054r-GP for ged-emacs-devel@m.gmane.org; Thu, 18 May 2006 23:08:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FgvM1-00054b-HU for emacs-devel@gnu.org; Thu, 18 May 2006 23:08:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FgvLz-00054G-OH for emacs-devel@gnu.org; Thu, 18 May 2006 23:08:41 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FgvLz-00054D-IP for emacs-devel@gnu.org; Thu, 18 May 2006 23:08:39 -0400 Original-Received: from [217.25.160.1] (helo=relay1.binet.com.ua) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FgvPB-00054x-6X; Thu, 18 May 2006 23:11:57 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by relay1.binet.com.ua (Postfix) with ESMTP id 0621377DCD; Fri, 19 May 2006 06:08:35 +0300 (EEST) Original-Received: from mail.binet.com.ua (i19.dialup.binet.com.ua [217.25.161.83]) by relay1.binet.com.ua (Postfix) with ESMTP id 7614577DBB; Fri, 19 May 2006 06:08:32 +0300 (EEST) Original-To: storm@cua.dk (Kim F. Storm) In-Reply-To: <87slng8c5p.fsf@jurta.org> (Juri Linkov's message of "Fri, 12 May 2006 00:52:38 +0300") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Virus-Scanned: by ClamAv at binet.com.ua X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:54758 Archived-At: > I'm trying to find a better replacement for KEEP-ALL. I want to remind that for add-to-history to be usable in several places there should be a way for read-from-minibuffer not to add a new element to the history list, thus allowing add-to-history to perform this task itself afterwards. I see two ways to do this: 1. before calling read-from-minibuffer to change a global variable (either `history-delete-duplicates' or `history-length') to a special value. 2. to change the argument KEEP-ALL to DONT-KEEP so that if DONT-KEEP is t, then read-from-minibuffer doesn't add a new element to the history list, and the calling code can add it by the explicit call of add-to-history (with any necessary arguments including the value t for KEEP-ALL argument of add-to-history). -- Juri Linkov http://www.jurta.org/emacs/