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: should search ring contain duplicates? Date: Sat, 06 May 2006 02:22:59 +0300 Organization: JURTA Message-ID: <87k6906oq4.fsf@jurta.org> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1146871817 14855 80.91.229.2 (5 May 2006 23:30:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 5 May 2006 23:30:17 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 06 01:30:16 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 1Fc9kO-0001A6-Bm for ged-emacs-devel@m.gmane.org; Sat, 06 May 2006 01:30:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fc9kN-0003qo-SO for ged-emacs-devel@m.gmane.org; Fri, 05 May 2006 19:30:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fc9ji-0003XW-MD for emacs-devel@gnu.org; Fri, 05 May 2006 19:29:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fc9jh-0003XG-Af for emacs-devel@gnu.org; Fri, 05 May 2006 19:29:26 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fc9jh-0003XB-3X for emacs-devel@gnu.org; Fri, 05 May 2006 19:29:25 -0400 Original-Received: from [217.25.160.1] (helo=relay1.binet.com.ua) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fc9jx-0008IA-3K for emacs-devel@gnu.org; Fri, 05 May 2006 19:29:41 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by relay1.binet.com.ua (Postfix) with ESMTP id 0886A77D57; Sat, 6 May 2006 02:29:24 +0300 (EEST) Original-Received: from mail.binet.com.ua (i37.dialup.binet.com.ua [217.25.161.101]) by relay1.binet.com.ua (Postfix) with ESMTP id 1A78577D76; Sat, 6 May 2006 02:29:21 +0300 (EEST) Original-To: "Drew Adams" In-Reply-To: (Drew Adams's message of "Fri, 5 May 2006 12:14:54 -0700") 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:53988 Archived-At: > > I am not interested in considering such a complex proposal. > > There is nothing complex about it (with the latest add-to-history) > version. > > I was talking about a different proposal, one involving properties to > control lengths. It was very complex. > > To be clear, was it this proposal from Juri: > > A related feature that specifies the maximum length of the history list > uses the `history-length' _property_ of the history list _symbol_ > to override the default value of the _variable_ `history-length' > for a particular history list. Exactly the same thing could be > implemented for `history-delete-duplicates', i.e. the property > `history-delete-duplicates' would override its default value > for a particular history list. The first part of this paragraph is not a proposal. It describes how `history-length' already uses the property of the history symbol. The Lisp code of `add-to-history' Kim submitted to this list, demonstrates very simple implementation of this functionality as: (or (get history-var 'history-length) history-length) 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) So my proposal is not very complex, and I don't think Richard replied to my email. -- Juri Linkov http://www.jurta.org/emacs/