48 Commits

Author SHA1 Message Date
Noam Postavsky
0afc638e16 Fix docs for new org mode
* Rakefile: Comment to remind me how to run it.
* doc/snippet-expansion.org:
* doc/snippet-menu.org: It seems org 9.x got a bit stricter about link
formatting.  Cross-file links *must* use the 'file:' prefix.
* doc/yas-doc-helper.el (yas--document-symbol): Org 9.x also got a bit
more strict about empty lines between a node and its property list.
Make sure not to put a blank line between variable nodes and the
property list.
2018-03-04 18:56:26 -05:00
Noam Postavsky
dd65fe6186 Add compile_all target, fix all compilation warnings
* Rakefile (.elc): Set byte-compile-force-lexical-warnings when
compiling.
(:compile_all): New target that compiles yasnippet-debug.el and
yasnippet-tests.el too.
* .travis.yml (script): Use it instead of `compile'.  Update cl-lib to
0.6.1.  Don't error on warnings for Emacs 24.3 on yasnippet-tests.el.
* yasnippet-debug.el: Don't use `yas--loaddir' if it's not
bound (e.g., when compiling).  Require `color' and `edebug' at
toplevel.  Check if `subr-x' defines `when-let'.
(yas-debug-snippet-vars): Remove, it was unused and broken.
* yasnippet-tests.el (yas-with-snippet-dirs, (yas-should-expand)
(yas--collect-menu-items, yas-should-not-expand, yas-mock-insert)
(yas-mock-yank, yas--key-binding, yas-make-file-or-dirs)
(yas-variables, yas-call-with-saving-variables)
(yas-call-with-snippet-dirs, special-mode, string-suffix-p): Move to
top section.
(yas-tests--ran-exit-hook): Rename from yas--ran-exit-hook, and move
to top-level.
* yasnippet.el (yas--letenv): Evaluate the FORMs of ENV.
2017-07-23 08:11:36 -04:00
Noam Postavsky
274406ee44 Provide command line interface from yasnippet-debug.el
yasnippet-debug.el can now be used to quickly test and debug a snippet
in a file.

* Rakefile (itests): New target, runs tests interactively.
* yasnippet-debug.el: Set lexical binding.
(when-let): Backwards compabtility definition.
(yas-debug-live-indicators, yas-debug-live-colors)
(yas-debug-recently-live-indicators, yas-debug-get-live-indicator)
(yas-debug-live-marker, yas-debug-ov-fom-start, yas-debug-ov-fom-end)
(yas-debug-live-range, yas-debug-with-tracebuf, yas-debug-snippet)
(yas-debug-target-buffer, yas-debug-target-snippets)
(yas-debug-snippets, yas-debug-process-command-line): New functions
and variables.
(yas-debug-test): Remove.
* yasnippet.el (yas--snippet-revive): List snippet identifier in debug
message.
(yas--post-command-handler): Allow the debugger to run.
2017-07-16 15:19:34 -04:00
Noam Postavsky
28d5496144 Use git describe for doc HTML output
* Rakefile (:doc:upload):
* doc/yas-doc-helper.el: Use 'git describe' output instead of 'git
rev-parse', since it's more readable.
2016-12-11 19:50:08 -05:00
Noam Postavsky
309fe157f6 * Rakefile: Handle unset `warnings' parameter 2016-08-01 18:25:15 -04:00
Noam Postavsky
4b12f7de7a Don't warn about cl-functions with old cl-lib
* .travis.yml (install): Set warnings to (not cl-functions) if cl-lib
needs to be downloaded.  Since the downloaded cl-lib just aliases cl.el
functions, trying to use cl- prefixed functions would cause compile
warnings otherwise.
* Rakefile: Pass environment variable `warnings' as
`byte-compile-warnings' value when compiling.
2016-08-01 17:33:54 -04:00
Noam Postavsky
78fe979b7b Support htmlize.el in Rakefile doc target
Htmlized output can now be produced by

    rake doc[/path/to/htmlize/]

* Rakefile (doc): Add htmlize argument.
* doc/yas-doc-helper.el (yas--generate-html-batch): Tell org to use css
selectors only when exporting htmlized faces.
* doc/stylesheets/manual.css: Add styles for faces used by org export.
2016-04-30 22:36:34 -04:00
Noam Postavsky
7f03a2319e Change Emacs installation method for Travis CI
* .travis.yml: Don't use sudo, submodules.
(env): Test with additional Emacs versions.
(install): Get Emacs binaries from
https://github.com/npostavs/emacs-travis/releases.  Download ert and
cl-lib if needed.
(script): Split compilation and testing into separate steps.
* Rakefile: Use batch-byte-compile.  Treat compilation warnings as
errors.
2016-04-24 17:29:05 -04:00
Joao Tavora
12b7f82dd8 Add Travis CI and update tests. Start a Changelog.
* .travis.yml: new file

* README.mdown: Add Travis CI badge.

* Rakefile: use ert-run-tests-batch-and-exit.

* yasnippet-tests.el (example-for-issue-404-external-emacs): Use
`yas-with-snippet-dirs' to not depend on bundled snippets.
(yas--call-with-temporary-redefinitions): Use `cl-labels' since no
cl-flet in emacs-24.3's cl-lib.el.
(loading-with-cyclic-parenthood): prog-mode doesn't exist in emacs
24.3.
(yas-batch-run-tests): remove it.

* yasnippet.el (require): require cl-lib during byte-compilation
and load.
2013-12-31 15:58:21 +00:00
Noam Postavsky
e190b088f0 Rakefile: don't fail with EMACS=t env setting
This lets it work from M-x shell.
2013-12-24 11:27:57 -05:00
Noam Postavsky
46b4a02673 doc:upload stylesheets/*.css to gh-pages 2013-12-10 23:10:16 -05:00
Noam Postavsky
b944cc9b12 fix rake doc:upload 2013-12-10 23:02:53 -05:00
Noam Postavsky
7518cb4621 rake doc:upload: check for wrong/incomplete rev 2013-12-06 13:00:40 -05:00
Joao Tavora
4f27187477 refactor: removed extras and snippets tree, both point to submodules 2013-11-28 22:45:40 +00:00
Noam Postavsky
fd3fa39444 publish org doc from Rakefile 2013-11-26 23:09:18 -05:00
Joao Tavora
43a484e943 add: external test for issue #404 2013-10-31 13:03:32 +01:00
João Távora
13cfdbc164 fix: remove references to dropdown-list.el in Rakefile 2013-10-10 00:00:22 +01:00
João Távora
ddaf9a9f5c Fix: cleanup yasnippet-tests.el
- add edebug-form-specs
- replace "yas/" with "yas-"
- yas/ert => yas-batch-run-tests
2013-08-31 23:48:00 +01:00
Joao Tavora
7e4876169b Fix: also use $EMACS env var in compilation 2012-11-16 15:15:56 +00:00
João Távora
1774d7cbd0 Add: easier to run tests 2012-11-06 13:27:37 +00:00
João Távora
d7921cfc22 Use UTF-8 when reading in yasnippet.el 2012-07-18 16:12:07 +01:00
Joao Tavora
245e267e1d package file was being generated incorrectly 2012-07-13 17:32:02 +01:00
João Távora
b7c54b8c6c bugfix: more correctly create the Marmelade package for #217 2012-05-29 22:40:05 +01:00
João Távora
be8b240771 cleanup: trailing whitespace 2012-05-29 22:30:27 +01:00
João Távora
1688fc3442 enhancement: create Marmelade-compatible packages for #217 2012-05-29 22:29:34 +01:00
João Távora
af81a55f39 TODO: implement Rakefile :release task! 2012-02-26 20:44:59 +00:00
João Távora
483364c8e5 yasnippet-bundle.el gone.
fast snippet loading now via .yas-compiled-snippet.el files, uses yas/compile-snippets
2012-02-26 20:42:56 +00:00
Joao Tavora
f651c41da0 Fix #216 2012-02-24 15:48:00 +00:00
João Távora
4d6b4e1956 Better rakefile for converting bundles 2011-11-05 14:34:20 +00:00
Joao Tavora
1f47718b33 Added mediocre doc:upload task for updating the gh-pages branch 2011-11-04 13:30:46 +00:00
capitaomorte
58ce46468e minor tweaks to the rails-related bundles import strategy, which are quite usable already\nAlso don't activate yasnippet in the minibuffer 2010-08-15 23:38:56 +00:00
capitaomorte
8ce50e6767 * routine commit
* starting support of imported objective-c bundle
2010-07-26 17:11:36 +00:00
capitaomorte
f6c4872560 * A new rake task to make my importing life a little easier, but still needs work. 2010-04-19 15:42:32 +00:00
capitaomorte
b8dcf61367 Last commit before tagging and releasing 2009-08-29 17:59:02 +00:00
capitaomorte
b104c6b5ff * Now byte compiles correctly and with no warnings
* added :compile task to Rakefile
   (reported by Christoph Conrad)
2009-07-26 22:11:04 +00:00
capitaomorte
f40a013dec Last commit before releasing 0.6.0 2009-07-25 11:14:22 +00:00
capitaomorte
111aa25382 taking care of some details 2009-07-22 16:25:12 +00:00
Zhang Chiyuan
28aacbc7c1 Preparing for 0.5.10 release 2009-02-11 09:39:51 +00:00
Zhang Chiyuan
87c0aa0990 correct rake file dependency 2008-03-22 10:47:36 +00:00
Zhang Chiyuan
5d7e3577d6 exclude html files from svn 2008-03-22 10:43:44 +00:00
Zhang Chiyuan
b9ad7f282a won't include Rakefile in the release package 2008-03-20 15:45:56 +00:00
Zhang Chiyuan
21c98d141a more document 2008-03-20 12:10:13 +00:00
Zhang Chiyuan
490848d9fe preparing for new rst format document 2008-03-20 09:53:06 +00:00
Zhang Chiyuan
43c5aa3a5a prepare for a bug fix version 2008-03-15 10:20:41 +00:00
Zhang Chiyuan
85358aa055 Downloading from googlecode the bare .el text file is causing problem. pack it as tgz package. 2008-03-08 05:50:12 +00:00
Zhang Chiyuan
4e9153ad64 a new rake task for uploading 2008-03-08 05:24:00 +00:00
Zhang Chiyuan
5b33a6c8f1 replace bundle compile tool with elisp code 2008-03-08 04:48:03 +00:00
Zhang Chiyuan
fe66394b87 add Rakefile 2008-03-07 16:31:55 +00:00