Browse files

Add yasnippet

  • Loading branch information...
1 parent 1e177b1 commit 7c6b6142473035d4db0f15eb08fa0f92b66d9c75 @ereslibre committed Oct 31, 2011
Showing with 69,747 additions and 2 deletions.
  1. +1 −2 .emacs
  2. +8 −0 .emacs.d/yasnippet/README
  3. +79 −0 .emacs.d/yasnippet/Rakefile
  4. +381 −0 .emacs.d/yasnippet/doc/changelog.html
  5. +319 −0 .emacs.d/yasnippet/doc/changelog.rst
  6. +110 −0 .emacs.d/yasnippet/doc/compile-doc.py
  7. +78 −0 .emacs.d/yasnippet/doc/define_snippet.html
  8. +9 −0 .emacs.d/yasnippet/doc/define_snippet.rst
  9. +189 −0 .emacs.d/yasnippet/doc/faq.html
  10. +150 −0 .emacs.d/yasnippet/doc/faq.rst
  11. +279 −0 .emacs.d/yasnippet/doc/html4css1.css
  12. BIN .emacs.d/yasnippet/doc/images/bg-content-left.png
  13. BIN .emacs.d/yasnippet/doc/images/bg-content-right.png
  14. BIN .emacs.d/yasnippet/doc/images/bg-content.png
  15. BIN .emacs.d/yasnippet/doc/images/bg-navigation-item-hover.png
  16. BIN .emacs.d/yasnippet/doc/images/bg-navigation-item.png
  17. BIN .emacs.d/yasnippet/doc/images/bg-navigation.png
  18. BIN .emacs.d/yasnippet/doc/images/body.png
  19. BIN .emacs.d/yasnippet/doc/images/customization-group.png
  20. BIN .emacs.d/yasnippet/doc/images/dropdown-menu.png
  21. BIN .emacs.d/yasnippet/doc/images/external.png
  22. BIN .emacs.d/yasnippet/doc/images/ido-menu.png
  23. BIN .emacs.d/yasnippet/doc/images/menu-1.png
  24. BIN .emacs.d/yasnippet/doc/images/menu-2.png
  25. BIN .emacs.d/yasnippet/doc/images/menu-groups.png
  26. BIN .emacs.d/yasnippet/doc/images/menu-parent.png
  27. BIN .emacs.d/yasnippet/doc/images/minor-mode-indicator.png
  28. BIN .emacs.d/yasnippet/doc/images/x-menu.png
  29. +201 −0 .emacs.d/yasnippet/doc/index.html
  30. +133 −0 .emacs.d/yasnippet/doc/index.rst
  31. +623 −0 .emacs.d/yasnippet/doc/snippet-development.html
  32. +660 −0 .emacs.d/yasnippet/doc/snippet-development.rst
  33. +432 −0 .emacs.d/yasnippet/doc/snippet-expansion.html
  34. +406 −0 .emacs.d/yasnippet/doc/snippet-expansion.rst
  35. +141 −0 .emacs.d/yasnippet/doc/snippet-menu.html
  36. +85 −0 .emacs.d/yasnippet/doc/snippet-menu.rst
  37. +292 −0 .emacs.d/yasnippet/doc/snippet-organization.html
  38. +253 −0 .emacs.d/yasnippet/doc/snippet-organization.rst
  39. +142 −0 .emacs.d/yasnippet/doc/styles.css
  40. +67 −0 .emacs.d/yasnippet/doc/template.txt
  41. +251 −0 .emacs.d/yasnippet/dropdown-list.el
  42. +690 −0 .emacs.d/yasnippet/extras/imported/html-mode/.yas-setup.el
  43. +88 −0 .emacs.d/yasnippet/extras/imported/objc-mode/.yas-setup.el
  44. 0 .emacs.d/yasnippet/extras/imported/objc-mode/Support/.yas-skip
  45. +59,477 −0 .emacs.d/yasnippet/extras/imported/objc-mode/Support/alldefs.txt
  46. +1,257 −0 .emacs.d/yasnippet/extras/imported/rails-mode/.yas-setup.el
  47. +1,031 −0 .emacs.d/yasnippet/extras/imported/ruby-mode/.yas-setup.el
  48. +520 −0 .emacs.d/yasnippet/extras/textmate_import.rb
  49. +1 −0 .emacs.d/yasnippet/snippets/c++-mode/.yas-parents
  50. +3 −0 .emacs.d/yasnippet/snippets/c++-mode/beginend
  51. +8 −0 .emacs.d/yasnippet/snippets/c++-mode/class
  52. +3 −0 .emacs.d/yasnippet/snippets/c++-mode/ns
  53. +3 −0 .emacs.d/yasnippet/snippets/c++-mode/template
  54. +4 −0 .emacs.d/yasnippet/snippets/c++-mode/using
  55. +1 −0 .emacs.d/yasnippet/snippets/c-mode/.yas-parents
  56. +3 −0 .emacs.d/yasnippet/snippets/c-mode/fopen
  57. +6 −0 .emacs.d/yasnippet/snippets/c-mode/printf
  58. +1 −0 .emacs.d/yasnippet/snippets/cc-mode/.yas-parents
  59. +6 −0 .emacs.d/yasnippet/snippets/cc-mode/do
  60. +6 −0 .emacs.d/yasnippet/snippets/cc-mode/for
  61. +6 −0 .emacs.d/yasnippet/snippets/cc-mode/if
  62. +3 −0 .emacs.d/yasnippet/snippets/cc-mode/inc
  63. +3 −0 .emacs.d/yasnippet/snippets/cc-mode/inc.1
  64. +7 −0 .emacs.d/yasnippet/snippets/cc-mode/main
  65. +8 −0 .emacs.d/yasnippet/snippets/cc-mode/once
  66. +6 −0 .emacs.d/yasnippet/snippets/cc-mode/struct
  67. +1 −0 .emacs.d/yasnippet/snippets/cperl-mode/.yas-parents
  68. +1 −0 .emacs.d/yasnippet/snippets/csharp-mode/.yas-parents
  69. +7 −0 .emacs.d/yasnippet/snippets/csharp-mode/attrib
  70. +21 −0 .emacs.d/yasnippet/snippets/csharp-mode/attrib.1
  71. +21 −0 .emacs.d/yasnippet/snippets/csharp-mode/attrib.2
  72. +21 −0 .emacs.d/yasnippet/snippets/csharp-mode/class
  73. +6 −0 .emacs.d/yasnippet/snippets/csharp-mode/comment
  74. +4 −0 .emacs.d/yasnippet/snippets/csharp-mode/comment.1
  75. +4 −0 .emacs.d/yasnippet/snippets/csharp-mode/comment.2
  76. +4 −0 .emacs.d/yasnippet/snippets/csharp-mode/comment.3
  77. +10 −0 .emacs.d/yasnippet/snippets/csharp-mode/method
  78. +7 −0 .emacs.d/yasnippet/snippets/csharp-mode/namespace
  79. +16 −0 .emacs.d/yasnippet/snippets/csharp-mode/prop
  80. +6 −0 .emacs.d/yasnippet/snippets/csharp-mode/region
  81. +4 −0 .emacs.d/yasnippet/snippets/csharp-mode/using
  82. +4 −0 .emacs.d/yasnippet/snippets/csharp-mode/using.1
  83. +4 −0 .emacs.d/yasnippet/snippets/csharp-mode/using.2
  84. +1 −0 .emacs.d/yasnippet/snippets/css-mode/.yas-parents
  85. +3 −0 .emacs.d/yasnippet/snippets/css-mode/bg
  86. +3 −0 .emacs.d/yasnippet/snippets/css-mode/bg.1
  87. +3 −0 .emacs.d/yasnippet/snippets/css-mode/bor
  88. +4 −0 .emacs.d/yasnippet/snippets/css-mode/cl
  89. +4 −0 .emacs.d/yasnippet/snippets/css-mode/disp.block
  90. +4 −0 .emacs.d/yasnippet/snippets/css-mode/disp.inline
  91. +4 −0 .emacs.d/yasnippet/snippets/css-mode/disp.none
  92. +4 −0 .emacs.d/yasnippet/snippets/css-mode/ff
  93. +4 −0 .emacs.d/yasnippet/snippets/css-mode/fs
  94. +4 −0 .emacs.d/yasnippet/snippets/css-mode/mar.bottom
  95. +4 −0 .emacs.d/yasnippet/snippets/css-mode/mar.left
  96. +4 −0 .emacs.d/yasnippet/snippets/css-mode/mar.mar
  97. +4 −0 .emacs.d/yasnippet/snippets/css-mode/mar.margin
  98. +4 −0 .emacs.d/yasnippet/snippets/css-mode/mar.right
  99. +4 −0 .emacs.d/yasnippet/snippets/css-mode/mar.top
  100. +4 −0 .emacs.d/yasnippet/snippets/css-mode/pad.bottom
  101. +4 −0 .emacs.d/yasnippet/snippets/css-mode/pad.left
  102. +4 −0 .emacs.d/yasnippet/snippets/css-mode/pad.pad
  103. +4 −0 .emacs.d/yasnippet/snippets/css-mode/pad.padding
  104. +4 −0 .emacs.d/yasnippet/snippets/css-mode/pad.right
  105. +4 −0 .emacs.d/yasnippet/snippets/css-mode/pad.top
  106. +7 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/.read_me
  107. +1 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/.yas-parents
  108. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/add-hook.yasnippet
  109. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/and.yasnippet
  110. +5 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/append.yasnippet
  111. +5 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/apply.yasnippet
  112. +5 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/aref.yasnippet
  113. +5 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/aset.yasnippet
  114. +5 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/assq.yasnippet
  115. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/autoload.yasnippet
  116. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/backward-char.yasnippet
  117. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/beginning-of-line.yasnippet
  118. +7 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/bounds-of-thing-at-point.yasnippet
  119. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/buffer-file-name.yasnippet
  120. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/buffer-modified-p.yasnippet
  121. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/buffer-substring-no-properties.yasnippet
  122. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/buffer-substring.yasnippet
  123. +5 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/car.yasnippet
  124. +5 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/cdr.yasnippet
  125. +5 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/concat.yasnippet
  126. +8 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/cond.yasnippet
  127. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/condition-case.yasnippet
  128. +5 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/cons.yasnippet
  129. +5 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/consp.yasnippet
  130. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/copy-directory.yasnippet
  131. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/copy-file.yasnippet
  132. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/current-buffer.yasnippet
  133. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/custom-autoload.yasnippet
  134. +5 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/defalias.yasnippet
  135. +5 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/defcustom.yasnippet
  136. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/define-key.yasnippet
  137. +5 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/defsubst.yasnippet
  138. +12 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/defun.yasnippet
  139. +5 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/defvar.yasnippet
  140. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/delete-char.yasnippet
  141. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/delete-directory.yasnippet
  142. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/delete-file.yasnippet
  143. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/delete-region.yasnippet
  144. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/directory-files.yasnippet
  145. +5 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/dolist.yasnippet
  146. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/end-of-line.yasnippet
  147. +5 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/eq.yasnippet
  148. +5 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/equal.yasnippet
  149. +5 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/error.yasnippet
  150. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/expand-file-name.yasnippet
  151. +5 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/f.yasnippet
  152. +5 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/fboundp.yasnippet
  153. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/file-name-directory.yasnippet
  154. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/file-name-extension.yasnippet
  155. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/file-name-nondirectory.yasnippet
  156. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/file-name-sans-extension.yasnippet
  157. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/file-relative-name.yasnippet
  158. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/find-file.yasnippet
  159. +5 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/format.yasnippet
  160. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/forward-char.yasnippet
  161. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/forward-line.yasnippet
  162. +5 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/funcall.yasnippet
  163. +5 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/function.yasnippet
  164. +5 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/get.yasnippet
  165. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/global-set-key.yasnippet
  166. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/goto-char.yasnippet
  167. +5 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/if.yasnippet
  168. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/insert-file-contents.yasnippet
  169. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/insert.yasnippet
  170. +5 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/interactive.yasnippet
  171. +5 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/kbd.yasnippet
  172. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/kill-buffer.yasnippet
  173. +5 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/lambda.yasnippet
  174. +5 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/length.yasnippet
  175. +8 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/let.yasnippet
  176. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/line-beginning-position.yasnippet
  177. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/line-end-position.yasnippet
  178. +5 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/list.yasnippet
  179. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/looking-at.yasnippet
  180. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/make-directory.yasnippet
  181. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/make-local-variable.yasnippet
  182. +5 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/mapc.yasnippet
  183. +5 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/mapcar.yasnippet
  184. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/match-beginning.yasnippet
  185. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/match-end.yasnippet
  186. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/match-string.yasnippet
  187. +5 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/memq.yasnippet
  188. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/message.yasnippet
  189. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/not.yasnippet
  190. +5 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/nth.yasnippet
  191. +5 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/null.yasnippet
  192. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/number-to-string.yasnippet
  193. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/or.yasnippet
  194. +5 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/point-max.yasnippet
  195. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/point-min.yasnippet
  196. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/point.yasnippet
  197. +5 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/princ.yasnippet
  198. +5 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/print.yasnippet
  199. +5 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/progn.yasnippet
  200. +5 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/push.yasnippet
  201. +5 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/put.yasnippet
  202. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/re-search-backward.yasnippet
  203. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/re-search-forward.yasnippet
  204. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/region-active-p.yasnippet
  205. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/region-beginning.yasnippet
  206. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/region-end.yasnippet
  207. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/rename-file.yasnippet
  208. +5 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/repeat.yasnippet
  209. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/replace-regexp-in-string.yasnippet
  210. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/replace-regexp.yasnippet
  211. +5 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/require.yasnippet
  212. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/save-buffer.yasnippet
  213. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/save-excursion.yasnippet
  214. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/search-backward-regexp.yasnippet
  215. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/search-backward.yasnippet
  216. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/search-forward-regexp.yasnippet
  217. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/search-forward.yasnippet
  218. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/set-buffer.yasnippet
  219. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/set-file-modes.yasnippet
  220. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/set-mark.yasnippet
  221. +5 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/set.yasnippet
  222. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/setq.yasnippet
  223. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/skip-chars-backward.yasnippet
  224. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/skip-chars-forward.yasnippet
  225. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/split-string.yasnippet
  226. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/string-match.yasnippet
  227. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/string-to-number.yasnippet
  228. +5 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/string.yasnippet
  229. +5 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/string=.yasnippet
  230. +5 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/stringp.yasnippet
  231. +5 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/substring.yasnippet
  232. +7 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/thing-at-point.yasnippet
  233. +5 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/unless.yasnippet
  234. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/vector.yasnippet
  235. +5 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/when.yasnippet
  236. +5 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/while.yasnippet
  237. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/widget-get.yasnippet
  238. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/with-current-buffer.yasnippet
  239. +16 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/x-dired.process_marked.yasnippet
  240. +17 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/x-file.process.yasnippet
  241. +17 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/x-file.read-lines.yasnippet
  242. +17 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/x-find-replace.yasnippet
  243. +4 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/x-grabstring.yasnippet
  244. +4 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/x-grabthing.yasnippet
  245. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/x-traverse_dir.yasnippet
  246. +27 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/x-word-or-region.yasnippet
  247. +6 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/y-or-n-p.yasnippet
  248. +5 −0 .emacs.d/yasnippet/snippets/emacs-lisp-mode/yes-or-no-p.yasnippet
  249. +1 −0 .emacs.d/yasnippet/snippets/erlang-mode/.yas-parents
  250. +4 −0 .emacs.d/yasnippet/snippets/erlang-mode/after
  251. +5 −0 .emacs.d/yasnippet/snippets/erlang-mode/begin
  252. +4 −0 .emacs.d/yasnippet/snippets/erlang-mode/beh
  253. +5 −0 .emacs.d/yasnippet/snippets/erlang-mode/case
  254. +4 −0 .emacs.d/yasnippet/snippets/erlang-mode/compile
  255. +4 −0 .emacs.d/yasnippet/snippets/erlang-mode/def
  256. +5 −0 .emacs.d/yasnippet/snippets/erlang-mode/exp
  257. +3 −0 .emacs.d/yasnippet/snippets/erlang-mode/fun
  258. +6 −0 .emacs.d/yasnippet/snippets/erlang-mode/if
  259. +5 −0 .emacs.d/yasnippet/snippets/erlang-mode/ifdef
  260. +5 −0 .emacs.d/yasnippet/snippets/erlang-mode/ifndef
  261. +5 −0 .emacs.d/yasnippet/snippets/erlang-mode/imp
  262. +4 −0 .emacs.d/yasnippet/snippets/erlang-mode/inc
  263. +4 −0 .emacs.d/yasnippet/snippets/erlang-mode/inc.lib
  264. +8 −0 .emacs.d/yasnippet/snippets/erlang-mode/loop
  265. +6 −0 .emacs.d/yasnippet/snippets/erlang-mode/mod
  266. +5 −0 .emacs.d/yasnippet/snippets/erlang-mode/rcv
  267. +6 −0 .emacs.d/yasnippet/snippets/erlang-mode/rcv.after
  268. +4 −0 .emacs.d/yasnippet/snippets/erlang-mode/rec
  269. +7 −0 .emacs.d/yasnippet/snippets/erlang-mode/try
  270. +4 −0 .emacs.d/yasnippet/snippets/erlang-mode/undef
  271. +1 −0 .emacs.d/yasnippet/snippets/f90-mode/.yas-parents
  272. +4 −0 .emacs.d/yasnippet/snippets/f90-mode/au
  273. +4 −0 .emacs.d/yasnippet/snippets/f90-mode/bd
  274. +4 −0 .emacs.d/yasnippet/snippets/f90-mode/c
  275. +4 −0 .emacs.d/yasnippet/snippets/f90-mode/ch
  276. +4 −0 .emacs.d/yasnippet/snippets/f90-mode/cx
  277. +4 −0 .emacs.d/yasnippet/snippets/f90-mode/dc
  278. +6 −0 .emacs.d/yasnippet/snippets/f90-mode/do
  279. +4 −0 .emacs.d/yasnippet/snippets/f90-mode/dp
  280. +4 −0 .emacs.d/yasnippet/snippets/f90-mode/eq
  281. +4 −0 .emacs.d/yasnippet/snippets/f90-mode/ib
  282. +4 −0 .emacs.d/yasnippet/snippets/f90-mode/ic
  283. +4 −0 .emacs.d/yasnippet/snippets/f90-mode/ich
  284. +6 −0 .emacs.d/yasnippet/snippets/f90-mode/if
  285. +4 −0 .emacs.d/yasnippet/snippets/f90-mode/ii
  286. +4 −0 .emacs.d/yasnippet/snippets/f90-mode/il
  287. +4 −0 .emacs.d/yasnippet/snippets/f90-mode/in
  288. +4 −0 .emacs.d/yasnippet/snippets/f90-mode/inc
  289. +4 −0 .emacs.d/yasnippet/snippets/f90-mode/intr
  290. +4 −0 .emacs.d/yasnippet/snippets/f90-mode/ir
  291. +4 −0 .emacs.d/yasnippet/snippets/f90-mode/l
  292. +4 −0 .emacs.d/yasnippet/snippets/f90-mode/pa
  293. +6 −0 .emacs.d/yasnippet/snippets/f90-mode/pr
  294. +4 −0 .emacs.d/yasnippet/snippets/f90-mode/re
  295. +4 −0 .emacs.d/yasnippet/snippets/f90-mode/st
  296. +4 −0 .emacs.d/yasnippet/snippets/f90-mode/su
  297. +4 −0 .emacs.d/yasnippet/snippets/f90-mode/wr
  298. 0 .emacs.d/yasnippet/snippets/html-mode/.yas-make-groups
  299. +1 −0 .emacs.d/yasnippet/snippets/html-mode/.yas-parents
  300. +4 −0 .emacs.d/yasnippet/snippets/html-mode/b.yasnippet
Sorry, we could not display the entire diff because too many files (612) changed.
View
3 .emacs
@@ -69,10 +69,9 @@
; set default compile command
(setq compile-command "cd ~/proyectos/ideallibrary ; ./waf")
; yasnippet
-(add-to-list 'load-path "/usr/share/emacs/site-lisp/yas")
+(add-to-list 'load-path "~/.emacs.d/yasnippet")
(require 'yasnippet)
(yas/initialize)
-(yas/load-directory "/usr/share/emacs/site-lisp/yas/snippets")
(yas/load-directory "~/.emacs.d/yasnippet/snippets")
(add-hook 'yas/after-exit-snippet-hook
'(lambda ()
View
8 .emacs.d/yasnippet/README
@@ -0,0 +1,8 @@
+YASnippet re-design and re-writing of my original extension
+smart-snippet. The goal is ease of use and full features.
+
+For detailed document, you can either download the document
+release of YASnippet or view it directly online:
+
+http://pluskid.lifegoo.com/upload/project/yasnippet/doc/index.html
+
View
79 .emacs.d/yasnippet/Rakefile
@@ -0,0 +1,79 @@
+# -*- Ruby -*-
+
+require 'fileutils'
+
+def find_version
+ File.read("yasnippet.el") =~ /;; Package-version: *([0-9.]+[a-z]?) *$/
+ $version = $1
+end
+find_version
+FileUtils.mkdir_p('pkg')
+
+desc "generate bundle file for classic snippets."
+task :bundle do
+ sh 'emacs --batch -l yasnippet.el --eval "(yas/compile-bundle)"'
+ sh "tar czf pkg/yasnippet-bundle-#{$version}.el.tgz yasnippet-bundle.el"
+end
+
+desc "generate bundle file for textmate snippets."
+task :textmate_bundle => [:convert] do
+ sh 'emacs --batch -l yasnippet.el --eval "(yas/compile-textmate-bundle)"'
+ sh "tar czf pkg/yasnippet-textmate-bundle-#{$version}.el.tgz yasnippet-textmate-bundle.el"
+end
+
+desc "convert some textmate bundles to yasnippets"
+task :convert_bundles do
+ sh 'for bundle in html ruby rails css; do ./extras/textmate_import.rb -d extras/bundles/$bundle-tmbundle -o extras/imported/$bundle-mode -q ; done'
+end
+
+desc "create a release package"
+task :package do
+ release_dir = "pkg/yasnippet-#{$version}"
+ FileUtils.mkdir_p(release_dir)
+ files = ['extras', 'snippets', 'yasnippet.el', 'dropdown-list.el']
+ FileUtils.cp_r files, release_dir
+ FileUtils.rm_r Dir[release_dir + "/**/.svn"]
+ FileUtils.cd 'pkg'
+ sh "tar cjf yasnippet-#{$version}.tar.bz2 yasnippet-#{$version}"
+ FileUtils.cd ".."
+end
+
+desc "create a release package and upload it to google code"
+task :release => [:bundle, :package, 'doc:archive'] do
+ sh "googlecode_upload.py -s \"YASnippet Release #{$version}\"" +
+ " -p yasnippet -l \"Featured,Type-Package,OpSys-All\"" +
+ " pkg/yasnippet-#{$version}.tar.bz2"
+ sh "googlecode_upload.py -s \"YASnippet Bundle #{$version}\"" +
+ " -p yasnippet -l \"Featured,Type-Package,OpSys-All\"" +
+ " pkg/yasnippet-bundle-#{$version}.el.tgz"
+ sh "googlecode_upload.py -s \"YASnippet Document #{$version}\"" +
+ " -p yasnippet -l \"Featured,Type-Docs,OpSys-All\"" +
+ " pkg/yasnippet-doc-#{$version}.tar.bz2"
+ FileUtils.cp "yasnippet-bundle.el", "pkg/yasnippet-bundle-#{$version}.el"
+ sh "echo for ELPA | mutt -a pkg/yasnippet-bundle-#{$version}.el -s " +
+ "'YASnippet bundle v#{$version}' elpa@tromey.com"
+end
+
+rule '.html' => '.rst' do |t|
+ sh "doc/compile-doc.py #{t.source} > #{t.name}"
+end
+desc "Generate document"
+task :doc => FileList['doc/*.rst'].ext('html')
+
+namespace :doc do
+ task :archive do
+ release_dir = "pkg/yasnippet-#{$version}"
+ FileUtils.mkdir_p(release_dir)
+ sh "tar cjf pkg/yasnippet-doc-#{$version}.tar.bz2 " +
+ "--exclude=doc/.svn --exclude=doc/images/.svn doc/*.html doc/images"
+ end
+end
+
+desc "Compile yasnippet.el into yasnippet.elc"
+
+rule '.elc' => '.el' do |t|
+ sh "emacs --batch -L . --eval \"(byte-compile-file \\\"#{t.source}\\\")\""
+end
+task :compile => FileList["yasnippet.el", "dropdown-list.el"].ext('elc')
+
+task :default => :doc
View
381 .emacs.d/yasnippet/doc/changelog.html
@@ -0,0 +1,381 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<meta name="generator" content="Docutils 0.6: http://docutils.sourceforge.net/" />
+<title>ChangeLog</title>
+<link rel="stylesheet" href="styles.css" type="text/css" />
+</head>
+<body>
+<div class="document" id="changelog">
+<div id="header-region" class="clear-block"></div>
+<div id="wrapper">
+ <div id="container" class="clear-block">
+ <div id="header">
+ <div id="logo-floater">
+ <h1 class="title">ChangeLog</h1>
+ </div>
+ <ul class="primary-links">
+ <li>
+ <a title="" href="index.html">Intro and tutorial</a>
+ </li>
+ <li>
+ <a title="" href="snippet-organization.html">Howto: organize</a>
+ </li>
+ <li>
+ <a title="" href="snippet-expansion.html">Howto: expand</a>
+ </li>
+ <li>
+ <a title="" href="snippet-development.html">Howto: write </a>
+ </li>
+ <li>
+ <a title="" href="snippet-menu.html">Howto: menu </a>
+ </li>
+ <li>
+ <a title="" href="faq.html">FAQ</a>
+ </li>
+ <li>
+ <a title="" href="changelog.html">ChangeLog</a>
+ </li>
+ <li>
+ <a title="" href="http://code.google.com/p/yasnippet/downloads/list">Download</a>
+ </li>
+ </ul>
+ </div>
+ <div id="center">
+ <div id="squeeze">
+ <div class="right-corner">
+ <div class="left-corner">
+ <p>
+ <b>Important:</b> This documentation applies to
+ the <b>SVN trunk</b> of YASnippet, which you
+ get <a href="http://code.google.com/p/yasnippet/source/checkout">here</a>. Documentation
+ for other versions can be found <a title=""
+ href="http://code.google.com/p/yasnippet/downloads/list">here</a>.
+ </p>
+ <div class="section" id="c-2009-08-13">
+<h1>0.6.1c / 2009-08-13</h1>
+<ul class="simple">
+<li>Fixed <a class="reference external" href="http://code.google.com/p/yasnippet/issues">issues</a> 99, 98, 93,
+90, 91, 88, 87. Thanks everybody.</li>
+<li>More compliant customization group <a class="reference external" href="http://code.google.com/p/yasnippet/issues/detail?id=94">Issue94</a>, (thanks
+wyuenho).</li>
+<li>Added workaround for issue 97 in the FAQ</li>
+<li>Small updates to documentation.</li>
+</ul>
+</div>
+<div class="section" id="b-2009-08-29">
+<h1>0.6.1b / 2009-08-29</h1>
+<ul class="simple">
+<li>Much more powerful menu. See <a class="reference external" href="snippet-menu.html">The YASnippet menu</a>.</li>
+<li>New ways to organize snippets. See <a class="reference external" href="snippet-organization.html">Organizing snippets</a>.</li>
+<li>Added <tt class="docutils literal"><span class="pre">yas/also-auto-indent-first-line</span></tt> customization variable.</li>
+<li>Renamed directive <tt class="docutils literal"><span class="pre">#</span> <span class="pre">env:</span></tt> to <tt class="docutils literal"><span class="pre">#</span> <span class="pre">expand-env:</span></tt></li>
+<li>Rewrote much of the documentation.</li>
+<li>Added TextMate import tool <tt class="docutils literal"><span class="pre">textmate-import.rb</span></tt> to to svn
+repository (see &quot;extras/&quot;)</li>
+<li>Added <em>experimental</em> bundle of textmate snippets
+<tt class="docutils literal"><span class="pre">yasnippet-textmate-bundle.el</span></tt></li>
+<li>Fixed <a class="reference external" href="http://code.google.com/p/yasnippet/issues/detail?id=74">Issue 74</a> (thanks
+rmartin.k...&#64;gmail.com)</li>
+<li>Fixed <a class="reference external" href="http://code.google.com/p/yasnippet/issues/detail?id=80">Issues 80 through 84</a> (thanks
+Moritz Bunkus)</li>
+<li>Fixed many more issues...</li>
+</ul>
+</div>
+<div class="section" id="c-2009-07-27">
+<h1>0.6.0c / 2009-07-27</h1>
+<ul class="simple">
+<li>Now byte compiles correctly with no warnings.</li>
+<li>Fixed <a class="reference external" href="http://code.google.com/p/yasnippet/issues/detail?id=68">Issue 68</a> with
+mouse-clicking alternatives in <tt class="docutils literal"><span class="pre">ido-mode</span></tt>.</li>
+<li>Added <tt class="docutils literal"><span class="pre">yas/also-auto-indent-first-line</span></tt> customization variable.</li>
+</ul>
+</div>
+<div class="section" id="b-2009-07-25">
+<h1>0.6.0b / 2009-07-25</h1>
+<ul class="simple">
+<li>Nested placeholders of the type <tt class="docutils literal"><span class="pre">&lt;div${1:</span> <span class="pre">id=&quot;${2:someid}&quot;}&gt;</span> <span class="pre">$0</span></tt>.</li>
+<li>More robust undo/redo support.</li>
+<li>Stacked snippet expansion (<em>snippet in snippet</em>).</li>
+<li>Transformation on a primary field with syntax <tt class="docutils literal"><span class="pre">${1:default$(transform)}</span></tt></li>
+<li>Validations on field exit through the <tt class="docutils literal"><span class="pre">yas/verify-value</span></tt>
+primary field transformation.</li>
+<li>Wrapping the region in the exit marker <tt class="docutils literal"><span class="pre">$0</span></tt> of the snippet. Use
+<tt class="docutils literal"><span class="pre">yas/wrap-around-region</span></tt>.</li>
+<li>Auto-indentation. Use <tt class="docutils literal"><span class="pre">yas/indent-line</span></tt> set to <tt class="docutils literal"><span class="pre">'auto</span></tt></li>
+<li>Easier definition of snippets. Use <tt class="docutils literal"><span class="pre">yas/find-snippets</span></tt> or
+<tt class="docutils literal"><span class="pre">yas/visit-snippet-file</span></tt>. In the new <tt class="docutils literal"><span class="pre">snippet-mode</span></tt> use
+<tt class="docutils literal"><span class="pre">yas/load-snippet-buffer</span></tt> and <tt class="docutils literal"><span class="pre">yas/tryout-snippet</span></tt>.</li>
+<li>Customization group <tt class="docutils literal"><span class="pre">yasnippet</span></tt>.</li>
+<li>Overriding customization variables in snippets. Use the <tt class="docutils literal"><span class="pre">env:</span>
+<span class="pre">let-form</span></tt> template keyword.</li>
+<li>Fixed <a class="reference external" href="http://code.google.com/p/yasnippet/issues/detail?id=60">Issue 60</a></li>
+<li>Fixed <a class="reference external" href="http://code.google.com/p/yasnippet/issues/detail?id=65">Issue 65</a></li>
+<li>Fixed <a class="reference external" href="http://code.google.com/p/yasnippet/issues/detail?id=56">Issue 56</a></li>
+</ul>
+</div>
+<div class="section" id="id1">
+<h1>0.5.10 / 2009-02-11</h1>
+<ul class="simple">
+<li>Added <em>grouping</em> support so that the snippets in the menu can be
+groupped together.</li>
+<li>Make the bundle <a class="reference external" href="http://tromey.com/elpa/index.html">ELPA</a>
+compatible.</li>
+</ul>
+</div>
+<div class="section" id="id2">
+<h1>0.5.9 / 2009-01-21</h1>
+<ul class="simple">
+<li>Fixed the bug of disabling the auto-indenting of <tt class="docutils literal"><span class="pre">cc-mode</span></tt>.</li>
+</ul>
+</div>
+<div class="section" id="id3">
+<h1>0.5.8 / 2009-01-15</h1>
+<ul class="simple">
+<li>Added a <tt class="docutils literal"><span class="pre">key</span></tt> property in snippet definition for snippet names
+that are not valid path name.</li>
+<li>Fixed some bugs of indenting (<a class="reference external" href="http://code.google.com/p/yasnippet/issues/detail?id=44">Issue 44</a>, <a class="reference external" href="http://code.google.com/p/yasnippet/issues/detail?id=46">Issue
+46</a>).</li>
+<li>Fixed <a class="reference external" href="http://code.google.com/p/yasnippet/issues/detail?id=45">Issue 45</a> by
+providing a proper default value for <tt class="docutils literal"><span class="pre">yas/buffer-local-condition</span></tt>.</li>
+<li>Added helper function <tt class="docutils literal"><span class="pre">yas/substr</span></tt> for convenient mirror
+transformation.</li>
+<li>Make variable <tt class="docutils literal"><span class="pre">yas/registered-snippet</span></tt> properly initialized.</li>
+<li>Fixed the overlay error when overlay becomes empty (<a class="reference external" href="http://code.google.com/p/yasnippet/issues/detail?id=49">Issue 49</a> and
+<a class="reference external" href="http://code.google.com/p/yasnippet/issues/detail?id=48">Issue 48</a>). This
+bug has occurred and been fixed earlier, and should not have
+happened if we have proper regression test.</li>
+<li>Added a workaround for <tt class="docutils literal"><span class="pre">c-electric-</span></tt> serial commands (<a class="reference external" href="http://code.google.com/p/yasnippet/issues/detail?id=27">Issue 27</a>).</li>
+</ul>
+</div>
+<div class="section" id="id4">
+<h1>0.5.7 / 2008-12-03</h1>
+<ul class="simple">
+<li>Fixed <a class="reference external" href="http://code.google.com/p/yasnippet/issues/detail?id=28">Issue 28</a> of
+properly clean up snippet (by joaotavora).</li>
+<li>Added a new section &quot;Field-level undo functionality&quot; to correct
+<a class="reference external" href="http://code.google.com/p/yasnippet/issues/detail?id=33">Issue 33</a>
+(by joaotavora).</li>
+<li>Added some snippets from users for sql, erlang, scala, html, xml, latex, etc.</li>
+<li>Fixed <a class="reference external" href="http://code.google.com/p/yasnippet/issues/detail?id=16">Issue 16</a> by adding
+<tt class="docutils literal"><span class="pre">$&gt;</span></tt> support. Here's the <a class="reference external" href="http://pluskid.lifegoo.com/upload/project/yasnippet/doc/define_snippet.html#indenting">doc for $&gt; indenting</a>.</li>
+</ul>
+</div>
+<div class="section" id="id5">
+<h1>0.5.6 / 2008-08-07</h1>
+<ul class="simple">
+<li>Added a buffer local variable <tt class="docutils literal"><span class="pre">yas/dont-activate</span></tt> to turn off
+<tt class="docutils literal"><span class="pre">yas/minor-mode</span></tt> in some major modes. See <a class="reference external" href="http://code.google.com/p/yasnippet/issues/detail?id=29">Issue 29</a>.</li>
+<li>Make the environment of elisp evaluation more friendly to
+<tt class="docutils literal"><span class="pre">(current-column)</span></tt>.</li>
+<li>Fixed the regular expression bug in python-mode snippets.</li>
+<li>Use filename or full key extension for snippet name if no <tt class="docutils literal"><span class="pre">name</span></tt>
+property is defined.</li>
+</ul>
+</div>
+<div class="section" id="id6">
+<h1>0.5.5 / 2008-05-29</h1>
+<ul class="simple">
+<li>Tweak <tt class="docutils literal"><span class="pre">yas/extra-mode-hooks</span></tt> so that it can be more easily
+customized.</li>
+<li>Add an entry in FAQ about why <tt class="docutils literal"><span class="pre">TAB</span></tt> key doesn't work in some
+modes.</li>
+</ul>
+</div>
+<div class="section" id="id7">
+<h1>0.5.4 / 2008-05-15</h1>
+<ul class="simple">
+<li>Added <tt class="docutils literal"><span class="pre">ox-mode-hook</span></tt> and <tt class="docutils literal"><span class="pre">python-mode-hook</span></tt> to
+<tt class="docutils literal"><span class="pre">yas/extra-mode-hooks</span></tt> to fix the problem YASnippet is not enabled
+in those modes.</li>
+</ul>
+</div>
+<div class="section" id="id8">
+<h1>0.5.3 / 2008-05-07</h1>
+<ul class="simple">
+<li>Fix indent of python-mode snippets.</li>
+<li>Fix a bug of dropdown-list: conflicts with color-theme (<a class="reference external" href="http://code.google.com/p/yasnippet/issues/detail?id=23">Issue 23</a>). Thanks
+Mike.</li>
+<li>Fix a bug of condition system.</li>
+</ul>
+</div>
+<div class="section" id="id9">
+<h1>0.5.2 / 2008-04-20</h1>
+<ul class="simple">
+<li>Fix a bug for comparing string to symbol using <tt class="docutils literal"><span class="pre">string=</span></tt> (which
+will fire an error).</li>
+</ul>
+</div>
+<div class="section" id="id10">
+<h1>0.5.1 / 2008-04-14</h1>
+<ul class="simple">
+<li>Use a beautiful css style in the document.</li>
+</ul>
+</div>
+<div class="section" id="id11">
+<h1>0.5.0 / 2008-04-10</h1>
+<ul class="simple">
+<li>Integrate with hippie-expand. Just add <tt class="docutils literal"><span class="pre">yas/hippie-try-expand</span></tt> to
+<tt class="docutils literal"><span class="pre">hippie-expand-try-functions-list</span></tt>.</li>
+<li>If you set <tt class="docutils literal"><span class="pre">yas/fall-back-behavior</span></tt> to <tt class="docutils literal"><span class="pre">'return-nil</span></tt>, YASnippet
+will return nil when it can't find a snippet to expand.</li>
+<li>Defect fix: the condition of a snippet was evaluated twice in
+earlier version.</li>
+<li>Deleting snippet (using <tt class="docutils literal"><span class="pre">C-w</span></tt> or <tt class="docutils literal"><span class="pre">C-k</span></tt>) won't cause serious
+problem now.</li>
+<li>Several complex snippet for python-mode from Yasser included in the
+distribution.</li>
+</ul>
+</div>
+<div class="section" id="id12">
+<h1>0.4.5 / 2008-04-07</h1>
+<ul class="simple">
+<li>Merge the latest dropdown-list.el.</li>
+<li>Add snippets for f90-mode from Li Zhu.</li>
+<li>Bug fix: l-safe-expr-p: Lisp nesting exceeds <tt class="docutils literal"><span class="pre">max-lisp-eval-depth</span></tt>
+error when several (more than two) snippets overlaps. Thanks
+<a class="reference external" href="mailto:sunwaybupt&#64;newsmth">sunwaybupt&#64;newsmth</a> for reporting this bug.</li>
+</ul>
+</div>
+<div class="section" id="id13">
+<h1>0.4.4 / 2008-03-24</h1>
+<ul class="simple">
+<li>Bug fix: dropdown-list.el doesn't recognize [return] properly.</li>
+</ul>
+</div>
+<div class="section" id="id14">
+<h1>0.4.3 / 2008-03-23</h1>
+<ul class="simple">
+<li>Bug fix: failed to recognize user customized yas/trigger-key.</li>
+</ul>
+</div>
+<div class="section" id="id15">
+<h1>0.4.2 / 2008-03-22</h1>
+<ul class="simple">
+<li>Make a separate document package for release. Also make document
+available online.</li>
+</ul>
+</div>
+<div class="section" id="id16">
+<h1>0.4.1 / 2008-03-21</h1>
+<ul class="simple">
+<li>Make sure <tt class="docutils literal"><span class="pre">yas/minor-mode</span></tt>'s key bindings always take priority to
+other minor modes.</li>
+</ul>
+</div>
+<div class="section" id="id17">
+<h1>0.4.0 / 2008-03-20</h1>
+<ul class="simple">
+<li>Document refinement and released with YASnippet. Most of the Online
+wiki document will be deprecated soon.</li>
+<li>Powerful condition system added to yasnippet!</li>
+<li>Incorporate <tt class="docutils literal"><span class="pre">dropdown-list.el</span></tt> and make it default way for
+selecting multiple candidates. Thanks to <a class="reference external" href="http://groups.google.com/group/smart-snippet/browse_thread/thread/c869158b76addeb3/e7c6372ba457189e">Jaeyoun Chung</a>.</li>
+<li>yas/before-expand-snippet-hook</li>
+</ul>
+</div>
+<div class="section" id="id18">
+<h1>0.3.2 / 2008-03-19</h1>
+<ul class="simple">
+<li>Enhancement: A better way to define minor-mode. Thanks to Kentaro
+Kuribayashi. See <a class="reference external" href="https://groups.google.com/group/smart-snippet/browse_thread/thread/65cb3b5583eda887?hl=en">this thread</a>
+for more details.</li>
+</ul>
+</div>
+<div class="section" id="id19">
+<h1>0.3.1 / 2008-03-17</h1>
+<ul class="simple">
+<li>Bug fix: Emacs get confused when a field is deleted. See <a class="reference external" href="http://code.google.com/p/yasnippet/issues/detail?id=10">issue 10</a>.</li>
+</ul>
+</div>
+<div class="section" id="id20">
+<h1>0.3.0 / 2008-03-16</h1>
+<ul class="simple">
+<li>Add a <tt class="docutils literal"><span class="pre">yas/after-exit-snippet-hook</span></tt> so that you can do something like
+<tt class="docutils literal"><span class="pre">indent-region</span></tt> or <tt class="docutils literal"><span class="pre">fill-region</span></tt> after finish the snippet.</li>
+<li>Use minor-mode instead of <tt class="docutils literal"><span class="pre">global-set-key</span></tt> to bind the trigger
+key. Now the trigger key and fall-back behavior can be more
+flexible. Not constrained to <tt class="docutils literal"><span class="pre">&lt;tab&gt;</span></tt>. Thanks to Trey Jackson. See
+this <a class="reference external" href="https://groups.google.com/group/smart-snippet/browse_thread/thread/937f32a2a6dea4f2?hl=en">thread</a>
+for more details.</li>
+<li>Now user can customize the popup function for selecting multiple
+candidate for the same snippet key.</li>
+<li>Support <tt class="docutils literal"><span class="pre">dropdown-list.el</span></tt> to be a better way to select multiple
+candidate when in text mode.</li>
+</ul>
+</div>
+<div class="section" id="id21">
+<h1>0.2.3 / 2008-03-15</h1>
+<ul class="simple">
+<li>Bug in non-window (-nw) mode when there's multiple candidate to
+expand. See <a class="reference external" href="http://code.google.com/p/yasnippet/issues/detail?id=7">issue 7</a>.</li>
+<li>Allow expanding another snippet as long as not currently inside a
+field.</li>
+</ul>
+</div>
+<div class="section" id="id22">
+<h1>0.2.2 / 2008-03-13</h1>
+<ul class="simple">
+<li>Added customized face for fields and mirrors. Better in dark
+background. And users can customize it.</li>
+</ul>
+</div>
+<div class="section" id="id23">
+<h1>0.2.1 / 2008-03-10</h1>
+<ul class="simple">
+<li>Fix the insert-behind problem under both Emacs 22 and Emacs 23.</li>
+</ul>
+</div>
+<div class="section" id="id24">
+<h1>0.2.0 / 2008-03-10</h1>
+<ul class="simple">
+<li>Use big keymap overlay to detect <tt class="docutils literal"><span class="pre">insert-behind</span></tt> event manually to
+avoid sometimes missed hook calls. See <a class="reference external" href="http://code.google.com/p/yasnippet/issues/detail?id=3">issue 3</a> for more
+details.</li>
+<li>Support parent snippet table. Now you can set (for example)
+<tt class="docutils literal"><span class="pre">cc-mode</span></tt> as common mode for <tt class="docutils literal"><span class="pre">c++-mode</span></tt>, <tt class="docutils literal"><span class="pre">c-mode</span></tt> and
+<tt class="docutils literal"><span class="pre">java-mode</span></tt>. They'll share snippets defined for <tt class="docutils literal"><span class="pre">cc-mode</span></tt>.</li>
+</ul>
+</div>
+<div class="section" id="id25">
+<h1>0.1.1 / 2008-03-08</h1>
+<ul class="simple">
+<li>Add a rake task to upload to google code.</li>
+<li>Use elisp compile-bundle function instead of python scrip</li>
+</ul>
+</div>
+<div class="section" id="id26">
+<h1>0.1.0 / 2008-03-07</h1>
+<ul class="simple">
+<li>Embedded elisp support.</li>
+<li>Fields navigation support.</li>
+<li>Mirror of fields support.</li>
+<li>Menu-bar support.</li>
+<li>Multiple snippets with same name support.</li>
+<li>Popup menu for multiple snippet with same name support.</li>
+<li>Transformation of fields support.</li>
+<li>Load directory support.</li>
+<li>Compile bundle support.</li>
+</ul>
+</div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+</div>
+<script type="text/javascript">
+ var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
+ document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
+</script>
+<script type="text/javascript">
+ try {
+ var pageTracker = _gat._getTracker("UA-10536822-1");
+ pageTracker._trackPageview();
+ } catch(err) {}
+</script>
+</div>
+</body>
+</html>
View
319 .emacs.d/yasnippet/doc/changelog.rst
@@ -0,0 +1,319 @@
+=========
+ChangeLog
+=========
+
+.. _Organizing Snippets: snippet-organization.html
+.. _Expanding Snippets: snippet-expansion.html
+.. _Writing Snippets: snippet-development.html
+.. _The YASnippet Menu: snippet-menu.html
+
+0.6.1c / 2009-08-13
+===================
+
+* Fixed `issues <http://code.google.com/p/yasnippet/issues>`_ 99, 98, 93,
+ 90, 91, 88, 87. Thanks everybody.
+* More compliant customization group `Issue94
+ <http://code.google.com/p/yasnippet/issues/detail?id=94>`_, (thanks
+ wyuenho).
+* Added workaround for issue 97 in the FAQ
+* Small updates to documentation.
+
+0.6.1b / 2009-08-29
+===================
+
+* Much more powerful menu. See `The YASnippet menu`_.
+* New ways to organize snippets. See `Organizing snippets`_.
+* Added ``yas/also-auto-indent-first-line`` customization variable.
+* Renamed directive ``# env:`` to ``# expand-env:``
+* Rewrote much of the documentation.
+* Added TextMate import tool ``textmate-import.rb`` to to svn
+ repository (see "extras/")
+* Added *experimental* bundle of textmate snippets
+ ``yasnippet-textmate-bundle.el``
+* Fixed `Issue 74
+ <http://code.google.com/p/yasnippet/issues/detail?id=74>`_ (thanks
+ rmartin.k...@gmail.com)
+* Fixed `Issues 80 through 84
+ <http://code.google.com/p/yasnippet/issues/detail?id=80>`_ (thanks
+ Moritz Bunkus)
+* Fixed many more issues...
+
+
+0.6.0c / 2009-07-27
+===================
+
+* Now byte compiles correctly with no warnings.
+* Fixed `Issue 68
+ <http://code.google.com/p/yasnippet/issues/detail?id=68>`_ with
+ mouse-clicking alternatives in ``ido-mode``.
+* Added ``yas/also-auto-indent-first-line`` customization variable.
+
+
+0.6.0b / 2009-07-25
+===================
+
+* Nested placeholders of the type ``<div${1: id="${2:someid}"}> $0``.
+
+* More robust undo/redo support.
+
+* Stacked snippet expansion (*snippet in snippet*).
+
+* Transformation on a primary field with syntax ``${1:default$(transform)}``
+
+* Validations on field exit through the ``yas/verify-value``
+ primary field transformation.
+
+* Wrapping the region in the exit marker ``$0`` of the snippet. Use
+ ``yas/wrap-around-region``.
+
+* Auto-indentation. Use ``yas/indent-line`` set to ``'auto``
+
+* Easier definition of snippets. Use ``yas/find-snippets`` or
+ ``yas/visit-snippet-file``. In the new ``snippet-mode`` use
+ ``yas/load-snippet-buffer`` and ``yas/tryout-snippet``.
+
+* Customization group ``yasnippet``.
+
+* Overriding customization variables in snippets. Use the ``env:
+ let-form`` template keyword.
+
+* Fixed `Issue 60
+ <http://code.google.com/p/yasnippet/issues/detail?id=60>`_
+* Fixed `Issue 65
+ <http://code.google.com/p/yasnippet/issues/detail?id=65>`_
+* Fixed `Issue 56
+ <http://code.google.com/p/yasnippet/issues/detail?id=56>`_
+
+0.5.10 / 2009-02-11
+===================
+
+* Added *grouping* support so that the snippets in the menu can be
+ groupped together.
+* Make the bundle `ELPA <http://tromey.com/elpa/index.html>`_
+ compatible.
+
+0.5.9 / 2009-01-21
+==================
+
+* Fixed the bug of disabling the auto-indenting of ``cc-mode``.
+
+0.5.8 / 2009-01-15
+==================
+
+* Added a ``key`` property in snippet definition for snippet names
+ that are not valid path name.
+* Fixed some bugs of indenting (`Issue 44
+ <http://code.google.com/p/yasnippet/issues/detail?id=44>`_, `Issue
+ 46 <http://code.google.com/p/yasnippet/issues/detail?id=46>`_).
+* Fixed `Issue 45
+ <http://code.google.com/p/yasnippet/issues/detail?id=45>`_ by
+ providing a proper default value for ``yas/buffer-local-condition``.
+* Added helper function ``yas/substr`` for convenient mirror
+ transformation.
+* Make variable ``yas/registered-snippet`` properly initialized.
+* Fixed the overlay error when overlay becomes empty (`Issue 49
+ <http://code.google.com/p/yasnippet/issues/detail?id=49>`_ and
+ `Issue 48
+ <http://code.google.com/p/yasnippet/issues/detail?id=48>`_). This
+ bug has occurred and been fixed earlier, and should not have
+ happened if we have proper regression test.
+* Added a workaround for ``c-electric-`` serial commands (`Issue 27
+ <http://code.google.com/p/yasnippet/issues/detail?id=27>`_).
+
+0.5.7 / 2008-12-03
+==================
+
+* Fixed `Issue 28
+ <http://code.google.com/p/yasnippet/issues/detail?id=28>`_ of
+ properly clean up snippet (by joaotavora).
+* Added a new section "Field-level undo functionality" to correct
+ `Issue 33 <http://code.google.com/p/yasnippet/issues/detail?id=33>`_
+ (by joaotavora).
+* Added some snippets from users for sql, erlang, scala, html, xml, latex, etc.
+* Fixed `Issue 16
+ <http://code.google.com/p/yasnippet/issues/detail?id=16>`_ by adding
+ ``$>`` support. Here's the `doc for $> indenting
+ <http://pluskid.lifegoo.com/upload/project/yasnippet/doc/define_snippet.html#indenting>`_.
+
+0.5.6 / 2008-08-07
+==================
+
+* Added a buffer local variable ``yas/dont-activate`` to turn off
+ ``yas/minor-mode`` in some major modes. See `Issue 29
+ <http://code.google.com/p/yasnippet/issues/detail?id=29>`_.
+* Make the environment of elisp evaluation more friendly to
+ ``(current-column)``.
+* Fixed the regular expression bug in python-mode snippets.
+* Use filename or full key extension for snippet name if no ``name``
+ property is defined.
+
+0.5.5 / 2008-05-29
+==================
+
+* Tweak ``yas/extra-mode-hooks`` so that it can be more easily
+ customized.
+* Add an entry in FAQ about why ``TAB`` key doesn't work in some
+ modes.
+
+0.5.4 / 2008-05-15
+==================
+
+* Added ``ox-mode-hook`` and ``python-mode-hook`` to
+ ``yas/extra-mode-hooks`` to fix the problem YASnippet is not enabled
+ in those modes.
+
+0.5.3 / 2008-05-07
+==================
+
+* Fix indent of python-mode snippets.
+* Fix a bug of dropdown-list: conflicts with color-theme (`Issue 23
+ <http://code.google.com/p/yasnippet/issues/detail?id=23>`_). Thanks
+ Mike.
+* Fix a bug of condition system.
+
+0.5.2 / 2008-04-20
+==================
+
+* Fix a bug for comparing string to symbol using ``string=`` (which
+ will fire an error).
+
+0.5.1 / 2008-04-14
+==================
+
+* Use a beautiful css style in the document.
+
+0.5.0 / 2008-04-10
+==================
+
+* Integrate with hippie-expand. Just add ``yas/hippie-try-expand`` to
+ ``hippie-expand-try-functions-list``.
+* If you set ``yas/fall-back-behavior`` to ``'return-nil``, YASnippet
+ will return nil when it can't find a snippet to expand.
+* Defect fix: the condition of a snippet was evaluated twice in
+ earlier version.
+* Deleting snippet (using ``C-w`` or ``C-k``) won't cause serious
+ problem now.
+* Several complex snippet for python-mode from Yasser included in the
+ distribution.
+
+0.4.5 / 2008-04-07
+==================
+
+* Merge the latest dropdown-list.el.
+* Add snippets for f90-mode from Li Zhu.
+* Bug fix: l-safe-expr-p: Lisp nesting exceeds ``max-lisp-eval-depth``
+ error when several (more than two) snippets overlaps. Thanks
+ sunwaybupt@newsmth for reporting this bug.
+
+0.4.4 / 2008-03-24
+==================
+
+* Bug fix: dropdown-list.el doesn't recognize [return] properly.
+
+0.4.3 / 2008-03-23
+==================
+
+* Bug fix: failed to recognize user customized yas/trigger-key.
+
+0.4.2 / 2008-03-22
+==================
+
+* Make a separate document package for release. Also make document
+ available online.
+
+0.4.1 / 2008-03-21
+==================
+
+* Make sure ``yas/minor-mode``'s key bindings always take priority to
+ other minor modes.
+
+0.4.0 / 2008-03-20
+==================
+
+* Document refinement and released with YASnippet. Most of the Online
+ wiki document will be deprecated soon.
+* Powerful condition system added to yasnippet!
+* Incorporate ``dropdown-list.el`` and make it default way for
+ selecting multiple candidates. Thanks to `Jaeyoun Chung
+ <http://groups.google.com/group/smart-snippet/browse_thread/thread/c869158b76addeb3/e7c6372ba457189e>`_.
+* yas/before-expand-snippet-hook
+
+0.3.2 / 2008-03-19
+==================
+
+* Enhancement: A better way to define minor-mode. Thanks to Kentaro
+ Kuribayashi. See `this thread
+ <https://groups.google.com/group/smart-snippet/browse_thread/thread/65cb3b5583eda887?hl=en>`_
+ for more details.
+
+0.3.1 / 2008-03-17
+==================
+
+* Bug fix: Emacs get confused when a field is deleted. See `issue 10
+ <http://code.google.com/p/yasnippet/issues/detail?id=10>`_.
+
+0.3.0 / 2008-03-16
+==================
+
+* Add a ``yas/after-exit-snippet-hook`` so that you can do something like
+ ``indent-region`` or ``fill-region`` after finish the snippet.
+* Use minor-mode instead of ``global-set-key`` to bind the trigger
+ key. Now the trigger key and fall-back behavior can be more
+ flexible. Not constrained to ``<tab>``. Thanks to Trey Jackson. See
+ this `thread
+ <https://groups.google.com/group/smart-snippet/browse_thread/thread/937f32a2a6dea4f2?hl=en>`_
+ for more details.
+* Now user can customize the popup function for selecting multiple
+ candidate for the same snippet key.
+* Support ``dropdown-list.el`` to be a better way to select multiple
+ candidate when in text mode.
+
+0.2.3 / 2008-03-15
+==================
+
+* Bug in non-window (-nw) mode when there's multiple candidate to
+ expand. See `issue 7
+ <http://code.google.com/p/yasnippet/issues/detail?id=7>`_.
+* Allow expanding another snippet as long as not currently inside a
+ field.
+
+0.2.2 / 2008-03-13
+==================
+
+* Added customized face for fields and mirrors. Better in dark
+ background. And users can customize it.
+
+0.2.1 / 2008-03-10
+==================
+
+* Fix the insert-behind problem under both Emacs 22 and Emacs 23.
+
+0.2.0 / 2008-03-10
+==================
+
+* Use big keymap overlay to detect ``insert-behind`` event manually to
+ avoid sometimes missed hook calls. See `issue 3
+ <http://code.google.com/p/yasnippet/issues/detail?id=3>`_ for more
+ details.
+* Support parent snippet table. Now you can set (for example)
+ ``cc-mode`` as common mode for ``c++-mode``, ``c-mode`` and
+ ``java-mode``. They'll share snippets defined for ``cc-mode``.
+
+0.1.1 / 2008-03-08
+==================
+
+* Add a rake task to upload to google code.
+* Use elisp compile-bundle function instead of python scrip
+
+0.1.0 / 2008-03-07
+==================
+
+* Embedded elisp support.
+* Fields navigation support.
+* Mirror of fields support.
+* Menu-bar support.
+* Multiple snippets with same name support.
+* Popup menu for multiple snippet with same name support.
+* Transformation of fields support.
+* Load directory support.
+* Compile bundle support.
View
110 .emacs.d/yasnippet/doc/compile-doc.py
@@ -0,0 +1,110 @@
+#!/usr/bin/python
+# Compile document to HTML use docutils.
+
+# ========================================
+# Pygments syntax highlighting
+# ========================================
+from pygments.formatters import HtmlFormatter
+
+# Set to True if you want inline CSS styles instead of classes
+INLINESTYLES = True
+
+from pygments.formatters import HtmlFormatter
+
+# The default formatter
+DEFAULT = HtmlFormatter(noclasses=INLINESTYLES)
+
+# Add name -> formatter pairs for every variant you want to use
+VARIANTS = {
+ # 'linenos': HtmlFormatter(noclasses=INLINESTYLES, linenos=True),
+}
+
+from docutils import nodes
+from docutils.parsers.rst import directives
+
+from pygments import highlight
+from pygments.lexers import get_lexer_by_name, TextLexer
+
+def pygments_directive(name, arguments, options, content, lineno,
+ content_offset, block_text, state, state_machine):
+ try:
+ lexer = get_lexer_by_name(arguments[0])
+ except ValueError:
+ # no lexer found - use the text one instead of an exception
+ lexer = TextLexer()
+ # take an arbitrary option if more than one is given
+ formatter = options and VARIANTS[options.keys()[0]] or DEFAULT
+ parsed = highlight(u'\n'.join(content), lexer, formatter)
+ return [nodes.raw('', parsed, format='html')]
+
+pygments_directive.arguments = (1, 0, 1)
+pygments_directive.content = 1
+pygments_directive.options = dict([(key, directives.flag) for key in VARIANTS])
+
+directives.register_directive('sourcecode', pygments_directive)
+
+# =================
+# Youtube embedding
+# =================
+
+from docutils import nodes
+from docutils.parsers.rst import directives
+
+CODE = """\
+<object type="application/x-shockwave-flash"
+ width="%(width)s"
+ height="%(height)s"
+ align="%(align)s"
+ class="youtube-embed"
+ data="http://www.youtube.com/v/%(yid)s">
+ <param name="movie" value="http://www.youtube.com/v/%(yid)s"></param>
+ <param name="wmode" value="transparent"></param>%(extra)s
+</object>
+"""
+
+PARAM = """\n <param name="%s" value="%s"></param>"""
+
+def youtube(name, args, options, content, lineno,
+ contentOffset, blockText, state, stateMachine):
+ """ Restructured text extension for inserting youtube embedded videos """
+ if len(content) == 0:
+ return
+ string_vars = {
+ 'yid': content[0],
+ 'width': 425,
+ 'height': 344,
+ 'align': "right",
+ 'extra': ''
+ }
+ extra_args = content[1:] # Because content[0] is ID
+ extra_args = [ea.strip().split("=") for ea in extra_args] # key=value
+ extra_args = [ea for ea in extra_args if len(ea) == 2] # drop bad lines
+ extra_args = dict(extra_args)
+ if 'width' in extra_args:
+ string_vars['width'] = extra_args.pop('width')
+ if 'align' in extra_args:
+ string_vars['align'] = extra_args.pop('align')
+ if 'height' in extra_args:
+ string_vars['height'] = extra_args.pop('height')
+ if extra_args:
+ params = [PARAM % (key, extra_args[key]) for key in extra_args]
+ string_vars['extra'] = "".join(params)
+ return [nodes.raw('', CODE % (string_vars), format='html')]
+youtube.content = True
+directives.register_directive('youtube', youtube)
+
+
+# ========================================
+# Command line processing
+# ========================================
+from docutils.core import publish_cmdline, default_description
+
+description = ('Generates (X)HTML documents from standalone reStructuredText '
+ 'sources. ' + default_description)
+overrides = {'stylesheet_path' : 'styles.css',
+ 'embed_stylesheet' : False,
+ 'template' : 'doc/template.txt'}
+
+publish_cmdline(writer_name='html',
+ description=description,
+ settings_overrides=overrides)
View
78 .emacs.d/yasnippet/doc/define_snippet.html
@@ -0,0 +1,78 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<meta name="generator" content="Docutils 0.6: http://docutils.sourceforge.net/" />
+<title>Moved</title>
+<meta content="3; URL=index.html" http-equiv="Refresh" />
+<link rel="stylesheet" href="styles.css" type="text/css" />
+</head>
+<body>
+<div class="document" id="moved">
+<div id="header-region" class="clear-block"></div>
+<div id="wrapper">
+ <div id="container" class="clear-block">
+ <div id="header">
+ <div id="logo-floater">
+ <h1 class="title">Moved</h1>
+ </div>
+ <ul class="primary-links">
+ <li>
+ <a title="" href="index.html">Intro and tutorial</a>
+ </li>
+ <li>
+ <a title="" href="snippet-organization.html">Howto: organize</a>
+ </li>
+ <li>
+ <a title="" href="snippet-expansion.html">Howto: expand</a>
+ </li>
+ <li>
+ <a title="" href="snippet-development.html">Howto: write </a>
+ </li>
+ <li>
+ <a title="" href="snippet-menu.html">Howto: menu </a>
+ </li>
+ <li>
+ <a title="" href="faq.html">FAQ</a>
+ </li>
+ <li>
+ <a title="" href="changelog.html">ChangeLog</a>
+ </li>
+ <li>
+ <a title="" href="http://code.google.com/p/yasnippet/downloads/list">Download</a>
+ </li>
+ </ul>
+ </div>
+ <div id="center">
+ <div id="squeeze">
+ <div class="right-corner">
+ <div class="left-corner">
+ <p>
+ <b>Important:</b> This documentation applies to
+ the <b>SVN trunk</b> of YASnippet, which you
+ get <a href="http://code.google.com/p/yasnippet/source/checkout">here</a>. Documentation
+ for other versions can be found <a title=""
+ href="http://code.google.com/p/yasnippet/downloads/list">here</a>.
+ </p>
+ <p>This page has been moved. Click <a class="reference external" href="index.html">here</a> if your browser
+does not automatically redirect you</p>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+</div>
+<script type="text/javascript">
+ var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
+ document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
+</script>
+<script type="text/javascript">
+ try {
+ var pageTracker = _gat._getTracker("UA-10536822-1");
+ pageTracker._trackPageview();
+ } catch(err) {}
+</script>
+</div>
+</body>
+</html>
View
9 .emacs.d/yasnippet/doc/define_snippet.rst
@@ -0,0 +1,9 @@
+=====
+Moved
+=====
+
+.. meta::
+ :http-equiv=Refresh: 3; URL=index.html
+
+This page has been moved. Click `here <index.html>`_ if your browser
+does not automatically redirect you
View
189 .emacs.d/yasnippet/doc/faq.html
@@ -0,0 +1,189 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<meta name="generator" content="Docutils 0.6: http://docutils.sourceforge.net/" />
+<title>Frequently Asked Questions</title>
+<link rel="stylesheet" href="styles.css" type="text/css" />
+</head>
+<body>
+<div class="document" id="frequently-asked-questions">
+<div id="header-region" class="clear-block"></div>
+<div id="wrapper">
+ <div id="container" class="clear-block">
+ <div id="header">
+ <div id="logo-floater">
+ <h1 class="title">Frequently Asked Questions</h1>
+ </div>
+ <ul class="primary-links">
+ <li>
+ <a title="" href="index.html">Intro and tutorial</a>
+ </li>
+ <li>
+ <a title="" href="snippet-organization.html">Howto: organize</a>
+ </li>
+ <li>
+ <a title="" href="snippet-expansion.html">Howto: expand</a>
+ </li>
+ <li>
+ <a title="" href="snippet-development.html">Howto: write </a>
+ </li>
+ <li>
+ <a title="" href="snippet-menu.html">Howto: menu </a>
+ </li>
+ <li>
+ <a title="" href="faq.html">FAQ</a>
+ </li>
+ <li>
+ <a title="" href="changelog.html">ChangeLog</a>
+ </li>
+ <li>
+ <a title="" href="http://code.google.com/p/yasnippet/downloads/list">Download</a>
+ </li>
+ </ul>
+ </div>
+ <div id="center">
+ <div id="squeeze">
+ <div class="right-corner">
+ <div class="left-corner">
+ <p>
+ <b>Important:</b> This documentation applies to
+ the <b>SVN trunk</b> of YASnippet, which you
+ get <a href="http://code.google.com/p/yasnippet/source/checkout">here</a>. Documentation
+ for other versions can be found <a title=""
+ href="http://code.google.com/p/yasnippet/downloads/list">here</a>.
+ </p>
+ <div class="section" id="why-is-there-an-extra-newline">
+<h1>Why is there an extra newline?</h1>
+<p>If you have a newline at the end of the snippet definition file, then
+YASnippet will add a newline when you expanding a snippet. Please
+don't add a newline at the end if you don't want it when you saving
+the snippet file.</p>
+<p>Note some editors will automatically add a newline for you. In Emacs,
+if you set <tt class="docutils literal"><span class="pre">require-final-newline</span></tt> to <tt class="docutils literal"><span class="pre">t</span></tt>, it will add the final
+newline for you automatically.</p>
+</div>
+<div class="section" id="why-doesn-t-tab-expand-a-snippet">
+<h1>Why doesn't TAB expand a snippet?</h1>
+<p>First check the mode line to see if there's <tt class="docutils literal"><span class="pre">yas</span></tt>. If not, then try
+<tt class="docutils literal"><span class="pre">M-x</span> <span class="pre">yas/minor-mode</span></tt> to manually turn on the minor mode and try to
+expand the snippet again. If it works, then, you can add the following
+code to your <tt class="docutils literal"><span class="pre">.emacs</span></tt> <em>before</em> loading YASnippet:</p>
+<div class="highlight"><pre>(add-hook &#39;the-major-mode-hook &#39;yas/minor-mode-on)
+</pre></div>
+<p>where <tt class="docutils literal"><span class="pre">the-major-mode</span></tt> is the major mode in which <tt class="docutils literal"><span class="pre">yas/minor-mode</span></tt>
+isn't enabled by default.</p>
+<p>From YASnippet 0.6 you can also use the command <tt class="docutils literal"><span class="pre">M-x</span>
+<span class="pre">yas/global-mode</span></tt> to turn on YASnippet automatically for <em>all</em> major
+modes.</p>
+<p>If <tt class="docutils literal"><span class="pre">yas/minor-mode</span></tt> is on but the snippet still not expanded. Then
+try to see what command is bound to the <tt class="docutils literal"><span class="pre">TAB</span></tt> key: press <tt class="docutils literal"><span class="pre">C-h</span> <span class="pre">k</span></tt>
+and then press <tt class="docutils literal"><span class="pre">TAB</span></tt>. Emacs will show you the result.</p>
+<p>You'll see a buffer prompted by Emacs saying that <tt class="docutils literal"><span class="pre">TAB</span> <span class="pre">runs</span> <span class="pre">the</span>
+<span class="pre">command</span> <span class="pre">...</span></tt>. Alternatively, you might see <tt class="docutils literal"><span class="pre">&lt;tab&gt;</span> <span class="pre">runs</span> <span class="pre">the</span> <span class="pre">command</span>
+<span class="pre">...</span></tt>, note the difference between <tt class="docutils literal"><span class="pre">TAB</span></tt> and <tt class="docutils literal"><span class="pre">&lt;tab&gt;</span></tt> where the
+latter has priority. If you see <tt class="docutils literal"><span class="pre">&lt;tab&gt;</span></tt> bound to a command other
+than <tt class="docutils literal"><span class="pre">yas/expand</span></tt>, (e.g. in <tt class="docutils literal"><span class="pre">org-mode</span></tt>) you can try the following
+code to work around:</p>
+<div class="highlight"><pre>(add-hook &#39;org-mode-hook
+ (let ((original-command (lookup-key org-mode-map [tab])))
+ `(lambda ()
+ (setq yas/fallback-behavior
+ &#39;(apply ,original-command))
+ (local-set-key [tab] &#39;yas/expand))))
+</pre></div>
+<p>replace <tt class="docutils literal"><span class="pre">org-mode-hook</span></tt> and <tt class="docutils literal"><span class="pre">org-mode-map</span></tt> with the major mode
+hook you are dealing with (Use <tt class="docutils literal"><span class="pre">C-h</span> <span class="pre">m</span></tt> to see what major mode you
+are in).</p>
+<p>As an alternative, you can also try</p>
+<div class="highlight"><pre>(defun yas/advise-indent-function (function-symbol)
+ (eval `(defadvice ,function-symbol (around yas/try-expand-first activate)
+ ,(format
+ &quot;Try to expand a snippet before point, then call `%s&#39; as usual&quot;
+ function-symbol)
+ (let ((yas/fallback-behavior nil))
+ (unless (and (interactive-p)
+ (yas/expand))
+ ad-do-it)))))
+
+(yas/advise-indent-function &#39;ruby-indent-line)
+</pre></div>
+<p>To <em>advise</em> the modes indentation function bound to TAB, (in this case
+<tt class="docutils literal"><span class="pre">ruby-indent-line</span></tt>) to first try to run <tt class="docutils literal"><span class="pre">yas/expand</span></tt>.</p>
+<p>If the output of <tt class="docutils literal"><span class="pre">C-h</span> <span class="pre">k</span> <span class="pre">RET</span> <span class="pre">&lt;tab&gt;</span></tt> tells you that <tt class="docutils literal"><span class="pre">&lt;tab&gt;</span></tt> is
+indeed bound to <tt class="docutils literal"><span class="pre">yas/expand</span></tt> but YASnippet still doesn't work, check
+your configuration and you may also ask for help on the <a class="reference external" href="http://groups.google.com/group/smart-snippet">discussion
+group</a>. See this
+particular <a class="reference external" href="http://code.google.com/p/yasnippet/issues/detail?id=93&amp;can=1">thread</a> for
+quite some solutions and alternatives.</p>
+<p>Don't forget to attach the information on what command is bound to TAB
+as well as the mode information (Can be obtained by <tt class="docutils literal"><span class="pre">C-h</span> <span class="pre">m</span></tt>).</p>
+</div>
+<div class="section" id="why-doesn-t-tab-navigation-work-with-flyspell">
+<h1>Why doesn't TAB navigation work with flyspell</h1>
+<p>A workaround is to inhibit flyspell overlays while the snippet is active:</p>
+<div class="highlight"><pre>(add-hook &#39;flyspell-incorrect-hook
+ #&#39;(lambda (dummy1 dummy2 dymmy3)
+ (and yas/active-field-overlay
+ (overlay-buffer yas/active-field-overlay))))
+</pre></div>
+<p>This is apparently related to overlay priorities. For some reason, the
+<tt class="docutils literal"><span class="pre">keymap</span></tt> property of flyspell's overlays always takes priority over
+the same property in yasnippet's overlays, even if one sets the
+latter's <tt class="docutils literal"><span class="pre">priority</span></tt> property to something big. If you know
+emacs-lisp and can solve this problem, drop a line in the <a class="reference external" href="http://groups.google.com/group/smart-snippet">discussion
+group</a>.</p>
+</div>
+<div class="section" id="how-do-i-turn-off-the-minor-mode-where-in-some-buffers">
+<h1>How do I turn off the minor mode where in some buffers</h1>
+<p>The best way, since version 0.6.1c, is to set the default value of the
+variable <tt class="docutils literal"><span class="pre">yas/dont-activate</span></tt> to a lambda function like so:</p>
+<div class="highlight"><pre>(set-default &#39;yas/dont-activate
+ #&#39;(lambda ()
+ (and yas/root-directory
+ (null (yas/get-snippet-tables)))))
+</pre></div>
+<p>This is also the default value starting for that version. It skips the
+minor mode in buffers where it is not applicable (no snippet tables),
+but only once you have setup your yas/root-directory.</p>
+</div>
+<div class="section" id="how-do-i-define-an-abbrev-key-containing-characters-not-supported-by-the-filesystem">
+<h1>How do I define an abbrev key containing characters not supported by the filesystem?</h1>
+<dl class="docutils">
+<dt><strong>Note</strong>: This question applies if you're still defining snippets</dt>
+<dd>whose key <em>is</em> the filename. This is behavior stil provided by
+version 0.6 for backward compatibilty, but is somewhat deprecated...</dd>
+</dl>
+<p>For example, you want to define a snippet by the key <tt class="docutils literal"><span class="pre">&lt;</span></tt> which is
+not a valid character for filename on Windows. This means you can't
+use the filename as a trigger key in this case.</p>
+<p>You should rather use the <tt class="docutils literal"><span class="pre">#</span> <span class="pre">key:</span></tt> directive to specify the key of
+the defined snippet explicitly and name your snippet with an arbitrary
+valid filename, <tt class="docutils literal"><span class="pre">lt.yasnippet</span></tt> for example, using <tt class="docutils literal"><span class="pre">&lt;</span></tt> for the
+<tt class="docutils literal"><span class="pre">#</span> <span class="pre">key:</span></tt> directive:</p>
+<div class="highlight"><pre>#key: &lt;
+#name: &lt;...&gt;&lt;/...&gt;
+# --
+&lt;${1:div}&gt;$0&lt;/$1&gt;
+</pre></div>
+</div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+</div>
+<script type="text/javascript">
+ var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
+ document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
+</script>
+<script type="text/javascript">
+ try {
+ var pageTracker = _gat._getTracker("UA-10536822-1");
+ pageTracker._trackPageview();
+ } catch(err) {}
+</script>
+</div>
+</body>
+</html>
View
150 .emacs.d/yasnippet/doc/faq.rst
@@ -0,0 +1,150 @@
+============================
+ Frequently Asked Questions
+============================
+
+Why is there an extra newline?
+==============================
+
+If you have a newline at the end of the snippet definition file, then
+YASnippet will add a newline when you expanding a snippet. Please
+don't add a newline at the end if you don't want it when you saving
+the snippet file.
+
+Note some editors will automatically add a newline for you. In Emacs,
+if you set ``require-final-newline`` to ``t``, it will add the final
+newline for you automatically.
+
+Why doesn't TAB expand a snippet?
+=================================
+
+First check the mode line to see if there's ``yas``. If not, then try
+``M-x yas/minor-mode`` to manually turn on the minor mode and try to
+expand the snippet again. If it works, then, you can add the following
+code to your ``.emacs`` *before* loading YASnippet:
+
+.. sourcecode:: lisp
+
+ (add-hook 'the-major-mode-hook 'yas/minor-mode-on)
+
+where ``the-major-mode`` is the major mode in which ``yas/minor-mode``
+isn't enabled by default.
+
+From YASnippet 0.6 you can also use the command ``M-x
+yas/global-mode`` to turn on YASnippet automatically for *all* major
+modes.
+
+If ``yas/minor-mode`` is on but the snippet still not expanded. Then
+try to see what command is bound to the ``TAB`` key: press ``C-h k``
+and then press ``TAB``. Emacs will show you the result.
+
+You'll see a buffer prompted by Emacs saying that ``TAB runs the
+command ...``. Alternatively, you might see ``<tab> runs the command
+...``, note the difference between ``TAB`` and ``<tab>`` where the
+latter has priority. If you see ``<tab>`` bound to a command other
+than ``yas/expand``, (e.g. in ``org-mode``) you can try the following
+code to work around:
+
+.. sourcecode:: lisp
+
+ (add-hook 'org-mode-hook
+ (let ((original-command (lookup-key org-mode-map [tab])))
+ `(lambda ()
+ (setq yas/fallback-behavior
+ '(apply ,original-command))
+ (local-set-key [tab] 'yas/expand))))
+
+replace ``org-mode-hook`` and ``org-mode-map`` with the major mode
+hook you are dealing with (Use ``C-h m`` to see what major mode you
+are in).
+
+As an alternative, you can also try
+
+.. sourcecode:: lisp
+
+ (defun yas/advise-indent-function (function-symbol)
+ (eval `(defadvice ,function-symbol (around yas/try-expand-first activate)
+ ,(format
+ "Try to expand a snippet before point, then call `%s' as usual"
+ function-symbol)
+ (let ((yas/fallback-behavior nil))
+ (unless (and (interactive-p)
+ (yas/expand))
+ ad-do-it)))))
+
+ (yas/advise-indent-function 'ruby-indent-line)
+
+To *advise* the modes indentation function bound to TAB, (in this case
+``ruby-indent-line``) to first try to run ``yas/expand``.
+
+If the output of ``C-h k RET <tab>`` tells you that ``<tab>`` is
+indeed bound to ``yas/expand`` but YASnippet still doesn't work, check
+your configuration and you may also ask for help on the `discussion
+group <http://groups.google.com/group/smart-snippet>`_. See this
+particular `thread
+<http://code.google.com/p/yasnippet/issues/detail?id=93&can=1>`_ for
+quite some solutions and alternatives.
+
+Don't forget to attach the information on what command is bound to TAB
+as well as the mode information (Can be obtained by ``C-h m``).
+
+Why doesn't TAB navigation work with flyspell
+=============================================
+
+A workaround is to inhibit flyspell overlays while the snippet is active:
+
+.. sourcecode:: lisp
+
+ (add-hook 'flyspell-incorrect-hook
+ #'(lambda (dummy1 dummy2 dymmy3)
+ (and yas/active-field-overlay
+ (overlay-buffer yas/active-field-overlay))))
+
+This is apparently related to overlay priorities. For some reason, the
+``keymap`` property of flyspell's overlays always takes priority over
+the same property in yasnippet's overlays, even if one sets the
+latter's ``priority`` property to something big. If you know
+emacs-lisp and can solve this problem, drop a line in the `discussion
+group`_.
+
+How do I turn off the minor mode where in some buffers
+======================================================
+
+The best way, since version 0.6.1c, is to set the default value of the
+variable ``yas/dont-activate`` to a lambda function like so:
+
+.. sourcecode:: lisp
+
+ (set-default 'yas/dont-activate
+ #'(lambda ()
+ (and yas/root-directory
+ (null (yas/get-snippet-tables)))))
+
+This is also the default value starting for that version. It skips the
+minor mode in buffers where it is not applicable (no snippet tables),
+but only once you have setup your yas/root-directory.
+
+
+How do I define an abbrev key containing characters not supported by the filesystem?
+====================================================================================
+
+**Note**: This question applies if you're still defining snippets
+ whose key *is* the filename. This is behavior stil provided by
+ version 0.6 for backward compatibilty, but is somewhat deprecated...
+
+For example, you want to define a snippet by the key ``<`` which is
+not a valid character for filename on Windows. This means you can't
+use the filename as a trigger key in this case.
+
+You should rather use the ``# key:`` directive to specify the key of
+the defined snippet explicitly and name your snippet with an arbitrary
+valid filename, ``lt.yasnippet`` for example, using ``<`` for the
+``# key:`` directive:
+
+.. sourcecode:: text
+
+ #key: <
+ #name: <...></...>
+ # --
+ <${1:div}>$0</$1>
+
+.. _discussion group: http://groups.google.com/group/smart-snippet
View
279 .emacs.d/yasnippet/doc/html4css1.css
@@ -0,0 +1,279 @@
+/*
+:Author: David Goodger
+:Contact: goodger@users.sourceforge.net
+:Date: $Date: 2005-12-18 01:56:14 +0100 (Sun, 18 Dec 2005) $
+:Revision: $Revision: 4224 $
+:Copyright: This stylesheet has been placed in the public domain.
+
+Default cascading style sheet for the HTML output of Docutils.
+
+See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to
+customize this style sheet.
+*/
+
+/* used to remove borders from tables and images */
+.borderless, table.borderless td, table.borderless th {
+ border: 0 }
+
+table.borderless td, table.borderless th {
+ /* Override padding for "table.docutils td" with "! important".
+ The right padding separates the table cells. */
+ padding: 0 0.5em 0 0 ! important }
+
+.first {
+ /* Override more specific margin styles with "! important". */
+ margin-top: 0 ! important }
+
+.last, .with-subtitle {
+ margin-bottom: 0 ! important }
+
+.hidden {
+ display: none }
+
+a.toc-backref {
+ text-decoration: none ;
+ color: black }
+
+blockquote.epigraph {
+ margin: 2em 5em ; }
+
+dl.docutils dd {
+ margin-bottom: 0.5em }
+
+/* Uncomment (and remove this text!) to get bold-faced definition list terms
+dl.docutils dt {
+ font-weight: bold }
+*/
+
+div.abstract {
+ margin: 2em 5em }
+
+div.abstract p.topic-title {
+ font-weight: bold ;
+ text-align: center }
+
+div.admonition, div.attention, div.caution, div.danger, div.error,
+div.hint, div.important, div.note, div.tip, div.warning {
+ margin: 2em ;
+ border: medium outset ;
+ padding: 1em }
+
+div.admonition p.admonition-title, div.hint p.admonition-title,
+div.important p.admonition-title, div.note p.admonition-title,
+div.tip p.admonition-title {
+ font-weight: bold ;
+ font-family: sans-serif }
+
+div.attention p.admonition-title, div.caution p.admonition-title,
+div.danger p.admonition-title, div.error p.admonition-title,
+div.warning p.admonition-title {
+ color: red ;
+ font-weight: bold ;
+ font-family: sans-serif }
+
+/* Uncomment (and remove this text!) to get reduced vertical space in
+ compound paragraphs.
+div.compound .compound-first, div.compound .compound-middle {
+ margin-bottom: 0.5em }
+
+div.compound .compound-last, div.compound .compound-middle {
+ margin-top: 0.5em }
+*/
+
+div.dedication {
+ margin: 2em 5em ;
+ text-align: center ;
+ font-style: italic }
+
+div.dedication p.topic-title {
+ font-weight: bold ;
+ font-style: normal }
+
+div.figure {
+ margin-left: 2em ;
+ margin-right: 2em }
+
+div.footer, div.header {
+ clear: both;
+ font-size: smaller }
+
+div.line-block {
+ display: block ;
+ margin-top: 1em ;
+ margin-bottom: 1em }
+
+div.line-block div.line-block {
+ margin-top: 0 ;
+ margin-bottom: 0 ;
+ margin-left: 1.5em }
+
+div.sidebar {
+ margin-left: 1em ;
+ border: medium outset ;
+ padding: 1em ;
+ background-color: #ffffee ;
+ width: 40% ;
+ float: right ;
+ clear: right }
+
+div.sidebar p.rubric {
+ font-family: sans-serif ;
+ font-size: medium }
+
+div.system-messages {
+ margin: 5em }
+
+div.system-messages h1 {
+ color: red }
+
+div.system-message {
+ border: medium outset ;
+ padding: 1em }
+
+div.system-message p.system-message-title {
+ color: red ;
+ font-weight: bold }
+
+div.topic {
+ margin: 2em }
+
+h1.section-subtitle, h2.section-subtitle, h3.section-subtitle,
+h4.section-subtitle, h5.section-subtitle, h6.section-subtitle {
+ margin-top: 0.4em }
+
+h1.title {
+ text-align: center }
+
+h2.subtitle {
+ text-align: center }
+
+hr.docutils {
+ width: 75% }
+
+img.align-left {
+ clear: left }
+
+img.align-right {
+ clear: right }
+
+ol.simple, ul.simple {
+ margin-bottom: 1em }
+
+ol.arabic {
+ list-style: decimal }
+
+ol.loweralpha {
+ list-style: lower-alpha }
+
+ol.upperalpha {
+ list-style: upper-alpha }
+
+ol.lowerroman {
+ list-style: lower-roman }
+
+ol.upperroman {
+ list-style: upper-roman }
+
+p.attribution {
+ text-align: right ;
+ margin-left: 50% }
+
+p.caption {
+ font-style: italic }
+
+p.credits {
+ font-style: italic ;
+ font-size: smaller }
+
+p.label {
+ white-space: nowrap }
+
+p.rubric {
+ font-weight: bold ;
+ font-size: larger ;
+ color: maroon ;
+ text-align: center }
+
+p.sidebar-title {
+ font-family: sans-serif ;
+ font-weight: bold ;
+ font-size: larger }
+
+p.sidebar-subtitle {
+ font-family: sans-serif ;
+ font-weight: bold }
+
+p.topic-title {
+