From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Joshua S." Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#864: 23.0.60; Info-dir-remove-duplicates fails to remove duplicates Date: Wed, 03 Sep 2008 00:26:19 +0900 Message-ID: <48BD5B1B.3020409@george24.com> Reply-To: "Joshua S." , 864@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1220375181 27638 80.91.229.12 (2 Sep 2008 17:06:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Sep 2008 17:06:21 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 02 19:07:14 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KaZL7-0002ny-Gs for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Sep 2008 19:06:49 +0200 Original-Received: from localhost ([127.0.0.1]:34507 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KaZK8-00068g-FA for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Sep 2008 13:05:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KaY6X-0000qT-CE for bug-gnu-emacs@gnu.org; Tue, 02 Sep 2008 11:47:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KaY6T-0000os-4Q for bug-gnu-emacs@gnu.org; Tue, 02 Sep 2008 11:47:40 -0400 Original-Received: from [199.232.76.173] (port=41922 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KaY6S-0000op-TC for bug-gnu-emacs@gnu.org; Tue, 02 Sep 2008 11:47:36 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:45561) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KaY6R-0004oX-PA for bug-gnu-emacs@gnu.org; Tue, 02 Sep 2008 11:47:36 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m82FlUnI015243; Tue, 2 Sep 2008 08:47:30 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m82FZ3NX010309; Tue, 2 Sep 2008 08:35:03 -0700 X-Loop: don@donarmstrong.com Resent-From: "Joshua S." Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 02 Sep 2008 15:35:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 864 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12203691958070 (code B ref -1); Tue, 02 Sep 2008 15:35:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 2 Sep 2008 15:26:35 +0000 Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m82FQVVf008060 for ; Tue, 2 Sep 2008 08:26:33 -0700 Original-Received: from mx10.gnu.org ([199.232.76.166]:39879) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KaXkU-00055T-4z for emacs-pretest-bug@gnu.org; Tue, 02 Sep 2008 11:24:54 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KaXlx-0000VI-3o for emacs-pretest-bug@gnu.org; Tue, 02 Sep 2008 11:26:29 -0400 Original-Received: from watcher1.invoice.ne.jp ([202.235.198.2]:42134) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KaXlw-0000UX-Ii for emacs-pretest-bug@gnu.org; Tue, 02 Sep 2008 11:26:24 -0400 Original-Received: from [202.235.198.20] ([202.235.198.20]) by watcher1.invoice.ne.jp ([202.235.198.2]) with ESMTP id 1220369176.61737.1774185392.watcher1 for ; Wed, 03 Sep 2008 00:26:16 +0900 (JST) Original-Received: (qmail 24023 invoked from network); 3 Sep 2008 00:26:26 +0900 Original-Received: from unknown (HELO ?192.168.0.81?) (220.110.237.245) by george.george24.com with SMTP; 3 Sep 2008 00:26:26 +0900 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.2pre) Gecko/2008082101 SeaMonkey/2.0a1pre X-TERRACE-DUMMYSUBJECT: Terrace Spam system * X-TERRACE-SPAMMARK: NO (SR:11.59) (by Terrace) X-TERRACE-CLASSID: type=NO, str=0001.0A150204.48BD5B1B.00AF:SCFSTAT1346166, ss=1, fgs=0 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Tue, 02 Sep 2008 11:47:40 -0400 X-Mailman-Approved-At: Tue, 02 Sep 2008 12:59:05 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:20023 gmane.emacs.pretest.bugs:22938 Archived-At: Hi, I use NTEmacs with Cygwin, and something like this in my ~/.emacs. (setq Info-directory-list (list (expand-file-name "../info" data-directory) "c:/cygwin/usr/share/info")) Then the Info Directory Node lists some duplicated items. I did bellow patch to fix this. (You know, I am not a good Lisp programmer.) Index: lisp/info.el =================================================================== RCS file: /sources/emacs/emacs/lisp/info.el,v retrieving revision 1.541 diff -u -d -w -r1.541 info.el --- lisp/info.el 30 Aug 2008 20:16:36 -0000 1.541 +++ lisp/info.el 2 Sep 2008 15:05:54 -0000 @@ -1222,9 +1222,10 @@ ;; Fold case straight away; `member-ignore-case' here wasteful. (let ((x (downcase (match-string 1)))) (if (member x seen) - (delete-region (match-beginning 0) + (progn (delete-region (match-beginning 0) (progn (re-search-forward "^[^ \t]" nil t) (match-beginning 0))) + (forward-line 0)) (push x seen)))))))))) ;; Note that on entry to this function the current-buffer must be the