unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Question about the initials completion-style
@ 2010-07-15 16:00 Tassilo Horn
  2010-07-22 14:38 ` Stefan Monnier
  0 siblings, 1 reply; 5+ messages in thread
From: Tassilo Horn @ 2010-07-15 16:00 UTC (permalink / raw)
  To: emacs-devel

Hi all,

I really like the idea of the `initials' completion style, but that
doesn't work for me.  When I do `M-x ss<TAB>' I want to call
`server-start' (or any other command with exactly 2 words separated by
some non-word-char).  I had an own mode for executing commands by giving
only initials, but I'd like to drop that for the new `completion-styles'
in recent emacsen.

Using (setq completion-styles '(basic initials partial-completion)), `M-x
ss<TAB>' will complete to "s-s", but the completion list also contains
entries with more subwords, like secrets-show-secrets.  Those are added
by the partial-completion style.

If I use (setq completion-styles '(basic initials)), `M-x ss<TAB>' will
complete to "s-s", but then no matches are found anymore, cause this
expansion requires partial-completion.

So it would be good, if there was a variant of partial-completion that
didn't consider symbols with more hyphens than are actually there.  Or
is there a way to do that right now (using a recent bzr checkout)?

Bye,
Tassilo



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-07-22 22:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

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