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 /src | |
| 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 'src')
| -rw-r--r-- | src/ChangeLog | 22 | ||||
| -rw-r--r-- | src/buffer.c | 6 | ||||
| -rw-r--r-- | src/eval.c | 2 |
3 files changed, 17 insertions, 13 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 55ff9390ce6..71774535462 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2013-10-29 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * eval.c (run_hook_with_args): Use FUNCTIONP. | ||
| 4 | |||
| 1 | 2013-10-29 Dmitry Antipov <dmantipov@yandex.ru> | 5 | 2013-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); |