1. 24 Jan, 2013 3 commits
  2. 23 Jan, 2013 3 commits
    • Stefan Monnier's avatar
      * src/xdisp.c (message2, message2_nolog): Remove functions. · b09cca6a
      Stefan Monnier authored
      (message3, message3_nolog): Extract nbytes and multibyteness directly
      from the string.  Change all callers.
      (message3_nolog): Don't set message_enable_multibyte since set_message
      will reset it anyway.
      (message1, message1_nolog): Use message3.
      (vmessage): Use a stack allocated buffer rather than f->message_buf.
      (with_echo_area_buffer): Remove last two arguments.  Update all callers.
      (set_message): Drop all but the second arg, which has to be a string.
      (set_message_1): Simplify now that we know that a1 is NULL and the
      second arg is a string.
      * src/frame.h (struct frame): Remove `message_buf' field.
      Use glyphs_initialized_p instead.
      (FRAME_MESSAGE_BUF): Remove macro.
      * src/w16select.c (Fw16_set_clipboard_data): Prefer message3 to message2.
      * src/lisp.h (message2, message2_nolog): Remove declarations.
      (message3, message3_nolog): Update declarations.
      * src/keyboard.c (read_char_minibuf_menu_text)
      (read_char_minibuf_menu_width): Remove vars.
      (read_char_...
      b09cca6a
    • Eli Zaretskii's avatar
      Fix dimensions of maximized frame on MS-Windows. · 54ab1c5a
      Eli Zaretskii authored
       src/w32term.c (w32fullscreen_hook): Account correctly for the screen
       real estate used for the tool bar, the menu bar, and scroll bar.
      54ab1c5a
    • Dmitry Antipov's avatar
      * insdel.c (prepare_to_modify_buffer): Force redisplay if · 6c27465b
      Dmitry Antipov authored
      hidden buffer is prepared to modification (Bug#13164).
      6c27465b
  3. 22 Jan, 2013 4 commits
    • Dmitry Antipov's avatar
      * window.h (struct window): Change window_end_valid member from · 9d93ce29
      Dmitry Antipov authored
      Lisp_Object to a bitfield.  Adjust comments.
      (wset_window_end_valid): Remove.
      * window.c (adjust_window_count): Clear window_end_valid.
      (Fwindow_end): Adjust user.  Remove ancient #if 0 code.
      (Fwindow_line_height, set_window_buffer, Frecenter)
      (Fsplit_window_internal, Fdelete_other_windows_internal)
      (Fset_window_fringes, Fset_window_scroll_bars): Adjust users.
      * dispnew.c (adjust_glyph_matrix, clear_window_matrices): Likewise.
      * xdisp.c (check_window_end, reconsider_clip_changes)
      (redisplay_internal, mark_window_display_accurate_1, redisplay_window)
      (try_window, try_window_reusing_current_matrix, note_mouse_highlight)
      (find_first_unchanged_at_end_row, try_window_id): Likewise.
      9d93ce29
    • Dmitry Antipov's avatar
      * xdisp.c (mark_window_display_accurate): Simplify the loop · 1dcb8ea2
      Dmitry Antipov authored
      assuming that the only one of vchild, hchild or buffer window
      slots is non-nil.  Call mark_window_display_accurate_1 for
      the leaf windows only.
      (mark_window_display_accurate_1): Always assume leaf window.
      Adjust comment.
      1dcb8ea2
    • Paul Eggert's avatar
      * emacs.c (Qkill_emacs_hook): Now static. · 593a5f2e
      Paul Eggert authored
      593a5f2e
    • Paul Eggert's avatar
      * fileio.c (Finsert_file_contents): Simplify. · b41b8a7e
      Paul Eggert authored
      Remove unnecessary assignments and tests.
      b41b8a7e
  4. 21 Jan, 2013 2 commits
  5. 19 Jan, 2013 10 commits
  6. 18 Jan, 2013 2 commits
  7. 17 Jan, 2013 3 commits
    • Dmitry Antipov's avatar
      * lisp.h (toplevel): Add comment about using Lisp_Save_Value · 468afbac
      Dmitry Antipov authored
      objects, related functions and macros.
      (make_save_value): Adjust prototype.
      (make_save_pointer): New prototype.
      (SAFE_NALLOCA): Fix indentation.  Use make_save_pointer.
      (SAFE_ALLOCA_LISP): Adjust make_save_value usage.
      * alloc.c (format_save_value): Rename to make_save_value.
      (make_save_pointer): New function.
      (record_xmalloc): Use make_save_pointer.
      * dired.c, editfns.c, fileio.c, font.c, gtkutil.c, lread.c:
      * nsmenu.m, nsterm.m, xfns.c, xmenu.c, xselect.c, keymap.c:
      Change users of make_save_value to make_save_pointer.
      Likewise for format_save_value and make_save_value.
      468afbac
    • Dmitry Antipov's avatar
      * buffer.h (NARROWED, BUF_NARROWED): Drop unused macros. · 0e70695a
      Dmitry Antipov authored
      (DECODE_POSITION, BUFFER_CHECK_INDIRECTION): Fix indentation.
      * buffer.c (toplevel, syms_of_buffer): Drop old commented-out
      debugging stubs.
      0e70695a
    • Glenn Morris's avatar
      * src/fns.c (Frandom): Doc fix. · 085d34c4
      Glenn Morris authored
      085d34c4
  8. 15 Jan, 2013 4 commits
    • Paul Eggert's avatar
      * src/alloc.c (free_save_value): Now static. · 963ea40f
      Paul Eggert authored
      963ea40f
    • Dmitry Antipov's avatar
      * keymap.c (map_keymap_internal): Use format_save_value. · 3346c1d0
      Dmitry Antipov authored
      (map_keymap_char_table_item): Adjust accordingly.
      * fileio.c (non_regular_fd, non_regular_inserted)
      (non_regular_nbytes): Remove.
      (Finsert_file_contents): Convert trytry to ptrdiff_t.  Use
      format_save_value to pass parameters to read_non_regular.
      (read_non_regular): Use XSAVE_ macros to extract parameters.
      Adjust comment.
      * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Use
      format_save_value.
      (pop_down_menu) [!USE_X_TOOLKIT && !USE_GTK]: Adjust user.
      3346c1d0
    • Dmitry Antipov's avatar
      * src/lisp.h (XSAVE_POINTER, XSAVE_INTEGER): Change to allow extraction · 2b30549c
      Dmitry Antipov authored
      from any Lisp_Save_Value slot.  Add type checking.
      * src/alloc.c, src/dired.c, src/editfns.c, src/fileio.c, src/ftfont.c:
      * src/gtkutil.c, src/keymap.c, src/lread.c, src/nsterm.h, src/nsmenu.c:
      * src/xfns.c, src/xmenu.c, src/xselect.c: All users changed.
      * admin/coccinelle/xsave.cocci: Semantic patch to adjust users of
      XSAVE_POINTER and XSAVE_INTEGER macros.
      2b30549c
    • Dmitry Antipov's avatar
      Some convenient bits to deal with Lisp_Save_Values. · 1b971ac1
      Dmitry Antipov authored
      * lisp.h (XSAVE_OBJECT): New macro to extract saved objects.
      (allocate_misc): Remove prototype.
      (format_save_value): New prototype.
      * alloc.c (allocate_misc): Revert back to static.
      (format_save_value): New function to build Lisp_Save_Value
      object with the specified internal structure.
      (make_save_value): Reimplement using format_save_value.
      * editfns.c (save_excursion_save): Use format_save_value.
      (save_excursion_restore): Use XSAVE_OBJECT.
      1b971ac1
  9. 14 Jan, 2013 3 commits
    • Paul Eggert's avatar
      Avoid needless casts with XSAVE_POINTER. · c50cf2ea
      Paul Eggert authored
      * alloc.c (mark_object) [GC_MARK_STACK]:
      * dired.c (directory_files_internal_unwind):
      * fileio.c (do_auto_save_unwind):
      * gtkutil.c (pop_down_dialog):
      * keymap.c (map_keymap_char_table_item):
      * lread.c (load_unwind):
      * nsmenu.m (pop_down_menu):
      * print.c (print_object) [GC_MARK_STACK]:
      * xfns.c (clean_up_file_dialog):
      * xmenu.c (cleanup_widget_value_tree):
      Omit casts between XSAVE_POINTER and a pointer type.
      c50cf2ea
    • Dmitry Antipov's avatar
      Fix compilation with GC_MARK_STACK == GC_USE_GCPROS_AS_BEFORE. · 9d5a1260
      Dmitry Antipov authored
      * eval.c (eval_sub): Protect `form' from being GCed before its
      car and cdr becomes protected with the backtrace entry.
      9d5a1260
    • Dmitry Antipov's avatar
      Make Lisp_Save_Value more versatile storage for up to four objects. · 73ebd38f
      Dmitry Antipov authored
      * lisp.h (toplevel): Enumeration to describe types of saved objects.
      (struct Lisp_Save_Value): New layout.  Adjust comments.
      (XSAVE_POINTER): New macro.
      (XSAVE_INTEGER): Likewise.
      (allocate_misc): Add prototype.
      (free_misc): Likewise.
      * alloc.c (allocate_misc): Now global.
      (free_misc): Likewise.  Adjust comment.
      (make_save_value): Use new Lisp_Save_Value layout.  Adjust comment.
      (free_save_value): Likewise.
      (mark_object): Likewise.
      * editfns.c (save_excursion_save): Pack everything within
      Lisp_Save_Value and so avoid xmalloc.
      (save_excursion_restore): Adjust to match new layout.  Use free_misc
      because we do not allocate extra memory any more.  Add eassert.
      * print.c (print_object): New code to print Lisp_Save_Value.  Do not
      rely on valid_lisp_object_p if !GC_MARK_STACK.  Adjust comments.
      * dired.c, fileio.c, font.c, ftfont.c, gtkutil.c, keymap.c,
      * lread.c, nsmenu.m, nsterm.h, xfns.c, xmenu.c, xselect.c:
      Use XSAVE_POINTER and XSAVE_INTEGER where appropriate.
      73ebd38f
  10. 13 Jan, 2013 3 commits
  11. 12 Jan, 2013 1 commit
  12. 11 Jan, 2013 2 commits