From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: should search ring contain duplicates? Date: Sat, 06 May 2006 01:32:58 +0200 Message-ID: References: <87k6906oq4.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 1146872108 15471 80.91.229.2 (5 May 2006 23:35:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 5 May 2006 23:35:08 +0000 (UTC) Cc: Drew Adams , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 06 01:35:05 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 1Fc9p9-0001mu-Mn for ged-emacs-devel@m.gmane.org; Sat, 06 May 2006 01:35:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fc9p9-0005HA-7V for ged-emacs-devel@m.gmane.org; Fri, 05 May 2006 19:35:03 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fc9ox-0005FC-D8 for emacs-devel@gnu.org; Fri, 05 May 2006 19:34:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fc9ot-0005Dj-3g for emacs-devel@gnu.org; Fri, 05 May 2006 19:34:50 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fc9ot-0005Dg-00 for emacs-devel@gnu.org; Fri, 05 May 2006 19:34:47 -0400 Original-Received: from [195.41.46.237] (helo=pfepc.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fc9p9-0000Mj-0r for emacs-devel@gnu.org; Fri, 05 May 2006 19:35:03 -0400 Original-Received: from kfs-l.imdomain.dk.cua.dk (0x503e2644.bynxx3.adsl-dhcp.tele.dk [80.62.38.68]) by pfepc.post.tele.dk (Postfix) with SMTP id B19928A0014; Sat, 6 May 2006 01:34:40 +0200 (CEST) Original-To: Juri Linkov In-Reply-To: <87k6906oq4.fsf@jurta.org> (Juri Linkov's message of "Sat, 06 May 2006 02:22:59 +0300") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:53989 Archived-At: Juri Linkov writes: > I proposed to do the same for history-delete-duplicates, > i.e. to use the following condition in `add-to-history': > > (or (get history-var 'history-delete-duplicates) history-delete-duplicates) But this will not allow you to inhibit delete duplicates on a specific history-var if the history-delete-duplicates variable is set. You would have to differentiate between having NO history-delete-duplicates property and having a nil history-delete-duplicates property. That's more complex -- and it is not what the C-level code does. It's not a bad idea, but after the release.... -- Kim F. Storm http://www.cua.dk