diff options
author | Benedek Fazekas <benedek.fazekas@gmail.com> | 2016-10-17 09:28:13 +0100 |
---|---|---|
committer | Bozhidar Batsov <bozhidar.batsov@gmail.com> | 2016-11-06 08:59:22 +0200 |
commit | 881c02a97014926c68bc8bd78f3f07e5456358f1 (patch) | |
tree | add6ebf98806a9144ecea03ff1174eefaa673675 /.travis.yml | |
parent | d3034dcbfeb5e818b5a891034a91cbc5eea87a73 (diff) |
Port let related refactorings from clj-refactor.el
Migrate introduce let, move to let from clj-refactor.el. Add introduce
expanded let, forward slurp into let and backward slurp into let.
Implementation follows the main outlines of the cljr code but is
reworked at certain places. Major differences are as follows:
- Expanded let is introduced: with a prefix argument let introduced N
lists up with all the occurrences of bound form replaced at addition
time.
- New function: slurp function into let form forward and backward. Added
value again is to replace bounded forms with their bound names in the
slurped forms. prefix argument can be used again to slurp multiple forms
into the let.
- Expand let is not ported from cljr. Instead `paredit-convolute-sexp`
is advised to replace forms with bound names when used on let like form.
Further notes:
- `string-trim` is moved upstream from cider (after merging this, cider
can be refactored to use the trim fns from `clojure-mode`)
Advice `paredit-convolute-sexp' when used on a let form as drop in replacement for `cljr-expand-let`.
Depend on emacs 24.4 as `advice-add` is not available in 24.3 and also
use `subr-x` for string trimming.
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml index e14b8b7..6039cfa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,8 +6,8 @@ matrix: allow_failures: - env: EMACS=emacs-snapshot before_install: - # Stable Emacs 24.3 - - sudo add-apt-repository -y ppa:cassou/emacs + # Stable Emacs 24.4 + - sudo add-apt-repository -y ppa:adrozdoff/emacs # Nightly Emacs snapshot builds - sudo add-apt-repository -y ppa:ubuntu-elisp/ppa # Update and install the Emacs for our environment |