1. 09 Jul, 2012 1 commit
  2. 08 Jul, 2012 1 commit
  3. 07 Jul, 2012 6 commits
    • Juanma Barranquero's avatar
      Fix ChangeLog typos. · 090bd7cb
      Juanma Barranquero authored
      090bd7cb
    • Andreas Schwab's avatar
    • Paul Eggert's avatar
      Improve static checking when configured --with-ns. · 6045c4fd
      Paul Eggert authored
      See Samuel Bronson's remarks in
      <http://lists.gnu.org/archive/html/emacs-devel/2012-07/msg00146.html>.
      * 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.
      6045c4fd
    • Glenn Morris's avatar
      * configure.in (BROKEN_SA_RESTART): Doc fix. · 41f9404e
      Glenn Morris authored
      * src/sysdep.c, src/s/irix6-5.h: Related comments.
      41f9404e
    • 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).
      4516fbef
    • 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.
      07adc2c6
  4. 06 Jul, 2012 5 commits
  5. 04 Jul, 2012 2 commits
    • Paul Eggert's avatar
      Merge from gnulib. · 013aabf1
      Paul Eggert authored
      * lib/alloca.in.h: New version from gnulib, incorporating:
      2012-07-03 alloca: add support for HP NonStop TNS/E native
      013aabf1
    • Dmitry Antipov's avatar
      Fix compilation with --enable-gcc-warnings and -O1 · 8ce70ed2
      Dmitry Antipov authored
      optimization level.
      * configure.in: If --enable-gcc-warnings, disable
      -Wunsafe-loop-optimizations for -O1 optimization level.
      * src/doprnt.c (doprnt): Change type of tem to int, initialize
      to avoid compiler warning.  Add eassert.
      * src/search.c (simple_search): Initialize match_byte to avoid
      compiler warning.  Add eassert.
      8ce70ed2
  6. 30 Jun, 2012 1 commit
    • Glenn Morris's avatar
      Make --no-site-lisp work for --enable-locallisppath elements · ca26824c
      Glenn Morris authored
      without "site-lisp" in the name.
      Ref http://debbugs.gnu.org/10208#25, point iii).
      
      * configure.in (standardlisppath): New output variable.
      (lisppath): Use standardlisppath.
      * Makefile.in (standardlisppath): New, set by configure.
      (epaths-force): Use standardlisppath and locallisppath rather than lisppath.
      
      * src/epaths.in (PATH_SITELOADSEARCH): New.
      * src/lread.c (init_lread): Use PATH_SITELOADSEARCH.
      
      * nt/paths.h (PATH_SITELOADSEARCH): New.
      
      Fixes: debbugs:11658
      ca26824c
  7. 28 Jun, 2012 5 commits
    • Dmitry Antipov's avatar
      * configure.in: Fix previous change. Remove --enable-asserts. · 94eb8e0a
      Dmitry Antipov authored
      (CPPFLAGS): Remove conditional -DXASSERTS=1.
      Add --enable-link-time-optimization.
      * INSTALL: Mention this.
      94eb8e0a
    • Dmitry Antipov's avatar
      * configure.in: Add glyphs category to --enable-checking option. · e509cfa6
      Dmitry Antipov authored
      (GLYPH_DEBUG): Define if glyphs debugging is enabled.
      * src/dispextern.h (GLYPH_DEBUG): Now defined in config.h if
      enabled with --enable-checking=[all,glyphs] configure option.
      Fix GLYPH_DEBUG usage assuming that it may be undefined,
      adjust comments accordingly.
      * src/dispnew.c: Fix GLYPH_DEBUG usage assuming that it may be
      undefined, adjust comments accordingly.
      * src/image.c: Likewise.
      * src/scroll.c: Likewise.
      * src/w32fns.c: Likewise.
      * src/w32term.c: Likewise.
      * src/xdisp.c: Likewise.
      * src/xfaces.c: Likewise.
      * src/xfns.c: Likewise.
      * src/xterm.c: Likewise.
      e509cfa6
    • Dmitry Antipov's avatar
      Generalize run-time debugging checks. · a54e2c05
      Dmitry Antipov authored
      * configure.in (ENABLE_CHECKING): Update comment.
      * src/dispextern.h (XASSERTS): Remove.
      * src/fontset.c (xassert): Remove.
      Convert from xassert to eassert.
      * src/alloc.c: Convert from xassert to eassert.
      * src/bidi.c: Likewise.
      * src/dispnew.c: Likewise.
      * src/fns.c: Likewise.
      * src/fringe.c: Likewise.
      * src/ftfont.c: Likewise.
      * src/gtkutil.c: Likewise.
      * src/image.c: Likewise.
      * src/keyboard.c: Likewise.
      * src/menu.c: Likewise.
      * src/process.c: Likewise.
      * src/scroll.c: Likewise.
      * src/sound.c: Likewise.
      * src/term.c: Likewise.
      * src/w32console.c: Likewise.
      * src/w32fns.c: Likewise.
      * src/w32term.c: Likewise.
      * src/window.c: Likewise.
      * src/xdisp.c: Likewise.
      * src/xfaces.c: Likewise.
      * src/xfns.c: Likewise.
      * src/xselect.c: Likewise.
      * src/xterm.c: Likewise.
      a54e2c05
    • Paul Eggert's avatar
      * configure.in: Don't check for sys/select.h, sys/time.h, utime.h. · 15458df4
      Paul Eggert authored
      Emacs proper no longer uses these headers, and can rely on Gnulib
      for these checks.
      15458df4
    • Paul Eggert's avatar
      Merge from gnulib. · 059e4fb5
      Paul Eggert authored
      * m4/getopt.m4: Copy new version from gnulib, incorporating:
      getopt-posix: No longer guarantee that option processing is resettable.
      059e4fb5
  8. 27 Jun, 2012 2 commits
  9. 26 Jun, 2012 2 commits
    • Eli Zaretskii's avatar
      Fix parallel bootstrap on MS-Windows in lib/ and lisp/. · cc06e7e7
      Eli Zaretskii authored
       lib/makefile.w32-in ($(GNULIBOBJS)): Depend on stamp_BLD.  This
       replaces separate dependency for each object file, which required
       the same object file to be mentioned twice, causing failures in
       parallel builds.
       lisp/makefile.w32-in (compile, compile-always): Depend on
       update-subdirs, not on subdirs.el.  Otherwise, several different
       sub-targets of 'bootstrap' running in parallel could
       simultaneously write to subdirs.el, producing a garbled file.
      cc06e7e7
    • Paul Eggert's avatar
      cf38a720
  10. 25 Jun, 2012 1 commit
    • Dmitry Antipov's avatar
      * configure.in (AC_CHECK_FUNCS): Detect library functions · 3511c784
      Dmitry Antipov authored
      strcasecmp and strncasecmp.
      * lib-src/etags.c (etags_strcasecmp, etags_strncasecmp): Define to
      library functions strcasecmp and strncasecmp if available.
      * lwlib/lwlib.c (my_strcasecmp): Rename to lwlib_strcasecmp, which
      may be defined to library function strcasecmp if available.
      * src/dispextern.c (xstrcasecmp): Define to library function
      strcasecmp if available.
      * src/xfaces.c: Do not use xstrcasecmp if strcasecmp is available.
      3511c784
  11. 24 Jun, 2012 2 commits
    • Paul Eggert's avatar
      Switch from NO_RETURN to C11's _Noreturn. · 845ca893
      Paul Eggert authored
      Fixes: debbugs:11750
      845ca893
    • Eli Zaretskii's avatar
      Improve port of struct timespec to MS-Windows. · 696056c2
      Eli Zaretskii authored
       lib/makefile.w32-in ($(BLD)/dtotimespec.$(O)):
       ($(BLD)/timespec-add.$(O)):
       ($(BLD)/timespec-sub.$(O)): Don't depend on
       $(EMACS_ROOT)/nt/inc/sys/time.h.
       lib/stat-time.h:
       lib/timespec.h:
       lib/utimens.h: Revert last change.
       src/makefile.w32-in (TIMESPEC_H): Remove nt/inc/sys/time.h.
       (SYSTIME_H): Add nt/inc/sys/time.h.
       src/systime.h [WINDOWSNT]: Include sys/time.h.
       src/s/ms-w32.h (struct timespec): Definition moved from
       nt/inc/sys/time.h.  Suggested by Paul Eggert <eggert@cs.ucla.edu>.
       nt/inc/sys/time.h (struct timespec): Don't define it here, it is
       now defined in src/s/ms-w32.h.
      
      Fixes: debbugs:9000
      696056c2
  12. 23 Jun, 2012 3 commits
    • Paul Eggert's avatar
      Merge from gnulib. · 47d0c011
      Paul Eggert authored
      * m4/getopt.m4: Copy new version from gnulib, incorporating:
      getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
      47d0c011
    • Eli Zaretskii's avatar
      Fix the MS-Windows build broken by 2012-06-22T21:17:42Z!eggert@cs.ucla.edu. · 388cdec0
      Eli Zaretskii authored
       nt/inc/sys/time.h (struct timespec): Define.
       lib/makefile.w32-in (GNULIBOBJS): Add $(BLD)/dtotimespec.$(O),
       $(BLD)/gettime.$(O), $(BLD)/timespec-add.$(O), and
       $(BLD)/timespec-sub.$(O).
       ($(BLD)/dtotimespec.$(O)):
       ($(BLD)/gettime.$(O)):
       ($(BLD)/timespec-add.$(O)):
       ($(BLD)/timespec-sub.$(O)): New dependencies.
       lib/stat-time.h:
       lib/timespec.h:
       lib/utimens.h: Include sys/time.h
       src/w32.c (fdutimens): New function.
       src/w32proc.c (sys_select): Adapt to change in the EMACS_TIME type.
       src/s/ms-w32.h (pselect): Redirect to sys_select.
       src/sysselect.h [WINDOWSNT]: Don't include sys/select.h.
      
      Fixes: debbugs:9000
      388cdec0
    • Andreas Schwab's avatar
      * configure.in: Don't use AC_CHECK_FUNCS_ONCE, which doesn't use · 54e8a418
      Andreas Schwab authored
      the correct CFLAGS and LIBS.
      54e8a418
  13. 22 Jun, 2012 2 commits
    • Paul Eggert's avatar
      Support higher-resolution time stamps. · d35af63c
      Paul Eggert authored
      Fixes: debbugs:9000
      d35af63c
    • Paul Eggert's avatar
      Merge from gnulib. · 05730648
      Paul Eggert authored
      * lib/filemode.h, lib/signal.in.h, lib/stat.c, lib/stdint.in.h:
      * lib/stdlib.in.h, lib/unistd.in.h, m4/extensions.m4, m4/getloadavg.m4:
      * m4/getopt.m4, m4/gnulib-common.m4, m4/largefile.m4, m4/mktime.m4:
      * m4/multiarch.m4, m4/nocrash.m4, m4/stdio_h.m4, m4/time_r.m4:
      Copy new versions from gnulib, incorporating the following changes:
      2012-06-22 time_r: fix typo that always overrode localtime_r decl
      2012-06-22 Write "Mac OS X" instead of "MacOS X".
      2012-06-21 mktime: fix integer overflow in 'configure'-time test
      2012-06-21 nonblocking: Avoid compilation error on mingw64.
      2012-06-19 stat, fstat: Avoid warnings on mingw64.
      2012-06-19 getopt-gnu: Fix exit code overflow in autoconf test.
      05730648
  14. 21 Jun, 2012 1 commit
  15. 17 Jun, 2012 2 commits
    • Glenn Morris's avatar
      ChangeLog fix · 8da9479c
      Glenn Morris authored
      8da9479c
    • Alp Aker's avatar
      Implement wave-style variant of underlining. · 9b0e3eba
      Alp Aker authored
        * doc/lispref/display.texi: Document new face attribute.
        * lisp/cus-face.el (custom-face-attributes): Add wave-style underline
        attribute.
        * lisp/faces.el (set-face-attribute): Update docstring.
        * src/dispextern.h (face_underline_type): New enum.
        (face): Add field for underline type.
        * src/nsterm.m (ns_draw_underwave): New function.
        (ns_draw_text_decoration): Use it.
        * src/w32term.c (w32_restore_glyph_string_clip, w32_draw_underwave):
        New functions.
        (x_draw_glyph_string): Use them.
        * src/xfaces.c (Qline, Qwave): New Lisp objects.
        (check_lface_attrs, merge_face_ref)
        (Finternal_set_lisp_face_attribute, realize_x_face): Handle
        wave-style underline face attributes.
        * src/xterm.c (x_draw_underwave): New function.
        (x_draw_glyph_string): Use it.
      9b0e3eba
  16. 13 Jun, 2012 1 commit
    • Andreas Schwab's avatar
      Use a simple struct to implement compile time checks for the Lisp_Object type · 646b5f55
      Andreas Schwab authored
      * configure.in: Rename --enable-use-lisp-union-type to
      --enable-check-lisp-object-type and define CHECK_LISP_OBJECT_TYPE
      instead of USE_LISP_UNION_TYPE.
      
      * admin/make-emacs: Rename --union-type to --check-lisp-type.  Define
      CHECK_LISP_OBJECT_TYPE insted of USE_LISP_UNION_TYPE.
      * admin/CPP-DEFINES (DEBUG_LISP_OBJECT_TYPE): Renamed from
      USE_LISP_UNION_TYPE.
      
      * src/lisp.h (Lisp_Object) [CHECK_LISP_OBJECT_TYPE]: Define as struct
      instead of union.
      (XLI, XIL): Define.
      (XHASH, XTYPE, XINT, XUINT, make_number, XSET, XPNTR, XUNTAG): Use
      them.
      * src/emacs.c (gdb_use_struct): Renamed from gdb_use_union.
      * src/.gdbinit: Check gdb_use_struct instead of gdb_use_union.
      * src/alloc.c (widen_to_Lisp_Object): Removed.
      (mark_memory): Use XIL instead of widen_to_Lisp_Object.
      * src/frame.c (delete_frame): Remove outdated comment.
      * src/w32fns.c (Fw32_register_hot_key): Use XLI instead of checking
      USE_LISP_UNION_TYPE.
      (Fw32_unregister_hot_key): Likewise.
      (Fw32_toggle_lock_key): Likewise.
      * src/w32menu.c (add_menu_item): Likewise.
      (w32_menu_display_help): Use XIL instead of checking
      USE_LISP_UNION_TYPE.
      * src/w32heap.c (allocate_heap): Don't check USE_LISP_UNION_TYPE.
      (init_heap): Likewise.
      * src/w32term.c (w32_read_socket): Update comment.
      646b5f55
  17. 12 Jun, 2012 3 commits
    • Glenn Morris's avatar
      Remove src/s/sol2-10.h · b4492cba
      Glenn Morris authored
      * configure.in (HAVE_PROCFS, _STRUCTURED_PROC): New AC_DEFINEs.
      (opsysfile): Set specially for sol2-10.
      
      * src/s/gnu-linux.h (HAVE_PROCFS): Move to configure.
      
      * src/s/sol2-10.h: Remove file.
      b4492cba
    • Glenn Morris's avatar
      Remove src/s/hpux11.h · 8a07a8c6
      Glenn Morris authored
      * configure.in (BROKEN_SA_RESTART, USG_SUBTTY_WORKS): New AC_DEFINEs.
      (opsysfile): Set specially for hpux11.
      
      * src/s/hpux11.h: Remove file.
      8a07a8c6
    • Glenn Morris's avatar
      Remove a couple of src/s files · 0d369729
      Glenn Morris authored
      * configure.in (opsysfile): Set specially for gnu-kfreebsd, openbsd.
      
      * src/s/gnu-kfreebsd.h, src/s/openbsd.h: Remove files.
      0d369729