From: Thierry Volpiatto <thierry.volpiatto@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Using ido-completions in other packages
Date: Fri, 04 Jun 2010 17:15:59 +0200 [thread overview]
Message-ID: <87eigm4ymo.fsf@tux.homenetwork> (raw)
In-Reply-To: m18w6uzwpv.fsf@67-159.eduroam.rwth-aachen.de
Andrea Crotti <andrea.crotti.0@gmail.com> writes:
> Thierry Volpiatto <thierry.volpiatto@gmail.com> writes:
>>
>> I don't know what is senator-jump, but i guess this function use a
>> simple read-string. To have completion you need a *-completing-read with a
>> collection as arg.
>
> Here is the part of the code that I think is in charge for showing me
> the list of possibilities.
> It does use completing-read, but maybe using apply it doesn't work?
> (Just wild guessing).
>
> (let*
> ...
> (completing-read-args
> (list (if (and context (car context))
> (format "%s(default: %s) " prompt (car context))
> prompt)
> (setq senator-jump-completion-list
> (senator-completion-list in-context))
> nil
> require-match
> ""
> 'semantic-read-symbol-history)))
> (list
> (apply #'completing-read
> (if (and context (car context))
> (append completing-read-args context)
> completing-read-args))
> in-context no-default)))
>
Try that:
copy/paste the function senator-jump in your .emacs and replace
(apply #'completing-read
by
(apply #'ido-completing-read
That will give you ido completion, but if
(senator-completion-list in-context) return nothing (nil)
the problem come from here.
To know that, use C-u C-M x on the function senator-jump and use it,
and then use "n" to step throught the code.
Do you have completion with the original code?(i.e using
completing-read)
--
Thierry Volpiatto
Gpg key: http://pgp.mit.edu/
next prev parent reply other threads:[~2010-06-04 15:15 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-04 9:35 Using ido-completions in other packages Andrea Crotti
2010-06-04 10:57 ` Tassilo Horn
2010-06-04 12:06 ` Štěpán Němec
2010-06-04 12:12 ` Andrea Crotti
2010-06-04 13:14 ` Thierry Volpiatto
2010-06-04 14:41 ` Andrea Crotti
2010-06-04 15:15 ` Thierry Volpiatto [this message]
2010-06-05 14:15 ` Andrea Crotti
2010-06-08 4:39 ` William Xu
2010-08-16 9:27 ` Andrea Crotti
2010-08-16 11:07 ` Richard Riley
2010-08-17 21:49 ` Andrea Crotti
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=87eigm4ymo.fsf@tux.homenetwork \
--to=thierry.volpiatto@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.