aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorStefan Monnier2013-10-29 10:46:23 -0400
committerStefan Monnier2013-10-29 10:46:23 -0400
commitdee4ba59792238f9fd69ba7f5bf4f2711da52030 (patch)
treeda0a9787aab3899e967618f493e16b56be8ed47d /test
parente54711f396a93b280f6a8b879330e0780425c1ae (diff)
downloademacs-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/ChangeLog14
-rw-r--r--test/indent/css-mode.css2
-rw-r--r--test/indent/prolog.prolog14
-rwxr-xr-xtest/indent/shell.sh2
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 @@
12013-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
12013-10-26 Dmitry Gutov <dgutov@yandex.ru> 72013-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
82013-10-24 Michael Albinus <michael.albinus@gmx.de> 142013-10-24 Michael Albinus <michael.albinus@gmx.de>
9 15
@@ -45,8 +51,8 @@
45 51
462013-10-21 Dmitry Gutov <dgutov@yandex.ru> 522013-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
512013-10-17 Barry O'Reilly <gundaetiapo@gmail.com> 572013-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
9div.x3 11div.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 ).
52subst(X, V, FV, pi(Y, Ti, Bi), pi(Y1, To, Bo)) :- 64subst(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)).
54subst(X, V, FV, forall(Y, Ti, Bi), forall(Y1, To, Bo)) :- 66subst(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
35declare -a VERSION 35declare -a VERSION
36for i in $(ls "$PREFIX/sbin") ; do 36for 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))
40done 40done
41 41