diff options
| author | Stefan Monnier | 2013-10-29 10:46:23 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2013-10-29 10:46:23 -0400 |
| commit | dee4ba59792238f9fd69ba7f5bf4f2711da52030 (patch) | |
| tree | da0a9787aab3899e967618f493e16b56be8ed47d /test | |
| parent | e54711f396a93b280f6a8b879330e0780425c1ae (diff) | |
| download | emacs-dee4ba59792238f9fd69ba7f5bf4f2711da52030.tar.gz emacs-dee4ba59792238f9fd69ba7f5bf4f2711da52030.zip | |
* src/eval.c (run_hook_with_args): Use FUNCTIONP.
* test/indent/css-mode.css (.x2): Test alignement inside braces.
* test/indent/prolog.prolog: Test alignment of ->; with operator at bol.
Diffstat (limited to 'test')
| -rw-r--r-- | test/ChangeLog | 14 | ||||
| -rw-r--r-- | test/indent/css-mode.css | 2 | ||||
| -rw-r--r-- | test/indent/prolog.prolog | 14 | ||||
| -rwxr-xr-x | test/indent/shell.sh | 2 |
4 files changed, 26 insertions, 6 deletions
diff --git a/test/ChangeLog b/test/ChangeLog index 9db787cc3ac..eadff76e7b6 100644 --- a/test/ChangeLog +++ b/test/ChangeLog | |||
| @@ -1,9 +1,15 @@ | |||
| 1 | 2013-10-29 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * indent/prolog.prolog: Test alignment of ->; with operator at bol. | ||
| 4 | |||
| 5 | * indent/css-mode.css (.x2): Test alignement inside braces. | ||
| 6 | |||
| 1 | 2013-10-26 Dmitry Gutov <dgutov@yandex.ru> | 7 | 2013-10-26 Dmitry Gutov <dgutov@yandex.ru> |
| 2 | 8 | ||
| 3 | * indent/ruby.rb: New failing example. | 9 | * indent/ruby.rb: New failing example. |
| 4 | 10 | ||
| 5 | * automated/ruby-mode-tests.el (ruby-toggle-block-to-brace): Fix | 11 | * automated/ruby-mode-tests.el (ruby-toggle-block-to-brace): |
| 6 | the test, in respect to adding the space after the curly. | 12 | Fix the test, in respect to adding the space after the curly. |
| 7 | 13 | ||
| 8 | 2013-10-24 Michael Albinus <michael.albinus@gmx.de> | 14 | 2013-10-24 Michael Albinus <michael.albinus@gmx.de> |
| 9 | 15 | ||
| @@ -45,8 +51,8 @@ | |||
| 45 | 51 | ||
| 46 | 2013-10-21 Dmitry Gutov <dgutov@yandex.ru> | 52 | 2013-10-21 Dmitry Gutov <dgutov@yandex.ru> |
| 47 | 53 | ||
| 48 | * indent/ruby.rb: New examples for indentation of blocks. Example | 54 | * indent/ruby.rb: New examples for indentation of blocks. |
| 49 | of hash inside parens that inflooped before the present commit. | 55 | Example of hash inside parens that inflooped before the present commit. |
| 50 | 56 | ||
| 51 | 2013-10-17 Barry O'Reilly <gundaetiapo@gmail.com> | 57 | 2013-10-17 Barry O'Reilly <gundaetiapo@gmail.com> |
| 52 | 58 | ||
diff --git a/test/indent/css-mode.css b/test/indent/css-mode.css index 9a2a15f6ba5..4dbab06975c 100644 --- a/test/indent/css-mode.css +++ b/test/indent/css-mode.css | |||
| @@ -4,6 +4,8 @@ | |||
| 4 | 4 | ||
| 5 | .x2 | 5 | .x2 |
| 6 | { | 6 | { |
| 7 | foo: bar; | ||
| 8 | bar: baz; | ||
| 7 | } | 9 | } |
| 8 | 10 | ||
| 9 | div.x3 | 11 | div.x3 |
diff --git a/test/indent/prolog.prolog b/test/indent/prolog.prolog index 8af21877b59..5b5d272c579 100644 --- a/test/indent/prolog.prolog +++ b/test/indent/prolog.prolog | |||
| @@ -48,7 +48,19 @@ subst(X, V, FV, lambda(Y, Ti, Bi), lambda(Y1, To, Bo)) :- | |||
| 48 | subst(Y, Y1, [], Bi, Bi1); | 48 | subst(Y, Y1, [], Bi, Bi1); |
| 49 | Y1 = Y, Bi1 = Bi), | 49 | Y1 = Y, Bi1 = Bi), |
| 50 | %% Perform substitution on the body. | 50 | %% Perform substitution on the body. |
| 51 | subst(X, V, FV, Bi1, Bo)). | 51 | subst(X, V, FV, Bi1, Bo)), |
| 52 | ( X = Y | ||
| 53 | %% If X is equal to Y, X is shadowed, so no subst can take place. | ||
| 54 | -> Y1 = Y, Bo = Bi | ||
| 55 | ; (member((Y, _), FV) | ||
| 56 | %% If Y appears in FV, it can appear in V, so we need to | ||
| 57 | %% rename it to avoid name capture. | ||
| 58 | -> new_atom(Y, Y1), | ||
| 59 | subst(Y, Y1, [], Bi, Bi1) | ||
| 60 | ; Y1 = Y, Bi1 = Bi), | ||
| 61 | %% Perform substitution on the body. | ||
| 62 | subst(X, V, FV, Bi1, Bo) | ||
| 63 | ). | ||
| 52 | subst(X, V, FV, pi(Y, Ti, Bi), pi(Y1, To, Bo)) :- | 64 | subst(X, V, FV, pi(Y, Ti, Bi), pi(Y1, To, Bo)) :- |
| 53 | subst(X, V, FV, lambda(Y, Ti, Bi), lambda(Y1, To, Bo)). | 65 | subst(X, V, FV, lambda(Y, Ti, Bi), lambda(Y1, To, Bo)). |
| 54 | subst(X, V, FV, forall(Y, Ti, Bi), forall(Y1, To, Bo)) :- | 66 | subst(X, V, FV, forall(Y, Ti, Bi), forall(Y1, To, Bo)) :- |
diff --git a/test/indent/shell.sh b/test/indent/shell.sh index e402398b996..fdf736e06be 100755 --- a/test/indent/shell.sh +++ b/test/indent/shell.sh | |||
| @@ -35,7 +35,7 @@ echo $[1<<8] # bug#11263 | |||
| 35 | declare -a VERSION | 35 | declare -a VERSION |
| 36 | for i in $(ls "$PREFIX/sbin") ; do | 36 | for i in $(ls "$PREFIX/sbin") ; do |
| 37 | echo -e $N')' $i | 37 | echo -e $N')' $i |
| 38 | VERSION[${#VERSION[*]}]=$i #bug#11946. | 38 | VERSION[${#VERSION[*]}]=$i # bug#11946. |
| 39 | N=$(($N + 1)) | 39 | N=$(($N + 1)) |
| 40 | done | 40 | done |
| 41 | 41 | ||