1. 22 Aug, 2012 17 commits
  2. 21 Aug, 2012 23 commits
    • Paul Eggert's avatar
      * alloc.c: Use bool for booleans. · fce31d69
      Paul Eggert authored
      (gc_in_progress, abort_on_gc)
      (setjmp_tested_p) [!GC_SAVE_REGISTERS_ON_STACK && !GC_SETJMP_WORKS]:
      (dont_register_blocks) [GC_MALLOC_CHECK]:
      (suppress_checking) [ENABLE_CHECKING]: Now bool, not int.
      (check_string_bytes, make_specified_string, memory_full)
      (live_string_p, live_cons_p, live_symbol_p, live_float_p)
      (live_misc_p, live_vector_p, live_buffer_p, mark_maybe_object)
      (mark_stack, valid_pointer_p, make_pure_string)
      (Fgarbage_collect, survives_gc_p, gc_sweep):
      Use bool for booleans, instead of int.
      (test_setjmp) [!GC_SAVE_REGISTERS_ON_STACK && !GC_SETJMP_WORKS]:
      Remove unused local.
      * alloc.c (PURE_POINTER_P):
      * lisp.h (STRING_MULTIBYTE): Document that it returns a boolean.
      * editfns.c (Fformat):
      * fileio.c (Fexpand_file_name, Fsubstitute_in_file_name)
      (Fdo_auto_save):
      * fns.c (sweep_weak_table):
      * lisp.h (suppress_checking, push_message, survives_gc_p)
      (make_pure_string, gc_in_progress, abort_on_gc):
      * lread.c (readchar, read1):
      * print.c (Fprin1_to_string):
      * xdisp.c (push_message):
      Use bool for booleans affected directly or indirectly by
      alloc.c's changes.
      fce31d69
    • Paul Eggert's avatar
      Make recently-introduced setters macros. · d0d2d26f
      Paul Eggert authored
      * fontset.c (set_fontset_id, set_fontset_name, set_fontset_ascii)
      (set_fontset_base, set_fontset_frame, set_fontset_nofont_face)
      (set_fontset_default, set_fontset_fallback): Rename from their
      upper-case counterparts, and make them functions rather than macros.
      This is more consistent with the other recently-introduced setters.
      These don't need to be inline, since they're local.
      d0d2d26f
    • Andreas Schwab's avatar
      Fixes: debbugs:11805 · c6cc78b8
      Andreas Schwab authored
      * cus-face.el (custom-face-attributes): Fix customize type for the
      :underline attribute.
      c6cc78b8
    • Jan Djärv's avatar
      * nsterm.m (fd_handler:): Alloc and release a NSAutoreleasePool in · d18e2bb6
      Jan Djärv authored
      the loop.
      
      Fixes: debbugs:12247
      d18e2bb6
    • Glenn Morris's avatar
      79aba012
    • Glenn Morris's avatar
      Remove yet more cal-tex code duplication · b7fa2691
      Glenn Morris authored
      * lisp/calendar/cal-tex.el (cal-tex-weekly-common): New function.
      (cal-tex-cursor-week-at-a-glance, cal-tex-cursor-filofax-week): Use it.
      b7fa2691
    • Glenn Morris's avatar
      Remove more cal-tex code duplication · 52f56d5a
      Glenn Morris authored
      * calendar/cal-tex.el (cal-tex-rightday): Add optional funcname arg.
      (cal-tex-shortday): New function.
      (cal-tex-cursor-week-at-a-glance, cal-tex-cursor-filofax-week)
      (cal-tex-cursor-filofax-daily): Use the above.
      52f56d5a
    • Paul Eggert's avatar
      * lisp.h (vcopy): Use memcpy rather than our own loop. · 1b9d9d16
      Paul Eggert authored
      This fixes a performance regression introduced by the recent
      addition of vcopy.  This means 'vcopy' will need to be modified
      for a copying collector, but that's OK.  Also, tighten the
      checking in the assertion.
      1b9d9d16
    • Eli Zaretskii's avatar
      Fix bug #11860 with displaying composite RTL characters on MS-Windows. · b2f09701
      Eli Zaretskii authored
       src/w32uniscribe.c (uniscribe_shape): Fix producing gstring
       components for RTL text.  Adjust X-OFFSET of each non-base glyph
       for the width of the base character, according to what
       x_draw_composite_glyph_string_foreground expects.  Generate
       WADJUST value according to composition_gstring_width's
       expectations, to produce correct width of the composed character.
       Reverse the sign of the DU offset produced by ScriptPlace.
      b2f09701
    • Paul Eggert's avatar
    • Paul Eggert's avatar
      Merge from gnulib. · 01b13eb7
      Paul Eggert authored
      01b13eb7
    • Dmitry Antipov's avatar
      Avoid direct writes to contents member of struct Lisp_Vector. · 086ca913
      Dmitry Antipov authored
      * lisp.h (vcopy): New function to copy data into vector.
      * dispnew.c (Fframe_or_buffer_changed_p): Use AREF and ASET.
      * fns.c (Ffillarray): Use ASET.
      * keyboard.c (timer_check_2): Use AREF and ASET.
      (append_tool_bar_item, Frecent_keys): Use vcopy.
      * lread.c (read_vector): Use ASET.
      * msdos.c (Frecent_doskeys): Use vcopy.
      * xface.c (Finternal_copy_lisp_face): Use vcopy.
      (Finternal_merge_in_global_face): Use ASET and vcopy.
      * xfont.c (xfont_list_pattern): Likewise.
      086ca913
    • Glenn Morris's avatar
      Auto-commit of generated files. · 0e733db9
      Glenn Morris authored
      0e733db9
    • Martin Rudalics's avatar
      Document recent changes for select-window, window-point and set-window-point. · 342dac71
      Martin Rudalics authored
      * windows.texi (Window Point): Document recent changes in
      window-point and set-window-point.
      (Selecting Windows): Document recent change in select-window.
      342dac71
    • Martin Rudalics's avatar
      For selected window have (set-)window-point always operate on buffer's point. · 5481664a
      Martin Rudalics authored
      * window.c (Fwindow_point): For the selected window always return
      the position of its buffer's point.
      (Fset_window_point): For the selected window always go in its
      buffer to the specified position.
      * window.el (window-point-1, set-window-point-1): Remove.
      (window-in-direction, record-window-buffer)
      (set-window-buffer-start-and-point, split-window-below)
      (window--state-get-1, display-buffer-record-window): Replace
      calls to window-point-1 and set-window-point-1 by calls to
      window-point and set-window-point respectively.
      5481664a
    • Glenn Morris's avatar
      Remove still more cal-tex code duplication · 9f1ee09e
      Glenn Morris authored
      * lisp/calendar/cal-tex.el (cal-tex-leftday, cal-tex-rightday): New functions.
      (cal-tex-cursor-week-at-a-glance, cal-tex-cursor-filofax-2week)
      (cal-tex-cursor-filofax-week): Use them.
      9f1ee09e
    • Julien Danjou's avatar
      erc-match: fix erc-match server buffer exclusion · a878d0f2
      Julien Danjou authored
      * erc-match.el (erc-match-message): Use
      `erc-match-exclude-server-buffer' not
      `erc-track-exclude-server-buffer'.
      a878d0f2
    • Glenn Morris's avatar
      Remove more cal-tex code duplication · 79858159
      Glenn Morris authored
      * lisp/calendar/cal-tex.el (cal-tex-lefthead, cal-tex-righthead): New constants.
      (cal-tex-cursor-week-at-a-glance, cal-tex-cursor-filofax-2week)
      (cal-tex-cursor-filofax-week, cal-tex-cursor-filofax-daily): Use them.
      79858159
    • Glenn Morris's avatar
      Allow multiple cal-tex-buffer buffers to exist · d346b2b4
      Glenn Morris authored
      * lisp/calendar/cal-tex.el (cal-tex-preamble): Generate new buffers.
      (cal-tex-end-document): Don't rely on buffer name.
      d346b2b4
    • Glenn Morris's avatar
      Use cal-tex-arg more · 2d225a3a
      Glenn Morris authored
      * lisp/calendar/cal-tex.el (cal-tex-scriptsize, cal-tex-huge)
      (cal-tex-Huge, cal-tex-large): Use cal-tex-arg.
      2d225a3a
    • Glenn Morris's avatar
      Use cal-tex-* functions more · b2403709
      Glenn Morris authored
      * lisp/calendar/cal-tex.el (cal-tex-cursor-filofax-year): Use cal-tex-vspace.
      (cal-tex-vspace, cal-tex-hspace, cal-tex-em, cal-tex-bf)
      (cal-tex-Huge-bf, cal-tex-large-bf): Use cal-tex-cmd.
      b2403709
    • Glenn Morris's avatar
      Improve cal-tex-cmd usage · 1cebb5c0
      Glenn Morris authored
      * lisp/calendar/cal-tex.el (cal-tex-cursor-filofax-year)
      (cal-tex-cursor-week, cal-tex-cursor-week2)
      (cal-tex-cursor-week-iso, cal-tex-cursor-week-at-a-glance)
      (cal-tex-cursor-filofax-2week, cal-tex-cursor-filofax-week)
      (cal-tex-cursor-filofax-daily, cal-tex-cursor-day)
      (cal-tex-insert-preamble, cal-tex-b-document)
      (cal-tex-e-document, cal-tex-b-center, cal-tex-e-center):
      Improve cal-tex-cmd usage.
      1cebb5c0
    • Dmitry Antipov's avatar
      Setter macros for fontsets. · 6d470bdd
      Dmitry Antipov authored
      * fontset.c (SET_FONTSET_ID, SET_FONTSET_NAME, SET_FONTSET_ASCII)
      (SET_FONTSET_BASE, SET_FONTSET_FRAME, SET_FONTSET_NOFONT_FACE)
      (SET_FONTSET_DEFAULT, SET_FONTSET_FALLBACK): New macros.
      Adjust users.
      6d470bdd