unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Goedson Teixeira Paixao <goedson@debian.org>
To: Chong Yidong <cyd@stupidchicken.com>
Cc: goedson@debian.org, Sven Joachim <svenjoac@gmx.de>,
	469486@bugs.debian.org, emacs-devel@gnu.org
Subject: Bug#469486: emacs22-common: partial-complete adds ".h" to filename without trying the plain input first
Date: Wed, 05 Mar 2008 15:36:06 -0300	[thread overview]
Message-ID: <1204742167.26268.8.camel@framps> (raw)
In-Reply-To: <871w6poyyx.fsf@stupidchicken.com>

[-- Attachment #1: Type: text/plain, Size: 1662 bytes --]


Em Qua, 2008-03-05 às 12:35 -0500, Chong Yidong escreveu:
> Sven Joachim <svenjoac@gmx.de> writes:
> >> 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.

You're right. But we can't decide on what is or what is not an include
file based only in the filename extension. In the example cited above,
"list" is a perfectly legal include file from the C++ STL. And most of
the headers (if not all) from the Standard C++ library don't have names
ending in ".h".

>   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.)

As you may guess by the name of the bug submiter, I'm in favor of this
change ;)


-- 
Goedson Teixeira Paixao          http://mundolivre.wordpress.com/
Debian Project                   http://www.debian.org/
Jabber ID: goedson@jabber.org    http://www.jabber.org/


[-- Attachment #2: Esta é uma parte de mensagem assinada digitalmente --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

      reply	other threads:[~2008-03-05 18:36 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
2008-03-05 18:36     ` Goedson Teixeira Paixao [this message]

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=1204742167.26268.8.camel@framps \
    --to=goedson@debian.org \
    --cc=469486@bugs.debian.org \
    --cc=cyd@stupidchicken.com \
    --cc=emacs-devel@gnu.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).