Suggested by Noam Postavsky, this uses the :visible arg to `easy-menu-define' to hide the whole "YASnippet" menu according to the run-time value of `yas-use-menu'. Previously, only the load-time value was considered and some functions we're noops when `yas-use-menu' was nil. The per-mode snippet submenus are now always updated even if `yas-use-menu' is nil, although they won't be shown until it becomes non-nil. * yasnippet.el (yas--minor-mode-menu): Use :visible arg and eval `yas-use-menu' (yas--update-template): Always update the menu. (yas--show-menu-p): Always return t if `yas-use-menu' is non-nil and not `abbreviate' (yas-define-menu): Always define a menu. (yas-use-menu): Update docstring.
Previous reverted commit 498cbe4 forgot to take into account that one of the tests used the `yas--init-minor-keymap' function that was removed. * yasnippet.el (yas-use-menu): Don't allow `nil' value, it's useless. (yas--minor-mode-menu): Use top-level `easy-menu-define' form. (yas--init-minor-keymap): Remove definition. * yasnippet-tests.el (test-rebindings): Don't use `yas--init-minor-keymap'. Restore bindings explicitly. Not ideal, but should work.
This reverts commit 498cbe4.
* yasnippet.el (yas-use-menu): Don't allow `nil' value, it's useless. (yas--minor-mode-menu): Use top-level `easy-menu-define' form. (yas--init-minor-keymap): Remove definition.
Avoid double choices reversing
* yasnippet.el (yas-x-prompt): Remove hack notice.
The Changelog format is good but having a file for it is not. The same format can be had in messages by having using vc-dir and C-x 4 a. A temporary dummy changelog appears and that content goes to the git log message, which is just as good in content and much better in form.
Both yas-choose-value the yas-prompt-functions were reversing values (cancelling each other out), instead just keep the choices in order the whole time.
yasnippet templates don't add newlines
See pezra/rspec-mode#75 for the discussion leading up to this change.
* .travis.yml: new file * README.mdown: Add Travis CI badge. * Rakefile: use ert-run-tests-batch-and-exit. * yasnippet-tests.el (example-for-issue-404-external-emacs): Use `yas-with-snippet-dirs' to not depend on bundled snippets. (yas--call-with-temporary-redefinitions): Use `cl-labels' since no cl-flet in emacs-24.3's cl-lib.el. (loading-with-cyclic-parenthood): prog-mode doesn't exist in emacs 24.3. (yas-batch-run-tests): remove it. * yasnippet.el (require): require cl-lib during byte-compilation and load.
Use https instead of ssh for submodules access
was causing YASnippetnippet
This lets it work from M-x shell.
To enable direct access through a proxy, the submodules url definitions need to use https instead of ssh.
Remove one extra `yas-text` exportation
Something different between line 4521 and line 4528? I am not sure about this.
Rename what was formerly yas--exported-syms to yas--backported-syms, and remove yas--dont-backport.