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: Tue, 23 May 2006 08:17:03 +0300 Organization: JURTA Message-ID: <878xotibsd.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> <87ac9ekbw6.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 1148361761 5598 80.91.229.2 (23 May 2006 05:22:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 23 May 2006 05:22:41 +0000 (UTC) Cc: dann@ics.uci.edu, emacs-devel@gnu.org, storm@cua.dk Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 23 07:22:38 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 1FiPLn-0008F1-BN for ged-emacs-devel@m.gmane.org; Tue, 23 May 2006 07:22:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FiPLm-0003BH-P2 for ged-emacs-devel@m.gmane.org; Tue, 23 May 2006 01:22:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FiPLQ-0002zC-DN for emacs-devel@gnu.org; Tue, 23 May 2006 01:22:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FiPLO-0002y2-OB for emacs-devel@gnu.org; Tue, 23 May 2006 01:22:11 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FiPLO-0002xB-8k for emacs-devel@gnu.org; Tue, 23 May 2006 01:22:10 -0400 Original-Received: from [217.25.160.1] (helo=relay1.binet.com.ua) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FiPPV-00085D-6f; Tue, 23 May 2006 01:26:25 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by relay1.binet.com.ua (Postfix) with ESMTP id 0C3BA77E11; Tue, 23 May 2006 08:22:07 +0300 (EEST) Original-Received: from mail.binet.com.ua (i23.dialup.binet.com.ua [217.25.161.87]) by relay1.binet.com.ua (Postfix) with ESMTP id 3545B77D39; Tue, 23 May 2006 08:22:03 +0300 (EEST) Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Sat, 20 May 2006 20:55:19 -0400") 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:55099 Archived-At: > 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). > > Since we already decided to get rid of the KEEP-ALL argument, > I think that is the cleanest way. It would require changing > the Lisp manual and etc/NEWS. This solution has a significant drawback: this argument is available only to one reading function `read-from-minibuffer' and is not available to all other minibuffer reading functions (like `read-file-name' etc.). Adding this argument to every reading function would be a clumsy solution. I'm really inclined to bind a global variable `history-length' to a special value before calling a reading function (and to access this value in `read_minibuf' where all reading functions eventually go). -- Juri Linkov http://www.jurta.org/emacs/