From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: should search ring contain duplicates? Date: Tue, 16 May 2006 00:29:35 -0400 Message-ID: References: <200605030727.k437R2Wx009975@amrm2.ics.uci.edu> <87bqufwbls.fsf@jurta.org> <8764kezswj.fsf@jurta.org> <87ejz1mqvg.fsf@jurta.org> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1147753800 619 80.91.229.2 (16 May 2006 04:30:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 16 May 2006 04:30:00 +0000 (UTC) Cc: juri@jurta.org, dann@ics.uci.edu, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 16 06:29:56 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 1FfrBz-0008RN-4G for ged-emacs-devel@m.gmane.org; Tue, 16 May 2006 06:29:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FfrBy-0000mG-J7 for ged-emacs-devel@m.gmane.org; Tue, 16 May 2006 00:29:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FfrBi-0000kH-SB for emacs-devel@gnu.org; Tue, 16 May 2006 00:29:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FfrBi-0000js-17 for emacs-devel@gnu.org; Tue, 16 May 2006 00:29:38 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FfrBh-0000jn-Ob for emacs-devel@gnu.org; Tue, 16 May 2006 00:29:37 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FfrEG-0004kY-LK for emacs-devel@gnu.org; Tue, 16 May 2006 00:32:16 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1FfrBf-00084m-HW; Tue, 16 May 2006 00:29:36 -0400 Original-To: storm@cua.dk (Kim F. Storm) In-reply-to: (storm@cua.dk) 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:54554 Archived-At: > More precisely, it does not preserve the old head. > Instead it deletes that and then adds a new element. > But the result is, all the same, to have just one, not two. > This is all that matters, as far as I can see. It depends on the setting of history-delete-duplicates, whereas the code in read-from-minibuffer does not. Ok, now I see the issue. The following version of add-to-history which obeys the same rules as read-from-minibuffer, including the keep-all arg. Thanks, and please install it. Please update the Lisp Manual and etc/NEWS, too. Thanks.