unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Leo <sdl.web@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: PCM completion word boundaries
Date: Sat, 13 Aug 2011 11:18:24 -0400	[thread overview]
Message-ID: <jwv8vqx4a8g.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <m1bow2n7q3.fsf@gmail.com> (Leo's message of "Sat, 06 Aug 2011 18:40:36 +0800")

> 2. (defun string->symbol ())
> 3. In an emacs-lisp-mode buffer, type string-symbol M-TAB

Right, because string->symbol does not match the "string*-symbol" glob.

> It says no match. I wonder if it should match in this case. For example
> minibuffer-bitset M-TAB completes to minibuffer--bitset.

But here "minibuffer--bitset" does match the "minibuffer*-bitset" glob.
I.e. the "-" you typed matches the second "-", not the first.

I.e. for string->symbol, you'd need to type "str>sym", at which point it
would correctly expand.

> The reason I am including > is that in Scheme there are tons of
> functions with -> in it. > is a bit slower to type and would be great if
> I can avoid it using completion.

That would make sense, yes, but it would require more changes.  You may
want to start by looking at completion-pcm--string->pattern.


        Stefan



  reply	other threads:[~2011-08-13 15:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-06 10:40 PCM completion word boundaries Leo
2011-08-13 15:18 ` Stefan Monnier [this message]
2011-08-15  9:56   ` Leo

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=jwv8vqx4a8g.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=sdl.web@gmail.com \
    /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 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).