all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: "Drew Adams" <drew.adams@oracle.com>
Cc: 1085@emacsbugs.donarmstrong.com, emacs-pretest-bug@gnu.org
Subject: bug#1085: 23.0.60; all-completions, try-completion inconsistent: Info-read-node-name-1
Date: Wed, 08 Oct 2008 12:10:01 -0400	[thread overview]
Message-ID: <jwv1vyr5avv.fsf-monnier+emacsbugreports@gnu.org> (raw)
In-Reply-To: <008901c9290e$a3aa55a0$0200a8c0@us.oracle.com> (Drew Adams's message of "Tue, 7 Oct 2008 23:25:20 -0700")

>> > I was following my analogy and thought that you did the 
>> > same thing for both, using the directory part as a
>> > boundary/contextual "prefix" of the relative file name.
>> > But IIUC, there is no invalidation of the invariants for
>> > file-name completion.
>> Your 3rd invariant is invalidated because all-completions does not
>> return the directory part of a completion.

> But if you call try-completion directly using a relative file name,
> then it, just like all-completions, returns the completed relative
> file name - completed in the default directory.

Not if the relative file name includes a slash.

> (try-completion "icicles." 'read-file-name-internal nil) gives "icicles.el".

That's just a happy corner case.  We're discussing the general case.

>> > Why couldn't we treat this completion the same way we treat 
>> > file-name completion?
>> We do treat it identically.
> Not if I understand correctly. Isn't it true that we use the boundary thing
> (with prefix "(") for the Info file/node completion, and we don't use it for
> file-name completion?

We use it for file-name completion just the same.
If you're in the particular case where the file name has no directory
component, then the prefix is the empty string so you may get fooled
into thinking that it's not used, but it is.


        Stefan






  reply	other threads:[~2008-10-08 16:10 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87vdkolnzb.fsf@cyd.mit.edu>
2008-10-04 22:58 ` bug#1085: 23.0.60; all-completions, try-completion inconsistent: Info-read-node-name-1 Drew Adams
2008-10-04 23:18   ` Drew Adams
2008-10-05 22:53     ` Drew Adams
2008-10-05 23:36   ` Stefan Monnier
2008-10-06  4:29     ` Drew Adams
2008-10-06 14:37       ` Stefan Monnier
2008-10-06 16:47         ` Drew Adams
2008-10-07  2:06           ` Stefan Monnier
2008-10-07  4:42             ` Drew Adams
2008-10-07 14:52               ` Stefan Monnier
2008-10-07 16:47                 ` Drew Adams
2008-10-07 21:07                   ` Stefan Monnier
2008-10-07 23:10                     ` Drew Adams
2008-10-08  2:31                       ` Stefan Monnier
2008-10-08  6:25                         ` Drew Adams
2008-10-08 16:10                           ` Stefan Monnier [this message]
2008-10-08 16:24                             ` Drew Adams
2009-08-15 22:25   ` bug#1085: marked as done (23.0.60; all-completions, try-completion inconsistent: Info-read-node-name-1) Emacs bug Tracking System

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwv1vyr5avv.fsf-monnier+emacsbugreports@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=1085@emacsbugs.donarmstrong.com \
    --cc=drew.adams@oracle.com \
    --cc=emacs-pretest-bug@gnu.org \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.