diff options
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 444 |
1 files changed, 443 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index db387750b16..8589bb8a9f0 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | 2011-04-13 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-04-15 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | * sysdep.c (MAX_RW_COUNT): New macro, to work around kernel bugs. | 3 | * sysdep.c (MAX_RW_COUNT): New macro, to work around kernel bugs. |
| 4 | (emacs_read, emacs_write): Use it. | 4 | (emacs_read, emacs_write): Use it. |
| @@ -28,6 +28,448 @@ | |||
| 28 | (wav_play, au_play): Use size_t to store sizes, and ssize_t to | 28 | (wav_play, au_play): Use size_t to store sizes, and ssize_t to |
| 29 | record read return values. | 29 | record read return values. |
| 30 | 30 | ||
| 31 | 2011-04-15 Ben Key <bkey76@gmail.com> | ||
| 32 | |||
| 33 | * keyboard.c (Qundefined): Don't declare static since it is | ||
| 34 | used in nsfns.m. | ||
| 35 | * xfaces.c (Qbold, Qexpanded, Qitalic, Qcondensed): Don't | ||
| 36 | declare static since they are used in nsfont.m. | ||
| 37 | |||
| 38 | 2011-04-15 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 39 | |||
| 40 | * process.c (Qprocessp): Don't declare static. | ||
| 41 | * lisp.h (Qprocessp): Declare again. | ||
| 42 | |||
| 43 | 2011-04-15 Juanma Barranquero <lekktu@gmail.com> | ||
| 44 | |||
| 45 | * font.c (Qopentype): Don't make static (used from w32uniscribe.c). | ||
| 46 | |||
| 47 | 2011-04-14 Paul Eggert <eggert@cs.ucla.edu> | ||
| 48 | |||
| 49 | Improve C-level modularity by making more things 'static'. | ||
| 50 | |||
| 51 | Don't publish debugger-only interfaces to other modules. | ||
| 52 | * lisp.h (safe_debug_print, debug_output_compilation_hack): | ||
| 53 | (verify_bytepos, count_markers): Move decls to the only modules | ||
| 54 | that need them. | ||
| 55 | * region-cache.h (pp_cache): Likewise. | ||
| 56 | * window.h (check_all_windows): Likewise. | ||
| 57 | * marker.c, print.c, region-cache.c, window.c: Decls moved here. | ||
| 58 | |||
| 59 | * sysdep.c (croak): Now static, if | ||
| 60 | defined TIOCNOTTY || defined USG5 || defined CYGWIN. | ||
| 61 | * syssignal.h (croak): Declare only if not static. | ||
| 62 | |||
| 63 | * alloc.c (refill_memory_reserve): Now static if | ||
| 64 | !defined REL_ALLOC || defined SYSTEM_MALLOC. | ||
| 65 | * lisp.h (refill_memory_reserve): Declare only if not static. | ||
| 66 | |||
| 67 | * xsettings.c, xsettings.h (xsettings_get_system_normal_font): | ||
| 68 | Define only if USE_LUCID. | ||
| 69 | |||
| 70 | * xrdb.c (x_customization_string, x_rm_string): Now static. | ||
| 71 | |||
| 72 | * xmenu.c (x_menu_wait_for_event): Export only if USE_MOTIF. | ||
| 73 | * xterm.h (x_menu_wait_for_event): Declare only if USE_MOTIF. | ||
| 74 | |||
| 75 | * xdisp.c (draw_row_with_mouse_face): Now static. | ||
| 76 | * dispextern.h (draw_row_with_mouse_fave): Remove decl. | ||
| 77 | |||
| 78 | * window.h (check_all_windows): Mark externally visible. | ||
| 79 | |||
| 80 | * window.c (window_deletion_count): Now static. | ||
| 81 | |||
| 82 | * undo.c: Make symbols static if they're not exported. | ||
| 83 | (last_undo_buffer, last_boundary_position, pending_boundary): | ||
| 84 | Now static. | ||
| 85 | |||
| 86 | * textprop.c (interval_insert_behind_hooks): Now static. | ||
| 87 | (interval_insert_in_front_hooks): Likewise. | ||
| 88 | |||
| 89 | * term.c: Make symbols static if they're not exported. | ||
| 90 | (tty_turn_off_highlight, get_tty_terminal, max_frame_cols): | ||
| 91 | (max_frame_lines, tty_set_terminal_modes): | ||
| 92 | (tty_reset_terminal_modes, tty_turn_off_highlight): | ||
| 93 | (get_tty_terminal): Now static. | ||
| 94 | (term_mouse_moveto): Do not define if HAVE_WINDOW_SYSTEM. | ||
| 95 | * termhooks.h (term_mouse_moveto): Do not declare if | ||
| 96 | HAVE_WINDOW_SYSTEM. | ||
| 97 | * dispextern.h (tty_set_terminal_modes, tty_reset_terminal_modes): | ||
| 98 | (tty_turn_off_highlight, get_tty_terminal): Remove decls. | ||
| 99 | |||
| 100 | * sysdep.c: Make symbols static if they're not exported. | ||
| 101 | (emacs_get_tty, emacs_set_tty, old_fcntl_flags, old_fcntl_owner): | ||
| 102 | Now static. | ||
| 103 | (sigprocmask_set, full_mask): Remove; unused. | ||
| 104 | (wait_debugging): Mark as visible. | ||
| 105 | * syssignal.h (SIGFULLMASK, full_mask): Remove decls. | ||
| 106 | * systty.h (emacs_get_tty, emacs_set_tty): Remove decls. | ||
| 107 | |||
| 108 | * syntax.c (syntax_temp): Define only if !__GNUC__. | ||
| 109 | |||
| 110 | * sound.c (current_sound_device, current_sound): Now static. | ||
| 111 | |||
| 112 | * search.c (searchbufs, searchbuf_head): Now static. | ||
| 113 | |||
| 114 | * scroll.c (scroll_cost): Remove; unused. | ||
| 115 | * dispextern.h (scroll_cost): Remove decl. | ||
| 116 | |||
| 117 | * region-cache.h (pp_cache): Mark as externally visible. | ||
| 118 | |||
| 119 | * process.c: Make symbols static if they're not exported. | ||
| 120 | (process_tick, update_tick, create_process, chan_process): | ||
| 121 | (Vprocess_alist, proc_buffered_char, datagram_access): | ||
| 122 | (fd_callback_data, send_process_frame, process_sent_to): Now static. | ||
| 123 | (deactivate_process): Mark defn as static, as well as decl. | ||
| 124 | * lisp.h (create_process): Remove decl. | ||
| 125 | * process.h (chan_process, Vprocess_alist): Remove decls. | ||
| 126 | |||
| 127 | * print.c: Make symbols static if they're not exported. | ||
| 128 | (print_depth, new_backquote_output, being_printed, print_buffer): | ||
| 129 | (print_buffer_size, print_buffer_pos, print_buffer_pos_byte): | ||
| 130 | (print_interval, print_number_index, initial_stderr_stream): | ||
| 131 | Now static. | ||
| 132 | * lisp.h (Fprinc): Remove decl. | ||
| 133 | (debug_output_compilation_hack): Mark as externally visible. | ||
| 134 | |||
| 135 | * sysdep.c (croak): Move decl from here to syssignal.h. | ||
| 136 | * syssignal.h (croak): Put it here, so the API can be checked when | ||
| 137 | 'croak' is called from dissociate_if_controlling_tty. | ||
| 138 | |||
| 139 | * minibuf.c: Make symbols static if they're not exported. | ||
| 140 | (minibuf_save_list, choose_minibuf_frame): Now static. | ||
| 141 | * lisp.h (choose_minibuf_frame): Remove decl. | ||
| 142 | |||
| 143 | * lisp.h (verify_bytepos, count_markers): Mark as externally visible. | ||
| 144 | |||
| 145 | * lread.c: Make symbols static if they're not exported. | ||
| 146 | (read_objects, initial_obarray, oblookup_last_bucket_number): | ||
| 147 | Now static. | ||
| 148 | (make_symbol): Remove; unused. | ||
| 149 | * lisp.h (initial_obarray, make_symbol): Remove decls. | ||
| 150 | |||
| 151 | * keyboard.c: Make symbols static if they're not exported. | ||
| 152 | (single_kboard, recent_keys_index, total_keys, recent_keys): | ||
| 153 | (this_command_key_count_reset, raw_keybuf, raw_keybuf_count): | ||
| 154 | (this_single_command_key_start, echoing, last_auto_save): | ||
| 155 | (read_key_sequence_cmd, dribble, recursive_edit_unwind): | ||
| 156 | (command_loop, echo_now, keyboard_init_hook, help_char_p): | ||
| 157 | (quit_throw_to_read_char, command_loop_2, top_level_1, poll_timer): | ||
| 158 | (Vlispy_mouse_stem, double_click_count): | ||
| 159 | Now static. | ||
| 160 | (force_auto_save_soon): Define only if SIGDANGER. | ||
| 161 | (ignore_mouse_drag_p): Now static if | ||
| 162 | !defined HAVE_WINDOW_SYSTEM || defined USE_GTK || defined HAVE_NS. | ||
| 163 | (print_help): Remove; unused. | ||
| 164 | (stop_character, last_timer_event): Mark as externally visible. | ||
| 165 | * keyboard.h (ignore_mouse_drag_p): Declare only if | ||
| 166 | defined HAVE_WINDOW_SYSTEM && !defined USE_GTK && !defined HAVE_NS. | ||
| 167 | (echo_now, help_char_p, quit_throw_to_read_char): Remove decls. | ||
| 168 | * lisp.h (echoing): Remove decl. | ||
| 169 | (force_auto_save_soon): Declare only if SIGDANGER. | ||
| 170 | * xdisp.c (redisplay_window): Simplify code, to make it more | ||
| 171 | obvious that ignore_mouse_drag_p is not accessed if !defined | ||
| 172 | USE_GTK && !defined HAVE_NS. | ||
| 173 | |||
| 174 | * intervals.c: Make symbols static if they're not exported. | ||
| 175 | (merge_properties_sticky, merge_interval_right, delete_interval): | ||
| 176 | Now static. | ||
| 177 | * intervals.h (merge_interval_right, delete_interval): Remove decls. | ||
| 178 | |||
| 179 | * insdel.c: Make symbols static if they're not exported. | ||
| 180 | However, leave prepare_to_modify_buffer alone. It's never | ||
| 181 | called from outside this function, but that appears to be a bug. | ||
| 182 | (combine_after_change_list, combine_after_change_buffer): | ||
| 183 | (adjust_after_replace, signal_before_change): Now static. | ||
| 184 | (adjust_after_replace_noundo): Remove; unused. | ||
| 185 | * lisp.h (adjust_after_replace, adjust_after_replace_noundo): | ||
| 186 | (signal_before_change): Remove decls. | ||
| 187 | |||
| 188 | * indent.c (val_compute_motion, val_vmotion): Now static. | ||
| 189 | |||
| 190 | * image.c: Make symbols static if they're not exported. | ||
| 191 | * dispextern.h (x_create_bitmap_from_xpm_data): Do not declare | ||
| 192 | if USE_GTK. | ||
| 193 | * image.c (x_create_bitmap_from_xpm_data): Do not define if USE_GTK. | ||
| 194 | (xpm_color_cache, ct_table, ct_colors_allocated): Now static. | ||
| 195 | |||
| 196 | * fringe.c (standard_bitmaps): Now static. | ||
| 197 | (max_used_fringe_bitmap): Now static, unless HAVE_NS. | ||
| 198 | |||
| 199 | * frame.c: Make symbols static if they're not exported. | ||
| 200 | (x_report_frame_params, make_terminal_frame): Now static. | ||
| 201 | (get_frame_param): Now static, unless HAVE_NS. | ||
| 202 | (x_fullscreen_adjust): Define if WINDOWSNT, not if HAVE_WINDOW_SYSTEM. | ||
| 203 | (x_get_resource_string): Remove; not used. | ||
| 204 | * frame.h (make_terminal_frame, x_report_frame_params): | ||
| 205 | (x_get_resource_string); Remove decls. | ||
| 206 | (x_fullscreen_adjust): Declare only if WINDOWSNT. | ||
| 207 | * lisp.h (get_frame_param): Declare only if HAVE_NS. | ||
| 208 | |||
| 209 | * font.c, fontset.c: Make symbols static if they're not exported. | ||
| 210 | * dispextern.h (FACE_SUITABLE_FOR_ASCII_CHAR_P): New macro. | ||
| 211 | (FACE_SUITABLE_FOR_CHAR_P): Use it. | ||
| 212 | * font.c (font_close_object): Now static. | ||
| 213 | * font.h (font_close_object): Remove. | ||
| 214 | * fontset.c (FONTSET_OBJLIST): Remove. | ||
| 215 | (free_realized_fontset) #if-0 the body, which does nothing. | ||
| 216 | (face_suitable_for_char_p): #if-0, as it's never called. | ||
| 217 | * fontset.h (face_suitable_for_char_p): Remove decl. | ||
| 218 | * xfaces.c (face_at_string_position): Use | ||
| 219 | FACE_SUITABLE_FOR_ASCII_CHAR_P, not FACE_SUITABLE_FOR_CHAR_P, | ||
| 220 | since 0 is always ASCII. | ||
| 221 | |||
| 222 | * fns.c (weak_hash_tables): Now static. | ||
| 223 | |||
| 224 | * fileio.c: Make symbols static if they're not exported. | ||
| 225 | (auto_saving, auto_save_mode_bits, auto_save_error_occurred): | ||
| 226 | (Vwrite_region_annotation_buffers): Now static. | ||
| 227 | |||
| 228 | * eval.c: Make symbols static if they're not exported. | ||
| 229 | (backtrace_list, lisp_eval_depth, when_entered_debugger): Now static. | ||
| 230 | * lisp.h (backtrace_list): Remove decl. | ||
| 231 | |||
| 232 | * emacs.c: Make symbols static if they're not exported. | ||
| 233 | (malloc_state_ptr, malloc_using_checking, syms_of_emacs): | ||
| 234 | (fatal_error_code, fatal_error_signal_hook, standard_args): | ||
| 235 | Now static. | ||
| 236 | (fatal_error_signal): Now static, unless FLOAT_CATCH_SIGKILL. | ||
| 237 | (DEFINE_DUMMY_FUNCTION): Mark function as externally visible. | ||
| 238 | (__CTOR_LIST__, __DTOR_LIST__): Now externally visible. | ||
| 239 | * lisp.h (fatal_error_signal_hook): Remove decl. | ||
| 240 | (fatal_error_signal): Declare only if FLOAT_CATCH_SIGKILL. | ||
| 241 | |||
| 242 | * editfns.c: Move a (normally-unused) function to its only use. | ||
| 243 | * editfns.c, lisp.h (get_operating_system_release): Remove. | ||
| 244 | * process.c (init_process) [DARWIN_OS]: Do it inline, as it is not | ||
| 245 | worth the hassle of breaking this out. | ||
| 246 | |||
| 247 | * xterm.c: Make symbols static if they're not exported. | ||
| 248 | (x_raise_frame, x_lower_frame, x_wm_set_window_state): | ||
| 249 | (x_wm_set_icon_pixmap, x_initialize, XTread_socket_fake_io_error): | ||
| 250 | (x_destroy_window, x_delete_display): | ||
| 251 | Now static. | ||
| 252 | (x_dispatch_event): Now static if ! (USE_MOTIF || USE_X_TOOLKIT). | ||
| 253 | (x_mouse_leave): Remove; unused. | ||
| 254 | * xterm.h (x_display_info_for_name, x_raise_frame, x_lower_frame): | ||
| 255 | (x_destroy_window, x_wm_set_window_state, x_wm_set_icon_pixmap): | ||
| 256 | (x_delete_display, x_initialize, x_set_border_pixel, x_screen_planes): | ||
| 257 | Remove decls. | ||
| 258 | (x_mouse_leave): Declare only if WINDOWSNT. | ||
| 259 | (x_dispatch_event): Declare only if USE_MOTIF or USE_X_TOOLKIT. | ||
| 260 | (xic_create_fontsetname): Declare only if HAVE_X_WINDOWS && | ||
| 261 | USE_X_TOOLKIT. | ||
| 262 | |||
| 263 | * ftxfont.c: Make symbols static if they're not exported. | ||
| 264 | (ftxfont_driver): Export only if !defined HAVE_XFT && def8ined | ||
| 265 | HAVE_FREETYPE. | ||
| 266 | * font.h (ftxfont_driver): Likewise. | ||
| 267 | |||
| 268 | * xfns.c: Make symbols static if they're not exported. | ||
| 269 | (x_last_font_name, x_display_info_for_name): | ||
| 270 | (x_set_foreground_color, x_set_background_color, x_set_mouse_color): | ||
| 271 | (x_set_cursor_color, x_set_border_pixel, x_set_border_color): | ||
| 272 | (x_set_cursor_type, x_set_icon_type, x_set_icon_name): | ||
| 273 | (x_set_scroll_bar_foreground, x_set_scroll_bar_background): | ||
| 274 | (x_explicitly_set_name, x_set_title, xic_defaut_fontset, tip_timer): | ||
| 275 | (last_show_tip_args): Now static. | ||
| 276 | (xic_defaut_fontset, xic_create_fontsetname): Define only if | ||
| 277 | defined HAVE_X_WINDOWS && defined USE_X_TOOLKIT | ||
| 278 | (x_screen_planes): Remove; unused. | ||
| 279 | * dispextern.h (x_screen_planes): Remove decl. | ||
| 280 | |||
| 281 | * dispnew.c: Make symbols static if they're not exported. | ||
| 282 | * dispextern.h (redraw_garbaged_frames, scrolling): | ||
| 283 | (increment_row_positions): Remove. | ||
| 284 | * dispnew.c (new_glyph_matrix, increment_row_positions, scrolling): | ||
| 285 | (delayed_size_change, glyph_matrix_count, glyph_pool_count): | ||
| 286 | Now static. | ||
| 287 | (redraw_garbaged_frames): Remove; unused. | ||
| 288 | |||
| 289 | * xfaces.c: Make symbols static if they're not exported. | ||
| 290 | * dispextern.h (ascii_face_of_lisp_face, free_realized_face): | ||
| 291 | Remove decls. | ||
| 292 | * xterm.h (defined_color): Remove decls. | ||
| 293 | (x_free_dpy_colors): Declare only if USE_X_TOOLKIT. | ||
| 294 | * xfaces.c (tty_suppress_bold_inverse_default_colors_p): | ||
| 295 | (menu_face_changed_default, defined_color, free_realized_face): | ||
| 296 | (x_free_dpy_colors): Define only if USE_X_TOOLKIT. | ||
| 297 | (ascii_face_of_lisp_face): Remove; unused. | ||
| 298 | |||
| 299 | * xdisp.c: Make symbols static if they're not exported. | ||
| 300 | * dispextern.h (scratch_glyph_row, window_box_edges): | ||
| 301 | (glyph_to_pixel_coords, set_cursor_from_row): | ||
| 302 | (get_next_display_element, set_iterator_to_next): | ||
| 303 | (highlight_trailing_whitespace, frame_to_window_pixel_xy): | ||
| 304 | (show_mouse_face): Remove decls | ||
| 305 | * frame.h (message_buf_print): Likewise. | ||
| 306 | * lisp.h (pop_message, set_message, check_point_in_composition): | ||
| 307 | Likewise. | ||
| 308 | * xterm.h (set_vertical_scroll_bar): Likewise. | ||
| 309 | * xdisp.c (list_of_error, Vmessage_stack, line_number_displayed): | ||
| 310 | (message_buf_print, scratch_glyph_row, displayed_buffer): | ||
| 311 | (set_iterator_to_next, pop_message, set_message, set_cursor_from_row): | ||
| 312 | (get_next_display_element, show_mouse_face, window_box_edges): | ||
| 313 | (frame_to_window_pixel_xy, check_point_in_composition): | ||
| 314 | (set_vertical_scroll_bar, highlight_trailing_whitespace): Now static. | ||
| 315 | (glyph_to_pixel_coords): Remove; unused. | ||
| 316 | |||
| 317 | * dired.c (file_name_completion): Now static. | ||
| 318 | |||
| 319 | * dbusbind.c (xd_in_read_queued_messages): Now static. | ||
| 320 | |||
| 321 | * lisp.h (circular_list_error, FOREACH): Remove; unused. | ||
| 322 | * data.c (circular_list_error): Remove. | ||
| 323 | |||
| 324 | * commands.h (last_point_position, last_point_position_buffer): | ||
| 325 | (last_point_position_window): Remove decls. | ||
| 326 | * keyboard.c: Make these variables static. | ||
| 327 | |||
| 328 | * coding.h (coding, code_convert_region, encode_coding_gap): Remove | ||
| 329 | decls. | ||
| 330 | * coding.c (Vsjis_coding_system, Vbig5_coding_system): | ||
| 331 | (iso_code_class, detect_coding, code_convert_region): Now static. | ||
| 332 | (encode_coding_gap): Remove; unused. | ||
| 333 | |||
| 334 | * chartab.c (chartab_chars, chartab_bits): Now static. | ||
| 335 | |||
| 336 | * charset.h (charset_iso_8859_1): Remove decl. | ||
| 337 | * charset.c (charset_iso_8859_1, charset_emacs, map_charset_for_dump): | ||
| 338 | Now static. | ||
| 339 | |||
| 340 | * ccl.h (check_ccl_update, Vccl_program_table): Remove decls. | ||
| 341 | * ccl.c (Vccl_program_table): Now static. | ||
| 342 | (check_ccl_update): Remove; unused. | ||
| 343 | |||
| 344 | * category.c (SET_CATEGORY_SET, set_category_set): Move here. | ||
| 345 | * category.h: ... from here. | ||
| 346 | * category.c (check_category_table, set_category_set): Now static. | ||
| 347 | |||
| 348 | * casetab.c (Vascii_upcase_table, Vascii_eqv_table): Now static. | ||
| 349 | * lisp.h: Remove these decls. | ||
| 350 | |||
| 351 | * buffer.c (buffer_count): Remove unused var. | ||
| 352 | |||
| 353 | * bidi.c (bidi_dump_cached_states): Mark as externally visible, | ||
| 354 | so that it's not optimized away. | ||
| 355 | (bidi_ignore_explicit_marks_for_paragraph_level): Likewise. | ||
| 356 | * dispextern.h (bidi_dump_cached_states): Remove, since it's | ||
| 357 | exported only to the debugger. | ||
| 358 | |||
| 359 | * atimer.c (alarm_signal_handler, run_all_atimers): Now static. | ||
| 360 | * atimer.h (run_all_atimers): Removed; not exported. | ||
| 361 | |||
| 362 | font.c: Make copy_font_spec and merge_font_spec ordinary C functions. | ||
| 363 | * font.c (copy_font_spec): Rename from Fcopy_font_spec, since it | ||
| 364 | was inaccessible from Lisp. | ||
| 365 | (merge_font_spec): Likewise, renaming from Fmerge_font_spec. | ||
| 366 | * font.c, font.h, fontset.c, xfaces.c, xfont.c: Change all uses. | ||
| 367 | |||
| 368 | alloc.c: Import and export fewer symbols, and remove unused items. | ||
| 369 | * lisp.h (suppress_checking, die): Declare only if ENABLE_CHECKING | ||
| 370 | is defined. | ||
| 371 | (suppress_checking): Add EXTERNALLY_VISIBLE attribute, so that | ||
| 372 | it's not optimized away by whole-program optimization. | ||
| 373 | (message_enable_multibyte, free_misc): Remove. | ||
| 374 | (catchlist, handlerlist, mark_backtrace): | ||
| 375 | Declare only if BYTE_MARK_STACK. | ||
| 376 | (mark_byte_stack): Likewise, fixing a ifdef-vs-if typo. | ||
| 377 | * alloc.c (pure): Export only if VIRT_ADDR_VARIES is defined. | ||
| 378 | (message_enable_multibyte): Remove decl. | ||
| 379 | (free_misc, interval_free_list, float_block, float_block_index): | ||
| 380 | (n_float_blocks, float_free_list, cons_block, cons_block_index): | ||
| 381 | (cons_free_list, last_marked_index): | ||
| 382 | Now static. | ||
| 383 | (suppress_checking, die): Define only if ENABLE_CHECKING is defined. | ||
| 384 | * eval.c (catchlist, handlerlist): Export only if BYTE_MARK_STACK. | ||
| 385 | (mark_backtrace): Define only if BYTE_MARK_STACK. | ||
| 386 | * xdisp.c (message_enable_multibyte): Now static. | ||
| 387 | |||
| 388 | Declare Lisp_Object Q* variables to be 'static' if not exproted. | ||
| 389 | This makes it easier for human readers (and static analyzers) | ||
| 390 | to see whether these variables are used from other modules. | ||
| 391 | * alloc.c, buffer.c, bytecode.c, callint.c, casetab.c, category.c: | ||
| 392 | * ccl.c, character.c, charset.c, cmds.c, coding.c, composite.c: | ||
| 393 | * data.c, dbusbind.c, dired.c, editfns.c, eval.c, fileio.c, fns.c: | ||
| 394 | * font.c, frame.c, fringe.c, ftfont.c, image.c, keyboard.c, keymap.c: | ||
| 395 | * lread.c, macros.c, minibuf.c, print.c, process.c, search.c: | ||
| 396 | * sound.c, syntax.c, textprop.c, window.c, xdisp.c, xfaces.c, xfns.c: | ||
| 397 | * xmenu.c, xselect.c: | ||
| 398 | Declare Q* vars static if they are not used in other modules. | ||
| 399 | * ccl.h, character.h, charset.h, coding.h, composite.h, font.h: | ||
| 400 | * frame.h, intervals.h, keyboard.h, lisp.h, process.h, syntax.h: | ||
| 401 | Remove decls of unexported vars. | ||
| 402 | * keyboard.h (EVENT_HEAD_UNMODIFIED): Remove now-unused macro. | ||
| 403 | |||
| 404 | * lisp.h (DEFINE_FUNC): Make sname 'static'. | ||
| 405 | |||
| 406 | Make Emacs functions such as Fatom 'static' by default. | ||
| 407 | This makes it easier for human readers (and static analyzers) | ||
| 408 | to see whether these functions can be called from other modules. | ||
| 409 | DEFUN now defines a static function. To make the function external | ||
| 410 | so that it can be used in other C modules, use the new macro DEFUE. | ||
| 411 | * lisp.h (Funibyte_char_to_multibyte, Fsyntax_table_p): | ||
| 412 | (Finit_image_library): | ||
| 413 | (Feval_region, Fbacktrace, Ffetch_bytecode, Fswitch_to_buffer): | ||
| 414 | (Ffile_executable_p, Fmake_symbolic_link, Fcommand_execute): | ||
| 415 | (Fget_process, Fdocumentation_property, Fbyte_code, Ffile_attributes): | ||
| 416 | Remove decls, since these functions are now static. | ||
| 417 | (Funintern, Fget_internal_run_time): New decls, since these functions | ||
| 418 | were already external. | ||
| 419 | |||
| 420 | * alloc.c, buffer.c, callint.c, callproc.c, casefiddle.c, casetab.c: | ||
| 421 | * ccl.c, character.c, chartab.c, cmds.c, coding.c, data.c, dispnew.c: | ||
| 422 | * doc.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, floatfns.c: | ||
| 423 | * fns.c, font.c, fontset.c, frame.c, image.c, indent.c: | ||
| 424 | * keyboard.c, keymap.c, lread.c: | ||
| 425 | * macros.c, marker.c, menu.c, minibuf.c, print.c, process.c, search.c: | ||
| 426 | * syntax.c, term.c, terminal.c, textprop.c, undo.c: | ||
| 427 | * window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c, xsettings.c: | ||
| 428 | Mark functions with DEFUE instead of DEFUN, | ||
| 429 | if they are used in other modules. | ||
| 430 | * buffer.c (Fset_buffer_major_mode, Fdelete_overlay): New forward | ||
| 431 | decls for now-static functions. | ||
| 432 | * buffer.h (Fdelete_overlay): Remove decl. | ||
| 433 | * callproc.c (Fgetenv_internal): Mark as internal. | ||
| 434 | * composite.c (Fremove_list_of_text_properties): Remove decl. | ||
| 435 | (Fcomposition_get_gstring): New forward static decl. | ||
| 436 | * composite.h (Fcomposite_get_gstring): Remove decl. | ||
| 437 | * dired.c (Ffile_attributes): New forward static decl. | ||
| 438 | * doc.c (Fdocumntation_property): New forward static decl. | ||
| 439 | * eval.c (Ffetch_bytecode): New forward static decl. | ||
| 440 | (Funintern): Remove extern decl; now in .h file where it belongs. | ||
| 441 | * fileio.c (Fmake_symbolic_link): New forward static decl. | ||
| 442 | * image.c (Finit_image_library): New forward static decl. | ||
| 443 | * insdel.c (Fcombine_after_change_execute): Make forward decl static. | ||
| 444 | * intervals.h (Fprevious_property_change): | ||
| 445 | (Fremove_list_of_text_properties): Remove decls. | ||
| 446 | * keyboard.c (Fthis_command_keys): Remove decl. | ||
| 447 | (Fcommand_execute): New forward static decl. | ||
| 448 | * keymap.c (Flookup_key): New forward static decl. | ||
| 449 | (Fcopy_keymap): Now static. | ||
| 450 | * keymap.h (Flookup_key): Remove decl. | ||
| 451 | * process.c (Fget_process): New forward static decl. | ||
| 452 | (Fprocess_datagram_address): Mark as internal. | ||
| 453 | * syntax.c (Fsyntax_table_p): New forward static decl. | ||
| 454 | (skip_chars): Remove duplicate decl. | ||
| 455 | * textprop.c (Fprevious_property_change): New forward static decl. | ||
| 456 | * window.c (Fset_window_fringes, Fset_window_scroll_bars): | ||
| 457 | Now internal. | ||
| 458 | (Fset_window_margins, Fset_window_vscroll): New forward static decls. | ||
| 459 | * window.h (Fset_window_vscroll, Fset_window_margins): Remove decls. | ||
| 460 | |||
| 461 | * editfns.c (Fformat): Remove unreachable code. | ||
| 462 | |||
| 463 | 2011-04-14 Andreas Schwab <schwab@linux-m68k.org> | ||
| 464 | |||
| 465 | * fileio.c (Finsert_file_contents): Fix typo in 2005-05-13 | ||
| 466 | change. (Bug#8496) | ||
| 467 | |||
| 468 | 2011-04-13 Eli Zaretskii <eliz@gnu.org> | ||
| 469 | |||
| 470 | * xdisp.c (handle_invisible_prop): Don't call bidi_paragraph_init | ||
| 471 | when at ZV. (Bug#8487) | ||
| 472 | |||
| 31 | 2011-04-12 Andreas Schwab <schwab@linux-m68k.org> | 473 | 2011-04-12 Andreas Schwab <schwab@linux-m68k.org> |
| 32 | 474 | ||
| 33 | * charset.c (Fclear_charset_maps): Use xfree instead of free. | 475 | * charset.c (Fclear_charset_maps): Use xfree instead of free. |