all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Tassilo Horn <tassilo@member.fsf.org>
Cc: emacs-devel@gnu.org
Subject: Re: Question about the initials completion-style
Date: Fri, 23 Jul 2010 00:44:41 +0200	[thread overview]
Message-ID: <jwv6307rvhi.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <201007221710.00706.tassilo@member.fsf.org> (Tassilo Horn's message of "Thu, 22 Jul 2010 17:10:00 +0200")

> It looks to me that I could copy the `completion-pcm-all-completions'
> function and add a FILTER for deleting the entries consisting of too
> many words to the call to `completion-pcm--find-all-completions'.  I'll
> try that as soon as I find some time...

IIRC there's some dependency between partial-completion and initials, so
doing it right may require more work.

> A related question: Is the canonical way to use different completion
> styles depending on what to complete advising the relevant functions?

There is no such canonical way to do it, and it's one of the facilities
that we need to add, indeed.  The read-buffer case is once such glaring
example (where we should change the default to (basic substring),
actually).
If someone has an idea for what such a canonical way should look like
(and no, using `advice' is not the answer: it's only "the canonical way
to do it for lack of anything better"), I'm all ears.


        Stefan



      parent reply	other threads:[~2010-07-22 22:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-15 16:00 Question about the initials completion-style Tassilo Horn
2010-07-22 14:38 ` Stefan Monnier
2010-07-22 15:10   ` Tassilo Horn
2010-07-22 17:27     ` Tassilo Horn
2010-07-22 22:44     ` 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=jwv6307rvhi.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=tassilo@member.fsf.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.