all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Perry Smith <pedzsan@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Help with completing-read
Date: Thu, 20 Jan 2011 08:16:09 -0600	[thread overview]
Message-ID: <F6E6F787-8F70-476D-B63E-C8D0D5367477@gmail.com> (raw)

The software I'm working on is doing this:

(let ((completing-read-func (if (null ido-mode)
                                  'completing-read
				'ido-completing-read)))
    (setq ri-topic (or ri-topic
                       (funcall completing-read-func
				"yari: "
				(yari-ruby-obarray rehash)
				nil
				t
				(yari-symbol-at-point)))))

The obarray has a list of methods with their complete class path like 
ActiveRecord::ConnectionAdapters::SchemaStatements#create_table

What I'd like to be able to do is allow the user to just type create_table and then
have a list of completions which would be the full class paths of for those
classes that have a create_table method.

What is the least painful way to do this?  I'm sorta ok competent with emacs lisp
but its not my strongest suit.

Thank you for your time,
Perry




             reply	other threads:[~2011-01-20 14:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-20 14:16 Perry Smith [this message]
     [not found] <mailman.2.1295535257.22543.help-gnu-emacs@gnu.org>
2011-01-20 19:19 ` Help with completing-read Stefan Monnier
2011-01-20 20:03   ` Perry Smith

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=F6E6F787-8F70-476D-B63E-C8D0D5367477@gmail.com \
    --to=pedzsan@gmail.com \
    --cc=help-gnu-emacs@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.