42 Commits

Author SHA1 Message Date
Joao Tavora
43a484e943 add: external test for issue #404 2013-10-31 13:03:32 +01:00
Noam Postavsky
5c76a0fda2 test middle-of-buffer snippet insertion 2013-10-14 11:48:04 -04:00
Joao Tavora
6268cc26b3 add: test for issue #404 2013-10-14 10:25:38 +01:00
João Távora
a7d40ed14a Closes #318: correctly implement YAS--MODES-TO-ACTIVATE
- simpler and got rid of YAS--ALL-PARENTS
- also got rid of YAS/MODE-SYMBOL backward compatibility hack
2013-08-31 23:48:19 +01:00
João Távora
ddaf9a9f5c Fix: cleanup yasnippet-tests.el
- add edebug-form-specs
- replace "yas/" with "yas-"
- yas/ert => yas-batch-run-tests
2013-08-31 23:48:00 +01:00
Joao Tavora
13d87aa3c0 fix: more idiomatic elisp, better docstrings, less byte-compiler warnings
By Stefan Monnier, with original commentary.

"Here's an untested patch of cleanups, found partly via compilation using
lexical-binding and partly via checkdoc-current-buffer (and
occasionally by stumble-upon happenstance)."
2013-08-29 10:20:31 +01:00
Joao Tavora
9df05fc413 Minor: indenting in for yasnippet-tests.el macro 2013-05-05 20:42:33 -04:00
Joao Tavora
0da56720a8 Closes #318: now checks for circular parenthood in snippet dirs 2013-05-05 20:42:33 -04:00
João Távora
35493b8f06 Fix: enclose this test in WITH-TEMP-BUFFER 2012-12-25 04:30:26 +00:00
João Távora
74e8f43f06 Closes #351: sort mirrors by nesting depth when updating 2012-12-25 04:30:19 +00:00
João Távora
810de9a4b0 Add: unit test for YAS-MINOR-MODE-MAP rebindings 2012-12-24 01:45:59 +00:00
João Távora
e5c41c78d2 Fix: tests also use YAS--WITH-TEMPORARY-REDEFINITIONS to make stubs 2012-12-24 01:35:05 +00:00
João Távora
cfefaca284 Fix: cleanup after #333 fix, use 'cl-flet' 2012-11-17 16:38:11 +00:00
Joao Tavora
0778a1b61b Fix: Closes #330 2012-11-16 15:15:24 +00:00
João Távora
185c771ded Closes #253. 2012-11-06 16:28:16 +00:00
João Távora
cd70010b83 Closes #296: No longer use customizable yas-trigger-key and friends.
Use keymaps that the user can customise with `define-key` like all the
other modes
2012-11-06 14:12:18 +00:00
João Távora
f836621480 Fix: correct expectation for this test in batch-mode 2012-11-06 14:09:51 +00:00
João Távora
1774d7cbd0 Add: easier to run tests 2012-11-06 13:27:37 +00:00
João Távora
9503c332f5 Closes #290: problem when advancing the start of a mirror-in-field
* Rewrote 'yas--update-mirrors'
* Added unit test
* Advancing is done exceptionally in 'yas--update-mirrors'
  not 'yas--mirror-update-display' and just before we need to
  re-update the mirror-in-field.
* Alternative to prior point would be to have fields carry a reference
  to their child mirrors.
2012-08-22 00:52:17 +01:00
João Távora
7981f8d63b Closes #281: jit-load in reverse order to maintain coherence with yas-snippet-dirs 2012-08-15 15:38:10 +01:00
Joao Tavora
951fb3cbe7 Fix: recursive delete-directory does not exist in Emacs 23 2012-08-07 12:07:32 +01:00
Joao Tavora
38093c1a9e Fix: default value for yas-trigger-key is not "<tab>" not "TAB"
After some exploration, this seems to be the more correct default.
Corrected test that checks for correct binding in org-mode, pass in emacs23 and emacs24
2012-08-07 12:06:53 +01:00
João Távora
32c65dff47 Enhancement: add some keybinding tests 2012-08-06 09:10:54 +01:00
João Távora
fd282faaa7 Cleanup: remove unneeded test and reorganize 2012-08-05 22:32:31 +01:00
Joao Tavora
c967f74847 Closes #271: 4th try, with backquote, need protection before collection
* Add one more test, probably will need even more.
2012-08-03 18:36:29 +01:00
Joao Tavora
197104b450 Closes #271: 3rd try, protect escapes after collecting backquote elisp
* Add more tests
* Now only need to escape backslashes in mirror/field
  transformations
2012-08-03 11:03:11 +01:00
Joao Tavora
6aff6a0894 Closes #271: 2nd try, remove unescaping of backquote replacements
* Fixes previous fix (big blunder, expansion unusable)
* Added more tests
* Fixed previously broken tests.
2012-08-02 16:48:13 +01:00
João Távora
f35d2dba11 Closes #271: save backquoted elisp and re-insert at end of expansion 2012-08-01 23:38:19 +01:00
João Távora
6be1de4a09 incomplete: preparing tests to fix #271 2012-08-01 21:49:46 +01:00
João Távora
668efefdd4 refactor: redo and document some of the menu-bar code, also add tests 2012-07-22 19:11:28 +01:00
João Távora
90cd855c14 Rename all non-external symbols to yas--.
Maitain list of external symbols in `yas--exported-syms`
2012-07-19 02:39:12 +01:00
João Távora
a51adba93d Rename all symbols to yas-* but alias the old yas/* for backward compatibility
Bump version to 0.8
All files use unix file endings
2012-07-18 16:14:56 +01:00
João Távora
1e3fdfd318 cleanup: remove crlf line endings 2012-06-30 20:01:25 +01:00
João Távora
b347b61360 bugfix: better with-snippet-dirs macro 2012-06-30 20:00:11 +01:00
João Távora
fcb4dfe43d jit-loading: some minor refactoring and better tests 2012-04-29 12:43:42 +01:00
João Távora
d317a408c3 enhancement: test snippet compilation and loading. refactor test helpers 2012-04-22 16:34:12 +01:00
João Távora
a948b92aa2 bugfix: also exit all snippets at end of should-expand test 2012-04-22 16:30:58 +01:00
João Távora
4ae3bc0aff with-snippet-dirs: correct use of unwind-protect 2012-04-22 16:29:57 +01:00
João Távora
9dedf91209 with-snippet-dirs: use UNWIND-PROTECT 2012-04-21 11:58:12 +01:00
João Távora
59e18a999e Richer tests 2012-03-26 03:44:01 +01:00
Joao Tavora
2188a9d1d1 Some loading/reloading with useful fixture code 2012-03-20 09:15:07 +00:00
Joao Tavora
66e804dad0 Added a few ert unit tests, mostly for very basic snippet mechanics 2012-03-13 11:23:38 +00:00