1031 Commits

Author SHA1 Message Date
Noam Postavsky
e46d9c7410 link to docstring ref; fix other links, formatting 2013-11-26 23:09:17 -05:00
Noam Postavsky
7b82424735 move index.org subsection into snippet-expansion.org 2013-11-26 23:09:16 -05:00
Noam Postavsky
fd8423cb63 fix links 2013-11-26 23:09:16 -05:00
Noam Postavsky
875ef77dfb move index.org subsection into snippet-organization.org
This almost completely overwrites the existing snippet-organization.org
which was imported from snippet-organization.rst via pandoc.
2013-11-26 23:09:16 -05:00
Noam Postavsky
5acc976712 split symbol reference into separate file 2013-11-26 23:09:16 -05:00
Noam Postavsky
f6cace08f3 convert old rst manuals to org mode
This is just the initial conversion with pandoc, they still need to be
fixed up. Also define new org files as a project in yas-doc-helper.el.
2013-11-26 23:09:16 -05:00
Noam Postavsky
d451fef0ab rename manual.org to index.org 2013-11-26 23:09:16 -05:00
Noam Postavsky
c7c65163e5 don't use link abbreviations
It's unnecessary indirection when there aren't multiple links to the
same site.
2013-11-26 23:09:16 -05:00
João Távora
81e26b418c Merge pull request #431 from ignisf/update-snippet-submodules
Migrate to snippets maintained by the TextMate community
2013-11-25 16:10:22 -08:00
Petko Bordjukov
042837d542 Migrate to snippets maintained by the TextMate community 2013-11-25 22:51:02 +02:00
João Távora
3002594c0e Merge pull request #430 from npostavs/org-doc 2013-11-24 17:49:29 -08:00
Noam Postavsky
8e8320fadb remove reference to yas-trigger-key 2013-11-23 14:38:43 -05:00
Noam Postavsky
fdd550a698 Fix screencast link. 2013-11-23 14:20:50 -05:00
Noam Postavsky
b20f0a4270 fix exporting of doc strings for org manual
need to pass (1+ level) to yas--document-symbol
2013-11-23 13:31:38 -05:00
Noam Postavsky
bc4cfbbb04 yas/ -> yas- 2013-11-12 01:55:05 -05:00
Noam Postavsky
a4a7e5e31e fix typo: .yas.parents -> .yas-parents
same as 8853127, for org
2013-11-12 01:47:46 -05:00
Noam Postavsky
f5457dfa33 Go back to org manual 2013-11-12 01:42:44 -05:00
Joao Tavora
4732c6993b doc: add commentary section, ran checkdoc 2013-11-07 09:11:41 +00:00
Joao Tavora
ef1747d947 fix: must sometimes chain object to the end of parent of previous object 2013-11-07 00:49:52 +00:00
Joao Tavora
ff48006f55 fix: sort by nesting depth before initial mirror update
this is still incomplete, but should be enough for most cases
2013-11-07 00:46:08 +00:00
Joao Tavora
660b90a746 refactor: reorganize code around to shoosh compiler 2013-11-06 14:36:24 +00:00
Joao Tavora
f1a40e5b57 refactor: less macroexpanded code, simplify marker management 2013-11-06 14:27:06 +00:00
Joao Tavora
539c143d49 wip: even closer 2013-11-06 11:15:51 +00:00
Joao Tavora
891c76fa71 wip: in the green! 2013-11-06 10:02:59 +00:00
Joao Tavora
98946135a9 wip: just one test failing 2013-11-06 08:45:01 +00:00
Joao Tavora
fc8804471a wip: fix a trivial test 2013-11-06 01:07:55 +00:00
Joao Tavora
dc12a8b4a2 wip: some tests already passing, but lambda scheme sucks 2013-11-06 01:05:39 +00:00
Joao Tavora
c5f62d81ae wip: still broken, but closer 2013-11-06 00:13:29 +00:00
Joao Tavora
7b7d2cea53 wip: on-going refactor, broken 2013-11-05 19:55:08 +00:00
Joao Tavora
d04d5dbae6 add: field ordering and snippet exits 2013-11-04 01:00:03 +00:00
Joao Tavora
b789c13f75 doc: update doc and clarify interface 2013-11-02 14:42:41 +00:00
Joao Tavora
782c57985b fix: don't need this function anymore 2013-11-02 13:25:43 +00:00
Joao Tavora
4ece494427 fix: better logic for wrapping selected text and writing mirror transforms 2013-11-02 01:00:03 +00:00
Joao Tavora
f32e4fe2ea fix: better input validation 2013-11-02 00:59:31 +00:00
João Távora
0f67c07ddd Merge pull request #424 from ljos/de/activate-extra-mode
Feature: de/activate-extra-mode
2013-10-31 06:28:26 -07:00
Joao Tavora
6ee3d2e0b6 Closes #404: merge remote-tracking branch 'npostavs/widen' 2013-10-31 13:03:42 +01:00
Joao Tavora
43a484e943 add: external test for issue #404 2013-10-31 13:03:32 +01:00
Joao Tavora
db38009ee8 add: support expansion-time evaluation forms and validate some input 2013-10-31 01:35:19 +00:00
Noam Postavsky
d7b2b89eaa widen before deleting regions
This avoid problems with c-mode's after change hooks.
2013-10-30 18:25:51 -04:00
Joao Tavora
f76b876c53 refactor: use new 2013-10-30 16:28:46 +01:00
Bjarte Johansen
d5d6e456bf Feature: de/activate-extra-mode
Adds functionality to deactivate/activate extra modes. Two new functions
are added: `activate-extra-mode', `deactivate-extra-mode'. These two
functions activate and deactivate snippets for the given mode in the
current buffer. The use-case for the functions is to have a simple
interface for adding new snippets when activating a new minor mode.

The previous way of doing this, using `yas-extra-modes', is made
obsolete and the new deactivate/activate should be the preferred
instead. The reason for making `yas-extra-modes' obsolete is to keep a
simple interface.

See issue #420 for more information.
2013-10-27 20:38:12 +01:00
João Távora
84b7e69413 Merge pull request #423 from npostavs/load-snippet-ui
Improve load snippet ui
2013-10-26 16:37:17 -07:00
Noam Postavsky
33dff9ad12 let C-c C-c save existing snippets too 2013-10-26 14:40:50 -04:00
Noam Postavsky
205b0e6970 move snippet saving from loading to closing
yas-load-snippet-buffer now just loads the snippet,
yas-load-snippet-buffer-and-close also saves it.
2013-10-26 13:42:32 -04:00
Noam Postavsky
ffd497d541 don't kill snippet buffer unless saved
Split the quit-window part of yas-load-snippet-buffer into
yas-load-snippet-buffer-and-close, and only quit if the snippet was
saved.

This resolves #417, where you could lose a snippet by giving the wrong
answer in a prompt.
2013-10-26 12:11:04 -04:00
Joao Tavora
32ee5cbde5 Closes #415: remove c-specific hacks, harmful on emacs 24.3 2013-10-21 09:28:44 +01:00
Joao Tavora
478211060c add: nested fields and nested field skipping 2013-10-20 13:41:32 +01:00
Joao Tavora
5a067b8d3a add: tests for clearing unmodified fields 2013-10-20 12:45:23 +01:00
Joao Tavora
fe4b622a5e add: some contrived tests for marker handling in adjancent fields 2013-10-20 12:43:21 +01:00
Joao Tavora
90528b1664 fix: no need for eval here, since make-snippet is a function 2013-10-20 12:42:19 +01:00