Pouvez-vous tuyer des suggestions de ropemacs à une autre commande?
Question
existe-t-il un moyen d'obtenir les suggestions d'achèvement de la corde-assistant de la corde ROPEMACS (liée à "M- /" dans ROPEMode) à utiliser dans une autre commande?
Qu'est-ce que j'essaie de faire est une chose comme ceci:
(defun rope-completions-in-ido ()
(interactive)
(insert
(let ((mylist ROPE-GET-COMPLETIONS-LIST))
(ido-completing-read "Suggested Completions: " mylist))))
(define-key py-mode-map (kbd "M-/") 'rope-completions-in-ido)
Edit: Basculé sur Python.el, et il a commencé par magie de travailler, pas besoin de la hack ci-dessus.Il suffit d'appeler la corde-Code-Assist soulève maintenant les suggestions du minibuffer de manière IDO.
La solution
(As mentioned in edit) Switched to python.el, and it magically started working, no need for the above hack. Simply calling rope-code-assist now brings up the suggestions in the minibuffer in an ido way.
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow