212 Commits

Author SHA1 Message Date
Zhang Chiyuan
a01b5eb76c Make initial selection for drop-down. Thanks Brandon Moore. 2009-02-27 15:20:45 +00:00
Zhang Chiyuan
84ac5bd613 Added some snippets for elisp-mode from Xah Lee. 2009-02-25 05:23:31 +00:00
Zhang Chiyuan
28aacbc7c1 Preparing for 0.5.10 release 2009-02-11 09:39:51 +00:00
Zhang Chiyuan
51bd26520c no need for a separate yas/compile-bundle-for-elpa function 2009-02-10 05:34:27 +00:00
Zhang Chiyuan
29d3991eb7 Modified yas/compile-bundle to make the bundle ELPA compatible 2009-02-10 05:29:05 +00:00
Zhang Chiyuan
69bd61b9b2 Added escape syntax rule support for latex-mode 2009-02-08 04:35:18 +00:00
Zhang Chiyuan
842c3a84ce Added a 'template' snippet for c++-mode 2009-02-04 11:08:59 +00:00
Zhang Chiyuan
1ad1be7732 Make the intro doc more friendly to newbie 2009-01-30 05:08:04 +00:00
Zhang Chiyuan
36455f570d Updated the introduction doc, thanks Xah Lee for contributing this description 2009-01-28 11:32:20 +00:00
Zhang Chiyuan
f4dd4094fd Set mime-type for css files 2009-01-28 10:51:02 +00:00
Zhang Chiyuan
34b389d2ad Add svn mime-type to enable online viewing 2009-01-28 10:48:32 +00:00
Zhang Chiyuan
34f2be0b88 Update doc for grouping 2009-01-28 10:43:48 +00:00
Zhang Chiyuan
64e5027d10 Added grouping support for snippets (Issue 30) 2009-01-28 07:04:27 +00:00
Zhang Chiyuan
11f4a94680 Avoid recursively calling yas/expand 2009-01-21 02:43:29 +00:00
Zhang Chiyuan
3afb7baa28 Forget to check in 0.5.8 version 2009-01-20 14:34:10 +00:00
Zhang Chiyuan
d4b0325911 override c-electric- serial function in yas/keymap instead of yas-minor-mode-map. 2009-01-19 14:10:27 +00:00
Zhang Chiyuan
b8cb1d27f4 Do not restrict all electric- serial functions of cc-mode 2009-01-19 14:02:57 +00:00
Zhang Chiyuan
8fa2c47406 A workaround for fixing c-electric- serial command (Issue 27) 2009-01-15 07:34:30 +00:00
Zhang Chiyuan
37281e3a30 Fixed Issue 49 (It is almost the same to Issue 48, and due to some accidentally removal of code when in revision 281) 2009-01-15 07:18:06 +00:00
Zhang Chiyuan
c8b94d14c5 Fixed the bug of empty overlay (Issue 48), thanks some.any.key 2008-12-25 15:16:11 +00:00
Zhang Chiyuan
6d9f7a5048 Fixed the bug where yas/registered-snippet may not be properly initialized. 2008-12-12 15:21:10 +00:00
Zhang Chiyuan
de37bc0269 fix a 'bug' in the class snippet for c++-mode 2008-12-12 05:45:36 +00:00
Zhang Chiyuan
acf04d6952 Added yas/substr for convenient mirror transformation 2008-12-12 05:42:53 +00:00
Zhang Chiyuan
1c0d664d65 Fixed the bug of not indenting well in narrowed region (Issue 46). 2008-12-12 05:19:03 +00:00
Zhang Chiyuan
709463d19e Use updated version of python class snippet from sverre.johansen 2008-12-12 05:01:50 +00:00
Zhang Chiyuan
76028bf06c Fixed the bug of the default code assigned to yas/buffer-local-condition (Issue 45) 2008-12-11 05:50:00 +00:00
Zhang Chiyuan
885494084f Fixed the error of $> without overlay (Issue 44). 2008-12-11 05:44:10 +00:00
Zhang Chiyuan
28a6515c61 Restore the original simple class snippet from r223 (Issue 40) 2008-12-11 05:29:54 +00:00
Zhang Chiyuan
023d584cbe update faq for #key property 2008-12-09 16:56:20 +00:00
Zhang Chiyuan
70191eb0d9 Accept patch from dima.exe to add #key in template file (Issue 43) 2008-12-09 16:46:48 +00:00
Zhang Chiyuan
6e6aa80b1c Moved objc-mode directory into cc-mode 2008-12-09 15:15:47 +00:00
Zhang Chiyuan
f29b25bfc2 Do not include auto-generated snippets in the repo. 2008-12-07 16:14:54 +00:00
Zhang Chiyuan
6cbfd16f0e Added snippets for lsl-mode from Xah Lee. 2008-12-07 16:12:57 +00:00
Zhang Chiyuan
0ca7da8347 Import snippets for scala-mode and nxml-mode from Anders. 2008-12-03 15:03:55 +00:00
Zhang Chiyuan
6774448630 add some snippets from users for html and latex mode 2008-12-02 04:08:38 +00:00
Zhang Chiyuan
2205d76ebf Fixed the missing space in the cls snippet for ruby-mode 2008-11-18 02:26:27 +00:00
Zhang Chiyuan
d93bea8204 fix the bug on expanding a snippet without 2008-10-20 21:07:18 +00:00
Zhang Chiyuan
331812fefb Use eval-when-compile for (require 'cl) 2008-09-10 12:27:32 +00:00
Zhang Chiyuan
b3f2a95f50 Added snippets for erlang-mode from users 2008-09-10 12:01:23 +00:00
Zhang Chiyuan
0732cfc7e6 added csharp, sql snippets from users 2008-09-10 11:56:57 +00:00
Zhang Chiyuan
bfe0255fd1 Update changelog for issue 16 2008-09-02 13:11:14 +00:00
Zhang Chiyuan
535a1ef314 Added $> support, fixed issue 16 2008-09-02 13:06:51 +00:00
capitaomorte
cca2df173d * Added a new section "Field-level undo functionality" to correct
issue 33.

* Added functions `yas/field-undo-before-hook',
  `yas/field-undo-after-hook', `yas/field-undo-group-text-change' and
  variables `yas/field-undo-history',
  `yas/field-undo-forbidden-commands' to implement field-level undo.

* Modified `yas/cleanup-snippet' to record the actual snippet end
  in the snippet before cleaning up the main overlay.

* New hooks `yas/field-undo-before-hook' and
  `yas/field-undo-after-hook' added to `pre-command-hook' and
  `post-command-hook', respectively.

* Slightly changed the commentary of the "Snippet register and
  unregister routines section"

* Modified step 12 to call `yas/undo-expand-snippet' without the
  `(point-min)' argument, which led to incorrect undo behaviour.

* Added a new step in `yas/expand-snippet' describing the local
  restore and save of undo infomation in a new slot of the
  `yas/snippet' structure. This is step 14, previous 14 was moved to 15.

* Modified `yas/undo-expand-snippet' to kill text up to the the
  correct snippet end, which was not being calculated correctly. It is
  now a slot of the snippet itself and no longer a parameter.

* Added functions `yas/current-field-text',
  `yas/replace-fields-with-value',
  `yas/remove-recent-undo-from-history' to refactor some code used
  twice or more.

* Modified `yas/check-cleanup-snippet' to detect trigger cleanup
  if point exits any primary snippet field, of any
  group. Previously cleanup would only be triggered on exiting
  all groups. This is a follow-up to issue 28.

* Added two slot to the `yas/snippet' structure to allow for
  field-level undo and correct small bug in the previous fix of issue
  28.

* Modified `yas/cleanup-snippet' to call
  `yas/after-exit-snippet-hook' as a follow-up to feedback on
  issue 28.

* (Accidentaly :) changed (but corrected!) indentation of most
  existing functions. This was done by a buffer global indent-region.

* (Accidentaly :) ran `checkdoc' but then gave up, it's
  uncessary. Didn't change much stuff though.
2008-08-30 19:33:16 +00:00
capitaomorte
b8e187b5b6 * Fixed issue 28,
http://code.google.com/p/yasnippet/issues/detail?id=28

* Added snippet registration routines `yas/register-snippet',
  `yas/unregister-snippet', `yas/cleanup-snippet',
  `yas/exterminate-snippets' and `yas/check-cleanup-snippet'

* Adjusted existing code to call these routines.

* Added some commentary to explain functionality.
2008-08-22 17:09:16 +00:00
Zhang Chiyuan
e6276da02a Raise an error when yas/load-directory get a parameter that is not a directory. 2008-08-20 15:32:02 +00:00
Zhang Chiyuan
2b6dab409c Added several snippets for erlang-mode. Thanks hitesh 2008-08-20 02:10:57 +00:00
Zhang Chiyuan
59d35739fa Added a smarter ruby-mode class snippet 2008-08-11 23:59:51 +00:00
Zhang Chiyuan
36184e0bc7 forget to commit for 0.5.6? 2008-08-08 05:04:42 +00:00
Zhang Chiyuan
de67b5802f Make the environment of elisp evaluation more friendly to (current-column) 2008-08-06 08:52:36 +00:00
Zhang Chiyuan
1ad8d82ac9 fixed the regular expression bug in python-mode snippets. 2008-08-01 07:51:16 +00:00