Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change yas/prompt-functions order when I call yas/insert-snippet #256

Closed
redguardtoo opened this issue Jun 18, 2012 · 3 comments
Closed

Comments

@redguardtoo
Copy link

What steps will reproduce the problem?

  1. (require 'dropdown-list)
  2. M-x yas/insert-snippet
  3. You can see here only limited candidates are displayed in yas/dropdown-prompt if candidate window height is bigger than the screen height
  4. I this case I think yas/completing-prompt is better

My suggestion:
Use yas/completing-prompt when and ONLY when I call yas/insert-snippet.

Any work around could be found without changing yasnippet code?

yasnippet 0.7.0

@joaotavora
Copy link
Owner

Use emacs advice:

(defadvice yas/insert-snippet (around use-completing-prompt activate)
  "Use `yas/completing-prompt' for `yas/prompt-functions' but only here..."
  (let ((yas/prompt-functions '(yas/completing-prompt)))
    ad-do-it))

@redguardtoo
Copy link
Author

perfect

@chenyangguang
Copy link

niubility

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants