From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: Re: incorrect code in dired-insert-directory Date: Fri, 29 Feb 2008 13:01:34 +0200 Message-ID: References: <001f01c87aa1$f176d7c0$0600a8c0@us.oracle.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1204283194 22109 80.91.229.12 (29 Feb 2008 11:06:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Feb 2008 11:06:34 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: "Drew Adams" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 29 12:07:00 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 1JV348-000578-RE for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Feb 2008 12:06:13 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JV33c-0005tB-9d for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Feb 2008 06:05:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JV2zl-0003wl-Ka for bug-gnu-emacs@gnu.org; Fri, 29 Feb 2008 06:01:41 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JV2zj-0003v0-4O for bug-gnu-emacs@gnu.org; Fri, 29 Feb 2008 06:01:39 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JV2zi-0003ub-Fj for bug-gnu-emacs@gnu.org; Fri, 29 Feb 2008 06:01:38 -0500 Original-Received: from heller.inter.net.il ([213.8.233.23]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JV2zh-0008LB-T0 for bug-gnu-emacs@gnu.org; Fri, 29 Feb 2008 06:01:38 -0500 Original-Received: from HOME-C4E4A596F7 (IGLD-80-230-203-69.inter.net.il [80.230.203.69]) by heller.inter.net.il (MOS 3.7.3a-GA) with ESMTP id FDD76524 (AUTH halo1); Fri, 29 Feb 2008 13:01:34 +0200 (IST) In-reply-to: <001f01c87aa1$f176d7c0$0600a8c0@us.oracle.com> (drew.adams@oracle.com) X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) 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:17620 Archived-At: > From: "Drew Adams" > Date: Thu, 28 Feb 2008 23:08:52 -0800 > > To reproduce (on Windows): > > emacs -Q > Load the source file files.el. > > C-u C-x 4 d > > Use switches -lR, and enter some directory name. > > The first directory name in the buffer appears twice (the others are OK). > > Note: The problem does not seem to arise if you don't load the source file, > for some reason. If you load files.el in the MS-Windows port, make sure you load ls-lisp.el right after that. That's because ls-lisp.el overloads the standard version of insert-directory, defined by files.el, so loading files.el reverts you to the original version of insert-directory, which doesn't DTRT on Windows. Could it be that the whole problem does not exist if you load ls-lisp.el after files.el?