From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Bug#469486: emacs22-common: partial-complete adds ".h" to filename without trying the plain input first Date: Wed, 05 Mar 2008 12:35:50 -0500 Message-ID: <871w6poyyx.fsf@stupidchicken.com> References: <1204726142.22737.10.camel@framps> <87ejap9jvz.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1204738740 11101 80.91.229.12 (5 Mar 2008 17:39:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Mar 2008 17:39:00 +0000 (UTC) Cc: emacs-devel@gnu.org, Goedson Teixeira Paixao , 469486@bugs.debian.org To: Sven Joachim Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 05 18:39:27 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JWxaA-0004pC-2C for ged-emacs-devel@m.gmane.org; Wed, 05 Mar 2008 18:39:10 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JWxZc-0000W7-MV for ged-emacs-devel@m.gmane.org; Wed, 05 Mar 2008 12:38:36 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JWxYv-0000Hb-HL for emacs-devel@gnu.org; Wed, 05 Mar 2008 12:37:53 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JWxYs-0000FX-Vq for emacs-devel@gnu.org; Wed, 05 Mar 2008 12:37:53 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JWxYs-0000FJ-Hb for emacs-devel@gnu.org; Wed, 05 Mar 2008 12:37:50 -0500 Original-Received: from cyd.mit.edu ([18.115.2.24]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JWxYr-0004Ys-NT for emacs-devel@gnu.org; Wed, 05 Mar 2008 12:37:49 -0500 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id 6FC904E3FE; Wed, 5 Mar 2008 12:35:50 -0500 (EST) In-Reply-To: <87ejap9jvz.fsf@gmx.de> (Sven Joachim's message of "Wed\, 05 Mar 2008 18\:10\:40 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.91 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:91400 Archived-At: Sven Joachim writes: >> When using partial-complete-mode, trying to find a file, and providing >> "" as the filename should make emacs look for files named "list" >> in the directories listed in PC-include-file-path but, instead of doing >> that, emacs will look for files named "list.h". This happens because the >> function PC-look-for-include-file will add an extra ".h" without even >> trying to find the file first. >> >> Steps to reproduce the bug: >> >> 1 - enable partial-complete-mode >> 2 - Add a directory containing a file without an extension in its name >> to the list PC-include-file-path. (add-to-list 'PC-include-file-path >> "/usr/include/c++/4.2") is enough if you have libstdc++6-4.2-dev >> installed. >> 3 - Invoke find-file (C-x C-f) and type "" as the name of file >> to find. >> 4 - emacs will complain there is no header named "list.h" when it >> should have loaded "/usr/include/c++/4.2/list" This is ambiguous, because the docstring for PC-include-file-path says A list of directories in which to look for include files. This seems to imply that PC-include-file-path won't be searched for files that aren't explicitly include files. However, I don't use partial-completion-mode, so I'd like the opinions of those who do use it. (If the users agree with this change, we can add it to the branch after 22.2 is released.)