Phil Hagelberg <p...@hagelb.org> writes:

Hi Phil,

>>   - The completion only completes if there's exactly one match.  If
>>     there are multiple candidates, it simply echos them in the echo
>>     area.  Why not doing the usual emacs completion stuff with a
>>     *Completions* buffer and completing the common prefix?
>
> I looked into some of the other options for completion, but none of
> them seemed appropriate.

The standard way of doing completion in modern emacsen is to add your
own completion function to `completion-at-point-functions' and bind
M-TAB to `complete-symbol'.  That does all the magic of showing a
*Completions* buffer with multiple possibilities and completing common
prefixes for you.

I've already started working on that, and I'm mostly finished.  I'll
send a pull request anytime soon.

I have one minor problem, though.  Is there a way to block until a
handler has done its job?

Concretely, in

    (nrepl-send-string form nrepl-buffer-ns (nrepl-complete-handler
                                             (current-buffer)
                                             (save-excursion
                                               (backward-sexp)
                                               (point))))
    (do-magick)

I'd like to (do-magick) not before nrepl-complete-handler was run.  Is
that possible?

Bye,
Tassilo

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to