From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Piet van Oostrum Newsgroups: gmane.emacs.devel Subject: history-delete-duplicates and read-file-name Date: Mon, 08 Nov 2004 13:40:55 +0100 Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1099917679 26938 80.91.229.6 (8 Nov 2004 12:41:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 8 Nov 2004 12:41:19 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 08 13:41:10 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CR8pa-0000TW-00 for ; Mon, 08 Nov 2004 13:41:10 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CR8xs-0003zC-VZ for ged-emacs-devel@m.gmane.org; Mon, 08 Nov 2004 07:49:45 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CR8xj-0003z7-SQ for emacs-devel@gnu.org; Mon, 08 Nov 2004 07:49:36 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CR8xj-0003yv-II for emacs-devel@gnu.org; Mon, 08 Nov 2004 07:49:35 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CR8xj-0003ys-A6 for emacs-devel@gnu.org; Mon, 08 Nov 2004 07:49:35 -0500 Original-Received: from [131.211.81.146] (helo=ordesa.cs.uu.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CR8pK-0006l4-O4 for emacs-devel@gnu.org; Mon, 08 Nov 2004 07:40:54 -0500 Original-Received: from ordesa.cs.uu.nl (localhost [127.0.0.1]) by ordesa.cs.uu.nl (Postfix) with ESMTP id 8949622B893 for ; Mon, 8 Nov 2004 13:40:56 +0100 (CET) X-Mailer: emacs 21.3.50.11 (via feedmail 8 I) Original-To: emacs-devel@gnu.org User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (darwin) 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: main.gmane.org gmane.emacs.devel:29569 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:29569 The variable history-delete-duplicates, when non-nil, is supposed to suppress duplicates in minibuffer reads with history. However, there is one occasion where it fails: Calling read-file-name with a default that is somewhere in the file-name-history but not the most recent entry, and selecting the default, causes read-file-name to add the selected filename, without removing the existing entry. This is because it adds the new entry after read_minibuf has finished. It should also check history-delete-duplicates. -- Piet van Oostrum URL: http://www.cs.uu.nl/~piet [PGP] Private email: P.van.Oostrum@hccnet.nl