1. 14 Jun, 2011 8 commits
    • Paul Eggert's avatar
    • Paul Eggert's avatar
      Merge from trunk. · e8f2a944
      Paul Eggert authored
      e8f2a944
    • Paul Eggert's avatar
      Variadic C functions now count arguments with ptrdiff_t. · f66c7cf8
      Paul Eggert authored
      This partly undoes my 2011-03-30 change, which replaced int with size_t.
      Back then I didn't know that the Emacs coding style prefers signed int.
      Also, in the meantime I found a few more instances where arguments
      were being counted with int, which may truncate counts on 64-bit
      machines, or EMACS_INT, which may be unnecessarily wide.
      * lisp.h (struct Lisp_Subr.function.aMANY)
      (DEFUN_ARGS_MANY, internal_condition_case_n, safe_call):
      Arg counts are now ptrdiff_t, not size_t.
      All variadic functions and their callers changed accordingly.
      (struct gcpro.nvars): Now size_t, not size_t.  All uses changed.
      * bytecode.c (exec_byte_code): Check maxdepth for overflow,
      to avoid potential buffer overrun.  Don't assume arg counts fit in 'int'.
      * callint.c (Fcall_interactively): Check arg count for overflow,
      to avoid potential buffer overrun.  Use signed char, not 'int',
      for 'varies' array, so that we needn't bother to check its size
      calculation for overflow.
      * editfns.c (Fformat): Use ptrdiff_t, not EMACS_INT, to count args.
      * eval.c (apply_lambda):
      * fns.c (Fmapconcat): Use XFASTINT, not XINT, to get args length.
      (struct textprop_rec.argnum): Now ptrdiff_t, not int.  All uses changed.
      (mapconcat): Use ptrdiff_t, not int and EMACS_INT, to count args.
      f66c7cf8
    • Paul Eggert's avatar
    • Chong Yidong's avatar
      Print theme summaries in *Custom Themes* buffer. · c5dd5a51
      Chong Yidong authored
      * lisp/cus-theme.el (describe-theme-1): Use custom-theme-p.
      (custom-theme-summary): New function.
      (customize-themes): Use it.
      
      * etc/themes/light-blue-theme.el:
      * etc/themes/misterioso-theme.el:
      * etc/themes/tango-dark-theme.el:
      * etc/themes/tango-theme.el:
      * etc/themes/tsdh-dark-theme.el:
      * etc/themes/tsdh-light-theme.el:
      * etc/themes/wheatgrass-theme.el:
      * etc/themes/wombat-theme.el: Tweak summaries for better listability.
      c5dd5a51
    • Chong Yidong's avatar
      b9958282
    • Paul Eggert's avatar
      * vm-limit.c (check_memory_limits): Fix incorrect extern function decls. · d96be9fc
      Paul Eggert authored
      * mem-limits.h (SIZE): Remove; no longer used.
      d96be9fc
    • Paul Eggert's avatar
      Merge from trunk. · 3c3a05df
      Paul Eggert authored
      3c3a05df
  2. 13 Jun, 2011 28 commits
  3. 12 Jun, 2011 4 commits