1. 10 Jul, 2012 13 commits
    • Paul Eggert's avatar
    • Paul Eggert's avatar
    • Glenn Morris's avatar
    • Dmitry Antipov's avatar
      Use XCAR and XCDR instead of Fcar and Fcdr where possible. · 7d7bbefd
      Dmitry Antipov authored
      * admin/coccinelle/list_loop.cocci: Semantic patch to convert from Fcdr
      to XCDR and consistently use CONSP in the list iteration loops.
      * admin/coccinelle/vector_contents.cocci: Fix indentation.
      * src/callint.c, src/coding.c, src/doc.c, src/editfns.c, src/eval.c,
      * src/font.c, src/fontset.c, src/frame.c, src/gnutls.c, src/minibuf.c,
      * src/msdos.c, src/textprop.c, src/w32fns.c, src/w32menu.c, src/window.c,
      * src/xmenu.c: Changed to use XCAR and XCDR where argument type is known
      to be a Lisp_Cons.
    • Tom Tromey's avatar
      Implement token threading · 3a4c8000
      Tom Tromey authored
      	* bytecode.c (BYTE_CODE_THREADED): New macro.
      	(BYTE_CODES): New macro.  Replaces all old byte-code defines.
      	(enum byte_code_op): New type.
      	(exec_byte_code): Use them.  Use token threading when applicable.
    • Dmitry Antipov's avatar
      Optimize pure C strings initialization. · 2a0213a6
      Dmitry Antipov authored
      * lisp.h (make_pure_string): Fix prototype.
      (build_pure_c_string): New function, defined as static inline.  This
      provides a better opportunity to optimize away calls to strlen when
      the function is called with compile-time constant argument.
      * alloc.c (make_pure_c_string): Fix comment.  Change to add nchars
      argument, adjust users accordingly.  Use build_pure_c_string where
      * buffer.c, coding.c, data.c, dbusbind.c, fileio.c, fontset.c, frame.c,
      * keyboard.c, keymap.c, lread.c, search.c, syntax.c, w32fns.c, xdisp.c,
      * xfaces.c, xfns.c, xterm.c: Use build_pure_c_string where appropriate.
    • Dmitry Antipov's avatar
      Avoid calls to strlen in miscellaneous functions. · cb1caeaf
      Dmitry Antipov authored
      * buffer.c (init_buffer): Use precalculated len, adjust if needed.
      * font.c (Ffont_xlfd_name): Likewise.  Change to call make_string.
      * lread.c (openp): Likewise.
    • Glenn Morris's avatar
      Move PENDING_OUTPUT_COUNT from src/s to configure · d02eb359
      Glenn Morris authored
      * configure.ac (PENDING_OUTPUT_COUNT): Move here from src/s.
      * src/s/cygwin.h, src/s/darwin.h, src/s/freebsd.h, src/s/netbsd.h:
      * src/s/unixware.h: Move PENDING_OUTPUT_COUNT definition to configure.
    • Glenn Morris's avatar
      Move DATA_START, DATA_SEG_BITS from src/s to configure · 882cf227
      Glenn Morris authored
      * configure.ac (DATA_START, DATA_SEG_BITS): Move here from src/s.
      * src/s/irix6-5.h (DATA_START, DATA_SEG_BITS):
      * src/s/hpux10-20.h (DATA_SEG_BITS, DATA_START):
      * src/s/gnu.h (DATA_START): Move definitions to configure.
    • Dmitry Antipov's avatar
      Avoid calls to strlen in path processing functions. · c293e30c
      Dmitry Antipov authored
      * fileio.c (file_name_as_directory): Add comment.  Change to add
      srclen argument and return the length of result.  Adjust users
      (directory_file_name): Fix comment.  Change to add srclen argument,
      swap 1nd and 2st arguments to obey the common convention.  Adjust
      users accordingly.
      * filelock.c (fill_in_lock_file_name): Avoid calls to strlen.
    • Glenn Morris's avatar
      * src/s/irix6-5.h (SETUP_SLAVE_PTY, PTY_NAME_SPRINTF): Drop ifdef guards. · af6e839f
      Glenn Morris authored
      We include usg5-4-common.h, which defines them both.
    • Glenn Morris's avatar
      * src/s/gnu.h: Don't include fcntl.h · 40289a12
      Glenn Morris authored
      (every file in Emacs that uses O_RDONLY already includes it; and this
      does not seem like the problem a src/s file should be trying to solve).
    • Glenn Morris's avatar
      Stop ns builds setting the EMACSLOADPATH environment variable · 9e059e3f
      Glenn Morris authored
      Ref bugs 4309, 6401, etc.
      This is the last environment variable (ab)used by the ns port in this way.
      * src/nsterm.m (ns_load_path): Rename from ns_init_paths.
      Now it does not set EMACSLOADPATH, just returns the load-path string.
      * src/nsterm.h: Update accordingly.
      * src/lread.c [HAVE_NS]: Include nsterm.h.
      (init_lread) [HAVE_NS]: Use ns_load_path.
      * src/emacs.c (main) [HAVE_NS]: No longer call ns_init_paths.
  2. 09 Jul, 2012 9 commits
  3. 08 Jul, 2012 3 commits
  4. 07 Jul, 2012 13 commits
    • Juanma Barranquero's avatar
      Fix ChangeLog typos. · 090bd7cb
      Juanma Barranquero authored
    • Andreas Schwab's avatar
    • Andreas Schwab's avatar
    • Andreas Schwab's avatar
      * lisp.h: Remove empty conditional. · b676b881
      Andreas Schwab authored
    • Paul Eggert's avatar
      * lread.c (load_path_check): Now static. · b3350bf9
      Paul Eggert authored
    • Paul Eggert's avatar
      Improve static checking when configured --with-ns. · 6045c4fd
      Paul Eggert authored
      See Samuel Bronson's remarks in
      * configure.in (WARN_CFLAGS): Omit -Wunreachable-code, as it's
      a no-op with recent GCC and harmful in earlier ones.
      Omit -Wsync-nand, as it's irrelevant to Emacs and provokes a
      warning when compiling with ObjC.  Always omit
      -Wunsafe-loop-optimizations, as we don't mind when optimization is
      being done correctly.
      Fix some minor --with-ns problems found by static checking.
      * src/frame.c (Ftool_bar_pixel_width) [!FRAME_TOOLBAR_WIDTH]:
      (x_set_font) [!HAVE_X_WINDOWS]:
      * src/image.c (xpm_load_image) [HAVE_NS]:
      (x_to_xcolors) [!HAVE_X_WINDOWS && !HAVE_NTGUI]:
      (x_disable_image) [!HAVE_NS && !HAVE_NTGUI]:
      Remove unused local.
      (Fx_parse_geometry) [HAVE_NS]: Don't return garbage.
      (xpm_load_image) [HAVE_NS && !HAVE_XPM]: Remove unused label.
      * src/image.c (x_create_bitmap_from_file) [HAVE_NS]:
      (xpm_load_image, xpm_load) [HAVE_NS && !HAVE_XPM]:
      * src/nsselect.m (symbol_to_nsstring, ns_string_to_pasteboard_internal):
      * src/xfaces.c (Fx_load_color_file) [!HAVE_X_WINDOWS]:
      Fix pointer signedness problem.
      * src/xfaces.c (FRAME_X_FONT_TABLE):
      * src/xterm.h (FRAME_X_FONT_TABLE): Remove unused, incompatible macros.
    • Glenn Morris's avatar
      Try to simplify the initialization of Vload_path · 929e7845
      Glenn Morris authored
      * src/lread.c (load_path_check): New function, split from init_lread.
      (init_lread): Reorganize.  Motivation:
      If EMACSLOADPATH is set, check/warn about that rather than the
      defaults, which we are not going to use.  Hence we can remove
      the turn_off_warning and WINDOWSNT || HAVE_NS tests.
      Don't warn if site-lisp directories are missing.
      If not installed, start from a blank load-path, since
      PATH_LOADSEARCH refers to the eventual installation directories.
    • Eli Zaretskii's avatar
      Fix bug #11832 with truncated lines when fringes are disabled on GUI frames. · 58dd0aa4
      Eli Zaretskii authored
       src/xdisp.c (init_iterator): Get dimensions of truncation and
       continuation glyphs even if on GUI frames.  Adjust
       it->last_visible_x on GUI frames when the left or right fringes,
       or both, are absent.
       (start_display, move_it_in_display_line_to): Handle the case of a
       GUI frame without a fringe to display continuation or truncation
       (insert_left_trunc_glyphs): Support GUI frames: make sure
       truncation glyphs overwrite enough glyphs from the current line to
       have sufficient space in pixels.
       (display_line): Support truncation and continuation glyphs on GUI
       frames.  If some spare pixels are left on the line after inserting
       the truncation glyphs, fill that space with a stretch glyph of a
       suitably computed width.
       src/term.c (produce_special_glyphs): Call PRODUCE_GLYPHS, not
       produce_glyphs, to support GUI sessions.
    • Paul Eggert's avatar
      * sysdep.c (ULLONG_MAX): Define if not already defined. · 5a16b9bc
      Paul Eggert authored
      Fixes: debbugs:11781
    • Paul Eggert's avatar
      * sysdep.c (list_system_processes): Port to NetBSD-current. · f3047c75
      Paul Eggert authored
      Fixes: debbugs:11797
    • Paul Eggert's avatar
      Do not require float-time's arg to fit in time_t (Bug#11825). · 31571fd7
      Paul Eggert authored
      This works better on hosts where time_t is unsigned, and where
      float-time is applied to the (negative) difference between two times.
      * editfns.c (decode_time_components): Last arg is now double *,
      not int *, and means to store all the result as a double, without
      worrying about whether the seconds part fits in time_t.
      All callers changed.
      (lisp_time_argument): Remove last int * arg, as it's no longer needed.
      All callers changed.
      (Ffloat_time): Do not fail merely because the specified time falls
      outside of time_t range.
    • Glenn Morris's avatar
      Replace some src/s undefs by never even checking on relevant platforms · 4516fbef
      Glenn Morris authored
      * configure.in: (getwd): Don't check for it on unixware.
      (random, rint): Don't check for these on hpux.
      (res_init, libresolv): Don't check for these on darwin.
      * src/s/darwin.h (HAVE_RES_INIT, HAVE_LIBRESOLV):
      * src/s/hpux10-20.h (HAVE_RINT, HAVE_RANDOM):
      * src/s/unixware.h (HAVE_GETWD): Move undefs to configure (effectively).
    • Juanma Barranquero's avatar
      Update Windows port to gnulib changes in 2012-07-06T21:07:46Z!eggert@cs.ucla.edu. · 07adc2c6
      Juanma Barranquero authored
      * lib-src/makefile.w32-in ($(BLD)/ctags.$(O), $(BLD)/etags.$(O)):
      Update dependencies.
      * lib/makefile.w32-in (GNULIBOBJS): Add $(BLD)/c-ctype.$(O),
      $(BLD)/c-strcasecmp.$(O) and $(BLD)/c-strncasecmp.$(O).
      ($(BLD)/c-ctype.$(O), $(BLD)/c-strcasecmp.$(O))
      ($(BLD)/c-strncasecmp.$(O)): New dependencies.
      * src/makefile.w32-in (DISPEXTERN_H, $(BLD)/regex.$(O)):
      Update dependencies.
      * src/s/ms-w32.h [_MSC_VER]: Remove strcasecmp, strncasecmp.
  5. 06 Jul, 2012 2 commits