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: Sun, 21 May 2006 07:27:09 +0300 Organization: JURTA Message-ID: <87r72oca4o.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 1148186547 7672 80.91.229.2 (21 May 2006 04:42:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 21 May 2006 04:42:27 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 21 06:42:26 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 1Fhflo-0001wM-Vp for ged-emacs-devel@m.gmane.org; Sun, 21 May 2006 06:42:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fhflo-0001nC-HD for ged-emacs-devel@m.gmane.org; Sun, 21 May 2006 00:42:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fhfl4-0001Mp-7D for emacs-devel@gnu.org; Sun, 21 May 2006 00:41:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fhfl3-0001MP-KU for emacs-devel@gnu.org; Sun, 21 May 2006 00:41:37 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fhfl3-0001MC-CC for emacs-devel@gnu.org; Sun, 21 May 2006 00:41:37 -0400 Original-Received: from [217.25.160.1] (helo=relay1.binet.com.ua) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fhfoj-0000zc-To for emacs-devel@gnu.org; Sun, 21 May 2006 00:45:26 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by relay1.binet.com.ua (Postfix) with ESMTP id 27D3D77DE5; Sun, 21 May 2006 07:41:36 +0300 (EEST) Original-Received: from mail.binet.com.ua (i24.dialup.binet.com.ua [217.25.161.88]) by relay1.binet.com.ua (Postfix) with ESMTP id A016577DA6; Sun, 21 May 2006 07:41:34 +0300 (EEST) Original-To: storm@cua.dk (Kim F. Storm) In-Reply-To: (Kim F. Storm's message of "Sun, 21 May 2006 00:39:57 +0200") 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:54928 Archived-At: > Can't you let-bind the history variable around the call to > read-from-minibuffer, i.e. > > (let ((history-var history-var)) > (read-from-minibuffer .... 'history-var ...)) > (add-to-history 'history-var ...) This was the first solution I tried, but after using it I noticed that when I change the history list while the minibuffer is active (e.g. I use M-k in the minibuffer to purge the history list from unnecessary old elements, see http://lists.gnu.org/archive/html/emacs-devel/2004-06/msg00937.html) then after exiting from the minibuffer I lose all my changes in the history list. -- Juri Linkov http://www.jurta.org/emacs/