1. 19 Jul, 2012 5 commits
    • Paul Eggert's avatar
      * buffer.h (FOR_EACH_BUFFER): Rename from 'for_each_buffer'. · 52b852c7
      Paul Eggert authored
      (FOR_EACH_PER_BUFFER_OBJECT_AT): Rename from
      All uses changed.  It's better to use upper-case for macros that
      cannot be implemented as functions, to give the reader a clue
      that they're special.
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/chart.el: Use lexical-binding. · 5db81e33
      Stefan Monnier authored
      (chart-emacs-storage): Don't hardcode the list of entries.
      * src/alloc.c (Fgarbage_collect): Tweak docstring.
    • Dmitry Antipov's avatar
      Tweak the value returned from Fgarbage_collect again. · 5b835e1d
      Dmitry Antipov authored
      * src/alloc.c (Fgarbage_collect): New return value, as confirmed in
      Adjust documentation.
      (total_vector_bytes): Rename to total_vector_slots, adjust
      (total_free_vector_bytes): Rename to total_free_vector_slots,
      adjust accounting.
      (Qstring_bytes, Qvector_slots): New symbols.
      (syms_of_alloc): DEFSYM them.
      * lisp/emacs-lisp/chart.el (chart-emacs-storage): Adjust again.
    • Dmitry Antipov's avatar
      Compact buffers when idle. · 9cd47b72
      Dmitry Antipov authored
      * lisp/compact.el: New file.
      * src/buffer.c (compact_buffer, Fcompact_buffer): New function.
      (syms_of_buffer): Register Fcompact_buffer.
      * src/alloc.c (Fgarbage_collect): Use compact_buffer.
      * src/buffer.h (compact_buffer): New prototype.
      (struct buffer_text): New member.
    • Dmitry Antipov's avatar
      New macro to iterate over all buffers, miscellaneous cleanups. · d17337e5
      Dmitry Antipov authored
      * lisp.h (all_buffers): Remove declaration.
      * buffer.h (all_buffers): Add declaration, with comment.
      (for_each_buffer): New macro.
      * alloc.c (Fgarbage_collect, mark_object): Use it.
      * buffer.c (Fkill_buffer, Fbuffer_swap_text, Fset_buffer_multibyte)
      (init_buffer): Likewise.
      * data.c (Fset_default): Likewise.
      * coding.c (code_conversion_restore): Remove redundant check
      for dead buffer.
      * buffer.c (Fkill_buffer): Likewise.  Remove obsolete comment.
  2. 18 Jul, 2012 9 commits
  3. 17 Jul, 2012 9 commits
  4. 16 Jul, 2012 3 commits
  5. 15 Jul, 2012 5 commits
    • Eli Zaretskii's avatar
      Fix bug #11943 with slow redisplay in large paragraphs full of weak characters. · ce811ad9
      Eli Zaretskii authored
       src/bidi.c (MAX_STRONG_CHAR_SEARCH): New macro.
       (bidi_paragraph_init): Use it to limit search forward for a strong
       directional character in abnormally large paragraphs full of
       neutral or weak characters.
    • Stefano Facchini's avatar
      * src/gtkutil.c (xg_create_tool_bar): Apply "primary-toolbar" style to · c9adfeaa
      Stefano Facchini authored
      the toolbar.
      (xg_make_tool_item): Give the widget event box a transparent background.
      Fixes: debbugs:9451
    • Dmitry Antipov's avatar
      Cleanup basic allocation variables and functions. · fff62aa9
      Dmitry Antipov authored
      * alloc.c (ignore_warnings, init_intervals, init_float)
      (init_cons, init_symbol, init_marker): Remove.
      (interval_block_index): Initialize to INTERVAL_BLOCK_SIZE.
      (float_block_index): Initialize to FLOAT_BLOCK_SIZE.
      (cons_block_index): Initialize to CONS_BLOCK_SIZE.
      (symbol_block_size): Initialize to SYMBOL_BLOCK_SIZE.
      (marker_block_index): Initialize to MARKER_BLOCK_SIZE.
      (staticidx, init_alloc_once, init_strings, free_ablock):
      Remove redundant initialization.
      * fns.c (init_weak_hash_tables): Remove.
      * lisp.h (init_weak_hash_tables): Remove prototype.
    • Dmitry Antipov's avatar
      Use zero_vector where appropriate. · 9730daca
      Dmitry Antipov authored
      * alloc.c (zero_vector): Define as Lisp_Object.  Adjust users
      * lisp.h (zero_vector): New declaration.
      * font.c (null_vector): Remove.
      (syms_of_font): Remove initialization and staticpro.
      (font_list_entities, font_find_for_lface): Change to use zero_vector.
      * keymap.c (Faccessible_keymaps): Likewise.
    • Leo Liu's avatar
      Add news for exclamation-mark and flymake · 2e2d2a13
      Leo Liu authored
  6. 14 Jul, 2012 5 commits
  7. 13 Jul, 2012 4 commits
    • Glenn Morris's avatar
      Move GC_MARK_SECONDARY_STACK from src/s to configure · 5b633342
      Glenn Morris authored
      * configure.ac (GC_MARK_SECONDARY_STACK): Move here from src/s.
      * src/s/gnu-linux.h (GC_MARK_SECONDARY_STACK): Let configure set it.
    • Glenn Morris's avatar
      Move SETUP_SLAVE_PTY from src/s to configure · 33d63ff4
      Glenn Morris authored
      * configure.ac (SETUP_SLAVE_PTY): Move here from src/s.
      (FIRST_PTY_LETTER, PTY_NAME_SPRINTF): Combine sol2/unixware cases.
      * src/s/usg5-4-common.h (SETUP_SLAVE_PTY): Let configure set it.
      * src/s/irix6-5.h (SETUP_SLAVE_PTY): No more need to unset it.
    • Jan Djärv's avatar
      Remove compiler warnings in objective-C files. · 0dc8cf50
      Jan Djärv authored
      * nsfns.m (x_set_icon_name, ns_set_name_internal)
      (ns_set_name_as_filename, ns_implicitly_set_icon_type)
      (x_set_icon_type, ns_lisp_to_cursor_type, Fns_read_file_name)
      (Fns_get_resource, Fns_set_resource, Fx_open_connection)
      (Fns_font_name, Fns_perform_service)
      (Fns_convert_utf8_nfd_to_nfc, ns_do_applescript)
      (Fns_do_applescript, Fx_show_tip): Use SSDATA where appropriate.
      (ns_set_name): Remove unused variable view.
      (x_set_menu_bar_lines): Remove unused variable olines.
      (x_set_tool_bar_lines): Remove unused variable root_window.
      (Fns_list_colors): Put () around assignment in while statement.
      (Fns_perform_service): Remove unused variable len.
      (Fns_display_usable_bounds): Remove unused variable top.
      (syms_of_nsfns): Remove unused variable i.
      * nsfont.m (ns_get_family, ns_lang_to_script, ns_otf_to_script)
      (ns_registry_to_script, ns_get_req_script, nsfont_open): Use SSDATA
      where appropriate.
      (ns_get_covering_families, ns_findfonts, nsfont_list_family): Put ()
      around assignment in loop statement.
      (nsfont_open): Remove unused variable i.
      (nsfont_open): Remove unused variable len.
      (nsfont_draw): Remove unused variable cs.
      * nsimage.m (ns_load_image, allocInitFromFile): Use SSDATA where
      (setXBMColor): Remove unused variable len.
      (setPixmapData): Put () around assignment in loop statement.
      * nsmenu.m (ns_update_menubar, ns_menu_show, process_dialog)
      (initFromContents): Use SSDATA where appropriate.
      (ns_update_menubar): Add braces to ambigous if-else.
      (initWithTitle): Put () around assignment in if statement.
      (ns_menu_show): Remove unused variables window and keymap.
      (update_frame_tool_bar): Remove unused variable selected_p.
      (initWithContentRect): Remove unused variable this_cmd_name.
      * nsterm.h (menuDown): Add id as type to argument sender.
      (ns_display_info_for_name): Add Lisp_Object argument.
      (ns_term_init): Add Lisp_Object argument.
      (ns_map_event_to_object): Add void argument.
      (ns_string_from_pasteboard, ns_string_to_pasteboard): Add correct
      prototype with arguments and only declare if __OBJC__.
      (nxatoms_of_nsselect): Add void argument.
      (ns_lisp_to_cursor_type): Add Lisp_Object argument.
      (ns_alloc_autorelease_pool): Add void argument.
      (ns_release_autorelease_pool): Add void* argument.
      (ns_get_defaults_value): Add const char* argument.
      * nsterm.m (uRect): Only define if NS_IMPL_GNUSTEP.
      (x_free_frame_resources): Pass x_free_frame_resources to NSTRACE.
      (ns_lisp_to_color, ns_string_to_lispmod, ns_term_init)
      (ns_term_shutdown, requestService, initFrameFromEmacs): Use SSDATA
      where appropriate.
      (ns_exec_path, ns_load_path, changeFont): Put () around assignment used
      as boolean expression.
      (x_set_window_size): Remove unused variable toolbar.
      (ns_get_color_default, ns_mod_to_lisp): Remove.
      (ns_mouse_position): Remove unused variables xchar and ychar.
      (ns_compute_glyph_string_overhangs): Remove unused variable face.
      (ns_set_vertical_scroll_bar): Remove unused variable count.
      (ns_delete_terminal): Remove unused variable i.
      (ns_term_init): Remove unused variables r, g and b.
      (mouseDown): Remove unused variable window.
      (windowDidResize): Move definition of theWindow inside NS_IMPL_GNUSTEP.
      (initFrameFromEmacs): Remove unused variable vbextra.
      (mouseEntered): Remove unused variables p and dpyinfo.
      (mouseExited): Remove unused variables p and r.
      (ns_define_frame_cursor, ns_clear_frame_area)
      (ns_draw_window_cursor, ns_initialize_display_info): Make static.
      (menuDown): Assign [sender tag] to variable and cast the variable.
    • Jan Djärv's avatar
      * nsmenu.m (ns_update_menubar): Exchange place of argument 2 and 3 to · b55b9f85
      Jan Djärv authored
      Fixes: debbugs:11907