1. 26 Jun, 2012 9 commits
    • Sam Steingold's avatar
      * lisp/files.el (file-name-base): New convenience function. · d2c32364
      Sam Steingold authored
      * lisp/autoinsert.el, lisp/cus-dep.el, lisp/doc-view.el, lisp/image-dired.el,
      * lisp/woman.el, lisp/eshell/esh-cmd.el, lisp/progmodes/ada-xref.el,
      * lisp/progmodes/cc-defs.el, lisp/progmodes/cperl-mode.el,
      * lisp/progmodes/flymake.el, lisp/progmodes/gud.el, lisp/progmodes/idlwave.el,
      * lisp/textmodes/ispell.el, lisp/textmodes/reftex-ref.el,
      * lisp/textmodes/tex-mode.el: Use it.
      Did not touch cedet and org because they are maintained elsewhere.
      d2c32364
    • Dmitry Antipov's avatar
      * alloc.c (allocate_window): Zero out non-Lisp part of newly · 62efea5e
      Dmitry Antipov authored
      allocated window.
      (allocate_process): Likewise for new process.
      (allocate_terminal): Changed to use offsetof.
      (allocate_frame): Likewise.
      * frame.c (make_frame): Omit redundant initialization.
      * window.c (make_parent_window): Use memset.
      (make_window): Omit redundant initialization.
      * process.c (make_process): Omit redundant initialization.
      * terminal.c (create_terminal): Likewise.
      62efea5e
    • Glenn Morris's avatar
      Auto-commit of generated files. · 995a5515
      Glenn Morris authored
      995a5515
    • Martin Rudalics's avatar
      In calendar-exit don't try to delete or iconify last frame. · 5cf983b2
      Martin Rudalics authored
      * calendar/calendar.el (calendar-exit): Don't try to delete or
      iconify last frame.  See:
      http://lists.gnu.org/archive/html/emacs-devel/2012-06/msg00372.html
      5cf983b2
    • Dmitry Antipov's avatar
      42997f4d
    • Dmitry Antipov's avatar
      * src/alloc.c: Remove build_string. · 1130ecfc
      Dmitry Antipov authored
      * src/lisp.h: Define build_string as static inline.  This provides
      a better opportunity to optimize away calls to strlen when the
      function is called with compile-time constant argument.
      * src/image.c (imagemagick_error): Convert to build_string.
      * src/w32proc.c (sys_spawnve): Likewise.
      * src/xterm.c (x_term_init): Likewise.
      * admin/coccinelle/build_string.cocci: Semantic patch
      to convert from make_string to build_string.
      1130ecfc
    • Paul Eggert's avatar
      Use sprintf return value instead of invoking strlen on result. · 99027bdd
      Paul Eggert authored
      In the old days this wasn't portable, since some sprintf
      implementations returned char *.  But they died out years ago and
      Emacs already assumes sprintf returns int.
      Similarly for float_to_string.
      This patch speeds up (number-to-string 1000) by 3% on Fedora 15 x86-64.
      * ccl.c (ccl_driver):
      * character.c (string_escape_byte8):
      * data.c (Fnumber_to_string):
      * doprnt.c (doprnt):
      * print.c (print_object):
      * xdisp.c (message_dolog):
      * xfns.c (syms_of_xfns):
      Use sprintf or float_to_string result to avoid need to call strlen.
      * data.c (Fnumber_to_string):
      Use make_unibyte_string, since the string must be ASCII.
      * lisp.h, print.c (float_to_string): Now returns int length.
      * term.c (produce_glyphless_glyph):
      Use sprintf result rather than recomputing it.
      99027bdd
    • Paul Eggert's avatar
      cf38a720
    • Paul Eggert's avatar
      * Makefile.in (ALL_CFLAGS): Add -I../lib -I${srcdir}/../lib. · 414e642c
      Paul Eggert authored
      This is needed for hosts that lack <alloca.h>, when Emacs is
      configured --with-x-toolkit=no.  Problem reported by Herbert
      J. Skuhra for FreeBSD.
      414e642c
  2. 25 Jun, 2012 10 commits
  3. 24 Jun, 2012 15 commits
  4. 23 Jun, 2012 6 commits