From: Vitalie Spinu <spinuvit@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: Completion with (:exclusive 'no) is called twice, and doesn't pass over on sole completion.
Date: Mon, 19 Mar 2012 09:35:10 +0100 [thread overview]
Message-ID: <874ntlng3l.fsf@gmail.com> (raw)
In-Reply-To: jwvvcm1ju9r.fsf-monnier+emacs@gnu.org
>>>> Stefan Monnier <monnier@IRO.UMontreal.CA>
>>>> on Sun, 18 Mar 2012 20:53:11 -0400 wrote:
>> or expansions a la yas.
> I guess you're referring to some part of yasnippet, but I don't know
> which part, nor why it is related to completion-at-point-functions.
Yes, I mean the expansion of abbreviations at point, like yasnippet
does. But, it looks like you don't consider it as a completion in the
first place.
>> So you would still need a separate list for those.
> As explained, partial-completion is another problem. As for abbrev-like
> "completion+expansion", I don't see why it can't work with AC (and if
> it can't work, the completion-at-point-function can return some data
> in its `props' making it clear it can't be used for AC).
Hmm, ... right, still cannot get used to the concept.
>> And the old argument still stands - would the user like to have the same
>> redundant list of completion functions for C-M-i and popup menu?
> I don't see why not. Tho, for completions like etags-completion or
> dabbrev-completion, i.e. forms of completions which don't actually know
> whether the candidates they return are actually relevant at point, maybe
> we'd like to make exceptions (like we already do for dabbrev-completions
> which are bound to a special key rather than to TAB).
Good point, given the current mechanism, it's trivial to write a custom
completion, with custom list of capfs and bind it to a key.
> I used "-capf" within the code of completion-at-point, but I think it's
> too cryptic for use outside of that context.
Sounds great to me! It's easy to spell, search for and remember, and is
more specific than -data. At the end it's just a convention to be used
to, and from each function's documentation it will be clear what it
means.
Thanks,
Vitalie.
next prev parent reply other threads:[~2012-03-19 8:35 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-16 11:05 Completion with (:exclusive 'no) is called twice, and doesn't pass over on sole completion Vitalie Spinu
2012-03-16 12:18 ` Vitalie Spinu
2012-03-16 17:20 ` Stefan Monnier
2012-03-16 19:33 ` Vitalie Spinu
2012-03-17 22:34 ` Stefan Monnier
2012-03-17 22:43 ` Lennart Borgman
2012-03-17 23:33 ` Vitalie Spinu
2012-03-18 2:03 ` Stefan Monnier
2012-03-18 9:35 ` Vitalie Spinu
2012-03-18 15:42 ` Stefan Monnier
2012-03-18 19:18 ` Vitalie Spinu
2012-03-19 0:53 ` Stefan Monnier
2012-03-19 8:35 ` Vitalie Spinu [this message]
2012-03-19 12:49 ` Stefan Monnier
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=874ntlng3l.fsf@gmail.com \
--to=spinuvit@gmail.com \
--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.