From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: should search ring contain duplicates? Date: Fri, 05 May 2006 21:25:46 +0200 Message-ID: <85slnogtol.fsf@lola.goethe.zz> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1146857188 6344 80.91.229.2 (5 May 2006 19:26:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 5 May 2006 19:26:28 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 05 21:26: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 1Fc5wR-0004DH-ES for ged-emacs-devel@m.gmane.org; Fri, 05 May 2006 21:26:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fc5wQ-0002p9-V9 for ged-emacs-devel@m.gmane.org; Fri, 05 May 2006 15:26:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fc5wE-0002p4-WE for emacs-devel@gnu.org; Fri, 05 May 2006 15:26:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fc5wD-0002oo-Hc for emacs-devel@gnu.org; Fri, 05 May 2006 15:26:05 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fc5wD-0002ok-E6 for emacs-devel@gnu.org; Fri, 05 May 2006 15:26:05 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fc5wQ-0006rh-WD for emacs-devel@gnu.org; Fri, 05 May 2006 15:26:19 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1Fc5wC-0006lG-Lb; Fri, 05 May 2006 15:26:04 -0400 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 2F3491CFF882; Fri, 5 May 2006 21:25:47 +0200 (CEST) Original-To: "Drew Adams" In-Reply-To: (Drew Adams's message of "Fri, 5 May 2006 12:14:54 -0700") 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:53971 Archived-At: "Drew Adams" writes: > > 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. I don't know how you gather this when Richard directly replied to the posting of yours Message-ID: containing the proposal: I think that for most uses of a history it makes no sense to keep duplicates. I'd vote for making the default value be t and letting those few modes where duplicates might make sense (e.g. shell-mode?) bind it to nil unless the user has explicitly specified otherwise. IOW the option values could be: nil - means never remove duplicates t (default) - means remove duplicates, but this can be overridden by a mode (e.g. shell-mode) non-nil, non-t - means always remove duplicates (never override) This would require code changes only for those few modes that want to override the default (t). Plus a change to the defcustom. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum