all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: try-completion not showing all possible completions?
Date: Thu, 05 Jan 2006 11:27:46 -0500	[thread overview]
Message-ID: <m18xtu1w2m.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <m3vewztdqr.fsf@loki.cmears.id.au> (Chris Mears's message of "Thu, 05 Jan 2006 17:01:16 +1100")

> Thank you, that makes perfect sense.  The documentation for
> try-completion is a little misleading; it says:

> "Each car of each element of ALIST (or each element if it is not a cons
> cell) is tested to see if it begins with STRING."

> I understood this to mean that the predicate (try-completion's third
> argument) would be run on *each and every* element of ALIST.

The predicate is definitely not used on each and every element of ALIST.
In older Emacsen it was called on each and every element that started with
STRING (tho it might also depend on completion-regexp-list) and now it's
called in slightly fewer cases.
Basically it's called whenever it's needed.  Notice that the piece of
docstring you quote doesn't mention the predicate at all.


        Stefan

      reply	other threads:[~2006-01-05 16:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-04  1:09 try-completion not showing all possible completions? Chris Mears
2006-01-05  5:22 ` Stefan Monnier
2006-01-05  6:01   ` Chris Mears
2006-01-05 16:27     ` Stefan Monnier [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

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

  git send-email \
    --in-reply-to=m18xtu1w2m.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@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.