From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 18 12:52:30 2010 Received: (at submit) by debbugs.gnu.org; 18 Oct 2010 16:52:30 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P7swn-0007xY-T4 for submit@debbugs.gnu.org; Mon, 18 Oct 2010 12:52:30 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P7swm-0007xS-K0 for submit@debbugs.gnu.org; Mon, 18 Oct 2010 12:52:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P7t0N-00055a-DO for submit@debbugs.gnu.org; Mon, 18 Oct 2010 12:56:12 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:45991) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P7t0N-00055U-BX for submit@debbugs.gnu.org; Mon, 18 Oct 2010 12:56:11 -0400 Received: from [140.186.70.92] (port=46245 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P7t0M-0003dN-9M for bug-gnu-emacs@gnu.org; Mon, 18 Oct 2010 12:56:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P7t0L-00054x-DQ for bug-gnu-emacs@gnu.org; Mon, 18 Oct 2010 12:56:10 -0400 Received: from rcsinet10.oracle.com ([148.87.113.121]:23654) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P7t0L-00054o-7Y for bug-gnu-emacs@gnu.org; Mon, 18 Oct 2010 12:56:09 -0400 Received: from rcsinet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o9IGu6hI002644 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 18 Oct 2010 16:56:07 GMT Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by rcsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o9I7ikqM022517 for ; Mon, 18 Oct 2010 16:56:06 GMT Received: from abhmt014.oracle.com by acsmt354.oracle.com with ESMTP id 694064891287420916; Mon, 18 Oct 2010 09:55:16 -0700 Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 18 Oct 2010 09:55:15 -0700 From: "Drew Adams" To: Subject: 24.0.50; find-library gives wrong library - REGRESSION Date: Mon, 18 Oct 2010 09:55:16 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: Actu5T0q9iDbia+lQka21Qjt96XBBg== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -6.3 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.3 (------) emacs -Q M-x find-library dired. TAB TAB completes to dired.elc. It should, by priority, complete to dired.el, as it used to do (Emacs 22, 23 etc.). In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) of 2010-09-20 on 3249CTO Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (4.4) --no-opt --cflags -Ic:/imagesupport/include' From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 18 17:19:47 2010 Received: (at 7238-done) by debbugs.gnu.org; 18 Oct 2010 21:19:48 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P7x7T-0001Zc-9j for submit@debbugs.gnu.org; Mon, 18 Oct 2010 17:19:47 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P7wn9-0001P4-Bx for 7238-done@debbugs.gnu.org; Mon, 18 Oct 2010 16:58:47 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjALAKZSvExMCpO7/2dsb2JhbACgUnlywEaFSQSSGQ X-IronPort-AV: E=Sophos;i="4.57,346,1283745600"; d="scan'208";a="80052451" Received: from 76-10-147-187.dsl.teksavvy.com (HELO pastel.home) ([76.10.147.187]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 18 Oct 2010 17:02:30 -0400 Received: by pastel.home (Postfix, from userid 20848) id C559DA822C; Mon, 18 Oct 2010 17:02:29 -0400 (EDT) From: Stefan Monnier To: "Drew Adams" Subject: Re: bug#7238: 24.0.50; find-library gives wrong library - REGRESSION Message-ID: References: Date: Mon, 18 Oct 2010 17:02:29 -0400 In-Reply-To: (Drew Adams's message of "Mon, 18 Oct 2010 09:55:16 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 7238-done X-Mailman-Approved-At: Mon, 18 Oct 2010 17:19:46 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) > emacs -Q > M-x find-library dired. TAB > TAB completes to dired.elc. It should, by priority, complete to > dired.el, as it used to do (Emacs 22, 23 etc.). Indeed. The behavior of M-x find-library RET dired TAB is odd, but the one for dired. TAB is really a bug, which I fixed with the patch below. Thanks, Stefan === modified file 'lisp/files.el' --- lisp/files.el 2010-10-02 13:21:43 +0000 +++ lisp/files.el 2010-10-18 20:51:50 +0000 @@ -801,9 +801,10 @@ ;; Switching from names to names+fullnames creates a non-monotonicity ;; which can cause problems with things like partial-completion. ;; To minimize the problem, filter out completion-regexp-list, so that - ;; M-x load-library RET t/x.e TAB finds some files. - (if completion-regexp-list - (setq names (all-completions "" names))) + ;; M-x load-library RET t/x.e TAB finds some files. Also remove elements + ;; from `names' which only matched `string' when they still had + ;; their suffix. + (setq names (all-completions string names)) ;; Remove duplicates of the first element, so that we can easily check ;; if `names' really only contains a single element. (when (cdr names) (setcdr names (delete (car names) (cdr names)))) From unknown Sat Jun 21 10:44:45 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 16 Nov 2010 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator