From: Chong Yidong <cyd@stupidchicken.com>
To: Sven Joachim <svenjoac@gmx.de>
Cc: emacs-devel@gnu.org, Goedson Teixeira Paixao <goedson@debian.org>,
469486@bugs.debian.org
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 [thread overview]
Message-ID: <871w6poyyx.fsf@stupidchicken.com> (raw)
In-Reply-To: <87ejap9jvz.fsf@gmx.de> (Sven Joachim's message of "Wed\, 05 Mar 2008 18\:10\:40 +0100")
Sven Joachim <svenjoac@gmx.de> writes:
>> When using partial-complete-mode, trying to find a file, and providing
>> "<list>" 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 "<list>" 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.)
next prev parent reply other threads:[~2008-03-05 17:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1204726142.22737.10.camel@framps>
2008-03-05 17:10 ` Bug#469486: emacs22-common: partial-complete adds ".h" to filename without trying the plain input first Sven Joachim
2008-03-05 17:35 ` Chong Yidong [this message]
2008-03-05 18:36 ` Goedson Teixeira Paixao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871w6poyyx.fsf@stupidchicken.com \
--to=cyd@stupidchicken.com \
--cc=469486@bugs.debian.org \
--cc=emacs-devel@gnu.org \
--cc=goedson@debian.org \
--cc=svenjoac@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).