aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2013-10-29 10:46:23 -0400
committerStefan Monnier2013-10-29 10:46:23 -0400
commitdee4ba59792238f9fd69ba7f5bf4f2711da52030 (patch)
treeda0a9787aab3899e967618f493e16b56be8ed47d
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.
-rw-r--r--src/ChangeLog22
-rw-r--r--src/buffer.c6
-rw-r--r--src/eval.c2
-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
7 files changed, 43 insertions, 19 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 55ff9390ce6..71774535462 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12013-10-29 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * eval.c (run_hook_with_args): Use FUNCTIONP.
4
12013-10-29 Dmitry Antipov <dmantipov@yandex.ru> 52013-10-29 Dmitry Antipov <dmantipov@yandex.ru>
2 6
3 * xterm.h (struct x_output): For 'black_relief' and 'white_relief' 7 * xterm.h (struct x_output): For 'black_relief' and 'white_relief'
@@ -227,8 +231,8 @@
227 (get_adapters_info): New wrapper function. 231 (get_adapters_info): New wrapper function.
228 (globals_of_w32): Initialize g_b_init_get_adapters_info. 232 (globals_of_w32): Initialize g_b_init_get_adapters_info.
229 233
230 * process.h (network_interface_list, network_interface_info): New 234 * process.h (network_interface_list, network_interface_info):
231 prototypes. 235 New prototypes.
232 236
233 * process.c (conv_sockaddr_to_lisp): Now externally-visible. 237 * process.c (conv_sockaddr_to_lisp): Now externally-visible.
234 (Fnetwork_interface_list, Fnetwork_interface_info): Define for 238 (Fnetwork_interface_list, Fnetwork_interface_info): Define for
@@ -559,8 +563,8 @@
559 (xw_popup_dialog): New function, with X-specific bits of popup 563 (xw_popup_dialog): New function, with X-specific bits of popup
560 dialogs. 564 dialogs.
561 565
562 * xdisp.c (deep_copy_glyph_row, display_tty_menu_item): New 566 * xdisp.c (deep_copy_glyph_row, display_tty_menu_item):
563 functions. 567 New functions.
564 568
565 * window.c (Fset_window_configuration): Use run-time tests of the 569 * window.c (Fset_window_configuration): Use run-time tests of the
566 frame type instead of compile-time conditionals, when menu-bar 570 frame type instead of compile-time conditionals, when menu-bar
@@ -625,11 +629,11 @@
625 of, or in addition to, compile-time conditionals. 629 of, or in addition to, compile-time conditionals.
626 (menu_item_width, Fmenu_bar_menu_at_x_y): New functions. 630 (menu_item_width, Fmenu_bar_menu_at_x_y): New functions.
627 (Fx_popup_menu): Detect when the function is called from keyboard 631 (Fx_popup_menu): Detect when the function is called from keyboard
628 on a TTY. Don't barf when invoked on a text-mode frame. Check 632 on a TTY. Don't barf when invoked on a text-mode frame.
629 frame type at run time, instead of compile-time conditionals for 633 Check frame type at run time, instead of compile-time conditionals for
630 invoking terminal-specific menu-show functions. Call 634 invoking terminal-specific menu-show functions.
631 tty_menu_show on text-mode frames. 635 Call tty_menu_show on text-mode frames.
632 (Fx_popup_dialog): Moved here from xmenu.c. Test frame types at 636 (Fx_popup_dialog): Move here from xmenu.c. Test frame types at
633 run time to determine which alternative to invoke; support dialogs 637 run time to determine which alternative to invoke; support dialogs
634 on TTYs. 638 on TTYs.
635 639
diff --git a/src/buffer.c b/src/buffer.c
index ef04ca7018d..e44908a543c 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -2074,7 +2074,7 @@ the current buffer's major mode. */)
2074 count = SPECPDL_INDEX (); 2074 count = SPECPDL_INDEX ();
2075 2075
2076 /* To select a nonfundamental mode, 2076 /* To select a nonfundamental mode,
2077 select the buffer temporarily and then call the mode function. */ 2077 select the buffer temporarily and then call the mode function. */
2078 2078
2079 record_unwind_protect (save_excursion_restore, save_excursion_save ()); 2079 record_unwind_protect (save_excursion_restore, save_excursion_save ());
2080 2080
@@ -2114,7 +2114,7 @@ set_buffer_internal_1 (register struct buffer *b)
2114 2114
2115 old_buf = current_buffer; 2115 old_buf = current_buffer;
2116 current_buffer = b; 2116 current_buffer = b;
2117 last_known_column_point = -1; /* invalidate indentation cache */ 2117 last_known_column_point = -1; /* Invalidate indentation cache. */
2118 2118
2119 if (old_buf) 2119 if (old_buf)
2120 { 2120 {
@@ -2138,7 +2138,7 @@ set_buffer_internal_1 (register struct buffer *b)
2138 fetch_buffer_markers (b); 2138 fetch_buffer_markers (b);
2139 2139
2140 /* Look down buffer's list of local Lisp variables 2140 /* Look down buffer's list of local Lisp variables
2141 to find and update any that forward into C variables. */ 2141 to find and update any that forward into C variables. */
2142 2142
2143 do 2143 do
2144 { 2144 {
diff --git a/src/eval.c b/src/eval.c
index 1e0a63a0ece..a25dc1b5aa9 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -2479,7 +2479,7 @@ run_hook_with_args (ptrdiff_t nargs, Lisp_Object *args,
2479 2479
2480 if (EQ (val, Qunbound) || NILP (val)) 2480 if (EQ (val, Qunbound) || NILP (val))
2481 return ret; 2481 return ret;
2482 else if (!CONSP (val) || EQ (XCAR (val), Qlambda)) 2482 else if (!CONSP (val) || FUNCTIONP (val))
2483 { 2483 {
2484 args[0] = val; 2484 args[0] = val;
2485 return funcall (nargs, args); 2485 return funcall (nargs, args);
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