1. 25 Mar, 2013 1 commit
  2. 24 Mar, 2013 1 commit
  3. 18 Mar, 2013 3 commits
    • Paul Eggert's avatar
      Fix bug when building Emacs with a GNU Make submake. · 4c9a1377
      Paul Eggert authored
      * Makefile.in (QUIET_SUBMAKE): New macro.
      (install-info, uninstall): Use it.
      
      Fixes: debbugs:13962
      4c9a1377
    • Paul Eggert's avatar
      Emacs crashes with ImageMagick 6.8.2-3 through 6.8.3-9. · 19151a7f
      Paul Eggert authored
      * configure.ac (IMAGEMAGICK_MODULE): Reject 6.8.2.
      We want to reject 6.8.2-3 through 6.8.3-9, but there seems to be
      no way to do this in pkg-config, so make do with a reasonable
      approximation.
      * etc/PROBLEMS: Mention problem with ImageMagick 6.8.2-3 through 6.8.3-9.
      
      Fixes: debbugs:13867
      19151a7f
    • Paul Eggert's avatar
      Automate the build of ja-dic.el. · 982efbcd
      Paul Eggert authored
      ja-dic.el no longer needs to be in the repository: it's now
      generated as part of the build from bzr.  Also, update SKK-JISYO.L to
      match the upstream source exactly.
      * .bzrignore: Add leim/ja-dic/.
      * leim/ja-dic/ja-dic.el: Remove from repository.  It is still distributed
      as part of the Emacs tarball.
      * leim/Makefile.in ($(srcdir)/ja-dic/ja-dic.el): New rule.
      (compile-main): Depend on it.
      * leim/SKK-DIC/README: Update to reflect new build procedure.
      * leim/SKK-DIC/SKK-JISYO.L: Update to match source exactly.
      This is now the annotated version, to match the upstream file name;
      the unannotated one is built from it automatically.
      * lisp/international/ja-dic-cnv.el (skkdic-convert): Remove the annotations
      from the input, rather than assume that it's been done for us by the
      SKK script unannotate.awk.  Switch ja-dic.el to UTF-8.  Don't put
      the current date into a ja-dic.el comment, as that complicates
      regression testing.
      
      Fixes: debbugs:13984
      982efbcd
  4. 13 Mar, 2013 3 commits
    • Paul Eggert's avatar
      File synchronization fixes. · 47d7532e
      Paul Eggert authored
      * admin/CPP-DEFINES (BSD_SYSTEM, HAVE_FSYNC): Remove.
      * admin/merge-gnulib (GNULIB_MODULES): Add fsync, fdatasync.
      * configure.ac (BSD_SYSTEM, BSD_SYSTEM_AHB): Remove; no longer needed.
      (fsync): Remove check; now done by gnulib.
      * lib/fdatasync.c, lib/fsync.c, m4/fdatasync.m4, m4/fsync.m4:
      New files, from gnulib.
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      * lib-src/Makefile.in (LIB_FDATASYNC): New macro.
      (emacsclient${EXEEXT}): Use it.
      * lib-src/emacsclient.c (main): Use fdatasync, not fsync, since we don't
      care about metadata.  Keep trying if interrupted.
      * lib-src/movemail.c (main, popmail): Don't worry about BSD_SYSTEM, since
      fsync is available everywhere (or there is a substitute).  Don't
      report an error if fsync returns EINVAL.
      * nt/inc/ms-w32.h (fdatasync): New macro, suggested by Eli Zaretskii.
      * src/Makefile.in (LIB_FDATASYNC): New macro.
      (LIBES): Use it.
      * src/conf_post.h (BSD_SYSTEM, BSD_SYSTEM_AHB): Remove; no longer needed.
      * src/fileio.c (Fwrite_region, write_region_inhibit_fsync):
      Don't worry about HAVE_FSYNC, since a substitute fsync is
      available if the system lacks one.
      (Fwrite_regin): Retry fsync if interrupted.
      
      Fixes: debbugs:13944
      47d7532e
    • Paul Eggert's avatar
      2c3f72f4
    • Paul Eggert's avatar
      Merge from gnulib. · 5615c9a9
      Paul Eggert authored
      This incorporates:
      2013-03-12 mktime: fix configure typo
      2013-03-11 regex: port to mingw's recent addition of undeclared alarm
      2013-03-11 putenv: avoid compilation warning on mingw
      2013-03-11 unistd: don't prevent Tru64 Unix from using gnulib strtod.
      5615c9a9
  5. 11 Mar, 2013 1 commit
  6. 05 Mar, 2013 2 commits
  7. 03 Mar, 2013 1 commit
  8. 01 Mar, 2013 1 commit
    • Paul Eggert's avatar
      Merge from gnulib. · 89bd9d36
      Paul Eggert authored
      2013-02-21 putenv: port better to native Windows
      2013-02-18 extern-inline: avoid compilation error with HP-UX cc
      2013-02-14 putenv: fix heap corruption with mixed putenv/_putenv
      89bd9d36
  9. 28 Feb, 2013 1 commit
  10. 25 Feb, 2013 1 commit
    • Paul Eggert's avatar
      Simplify data_start configuration. · 1ddc2bd6
      Paul Eggert authored
      This is a followon simplification to the fix for Bug#13650.
      * admin/CPP-DEFINES (DATA_START, ORDINARY_LINK): Remove.
      * configure.ac (CRT_DIR, LIB_STANDARD, START_FILES, DATA_START)
      (LD_FIRSTFLAG, ORDINARY_LINK, LIB_GCC): Remove.
      (AC_CHECK_HEADERS_ONCE): Remove sys/resource.h, as it's
      not always needed.
      (HAVE_DATA_START): New macro.
      * etc/PROBLEMS (LIBS_SYSTEM, LIBS_MACHINE, LIBS_STANDARD): Remove.
      Remove legacy-systems section, as this stuff is no longer
      applicable with current linking strategies.
      * src/Makefile.in (LD_FIRSTFLAG, LIB_GCC, CRT_DIR, LIB_STANDARD)
      (START_FILES): Remove.  All uses removed.
      (otherobj): Remove $(VMLIMIT_OBJ), as it's now first.
      (ALLOBJS): Move here from autodeps.mk, and with VMLIMITS_OBJ first.
      (buildobj.h): Use it.
      ($(ALLOBJS)): Depend on globals.h.
      (temacs$(EXEEXT)): Use $(ALLOBJS).
      * src/autodeps.mk (ALLOBJS): Move to Makefile.in.
      * src/deps.mk (vm-limit.o):
      * src/makefile.w32-in ($(BLD)/vm-limit.$(O)):
      Do not depend on mem-limits.h.
      * src/emacs.c (__do_global_ctors, __do_global_ctors_aux)
      (__do_global_dtors, __CTOR_LIST__, __DTOR_LIST__)
      [__GNUC__ && !ORDINARY_LINK]: Remove.
      * src/mem-limits.h, src/pre-crt0.c: Remove.
      * src/unexaix.c, src/unexcoff.c: Don't include mem-limits.h.
      * src/unexcoff.c (etext): New decl.
      (make_hdr): Use it instead of start_of_data.
      * src/vm-limit.c: Move most of mem-limits.h's contents here.
      (data_start): New decl.  It's OK if this is approximate,
      so simplify-away some unnecessary exactness.
      (POINTER): Remove; all uses removed.
      (data_space_start): Now char *, to avoid casts.
      (exceeds_lisp_ptr): New function, replacing the old
      EXCEEDS_LISP_PTR macro.  All uses changed.
      (check_memory_limits): Simplify and remove casts.
      (start_of_data) [!CANNOT_DUMP || !SYSTEM_MALLOC]: Remove.
      (memory_warnings): Use data_start instead of start_of_data.
      
      Fixes: debbugs:13783
      1ddc2bd6
  11. 24 Feb, 2013 1 commit
  12. 21 Feb, 2013 1 commit
    • Paul Eggert's avatar
      Parallelize documentation builds. · b59a2e9e
      Paul Eggert authored
      This speeds up building of documentation on multiprocessor
      platforms, and is motivated by Texinfo 5.0, which is much slower.
      Add a toplevel rule 'make docs' to make all the documentation.
      * .bzrignore: Add .dvi, .html, .ps.
      * Makefile.in (DVIS, HTMLS, INFOS, PSS, DOCS): New macros.
      ($(DOCS), docs, vi, html, pdf, ps): New rules.
      (info-real): Depend on $(INFOS) rather than doing it sequentially.
      (dvi): Depend on $(DVIS) rather than doing it sequentially.
      * doc/misc/Makefile.in (html): New rule.
      b59a2e9e
  13. 18 Feb, 2013 1 commit
  14. 14 Feb, 2013 1 commit
    • Paul Eggert's avatar
      Fix AIX port. · 35b3a27e
      Paul Eggert authored
      * configure.ac (DATA_START, DATA_SEG_BITS): Set to 0x20000000 on AIX.
      (GC_MARK_STACK): Do not set to GC_USE_GCPROS_AS_BEFORE, as that
      runs afoul of some other bug in Emacs, and the default value
      GC_MAKE_GCPROS_NOOPS has been tested and works.
      * src/lisp.h (XPNTR) [!USE_LSB_TAG && DATA_SEG_BITS]:
      Fix bug introduced in 2012-07-27 change.  DATA_SEG_BITS, if set,
      was #undeffed earlier, so it cannot be used as a macro here.
      Use the constant and not the macro.  Tested on AIX.
      * src/unexaix.c: Revert 2013-02-11 and 2013-02-12 changes to this
      file.  They're almost surely OK but we're just before a release so
      we should avoid changes unless they're clearly needed.  Instead,
      make the following minor change:
      (ADDR_CORRECT): New macro.
      
      Fixes: debbugs:13650
      35b3a27e
  15. 12 Feb, 2013 1 commit
  16. 11 Feb, 2013 3 commits
    • Paul Eggert's avatar
      Tune by using memchr and memrchr. · a84b7c53
      Paul Eggert authored
      * .bzrignore: Add string.h.
      * admin/merge-gnulib (GNULIB_MODULES): Add memrchr.
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      * lib/memrchr.c, lib/string.in.h, m4/memrchr.m4, m4/string_h.m4:
      New files, from gnulib.
      * src/doc.c (Fsnarf_documentation):
      * src/fileio.c (Fsubstitute_in_file_name):
      * src/search.c (find_newline, scan_newline):
      * src/xdisp.c (pos_visible_p, display_count_lines):
      Use memchr and memrchr rather than scanning byte-by-byte.
      * src/search.c (find_newline): Rename from scan_buffer.
      Omit first arg TARGET, as it's always '\n'.  All callers changed.
      a84b7c53
    • Paul Eggert's avatar
      Merge from gnulib. · 71d4202f
      Paul Eggert authored
      71d4202f
    • Glenn Morris's avatar
      ChangeLog for previous · 55fe8e64
      Glenn Morris authored
      55fe8e64
  17. 10 Feb, 2013 1 commit
  18. 08 Feb, 2013 1 commit
  19. 01 Feb, 2013 2 commits
    • Paul Eggert's avatar
      Use fdopendir, fstatat and readlinkat, for efficiency. · 8654f9d7
      Paul Eggert authored
      On my host, this speeds up directory-files-and-attributes by a
      factor of 3, when applied to Emacs's src directory.
      These functions are standardized by POSIX and are common these
      days; fall back on a (slower) gnulib implementation if the host
      is too old to supply them.
      * .bzrignore: Add lib/dirent.h.
      * lib/Makefile.am (libgnu_a_SOURCES): Add openat-die.c, save-cwd.c.
      * lib/careadlinkat.c, lib/careadlinkat.h: Merge from gnulib,
      incorporating: 2013-01-29 careadlinkat: do not provide careadlinkatcwd.
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      * lib/dirent.in.h, lib/fdopendir.c, lib/fstatat.c, lib/openat-priv.h:
      * lib/openat-proc.c, lib/openat.h, m4/dirent_h.m4, m4/fdopendir.m4:
      * m4/fstatat.m4: New files, from gnulib.
      * lib/openat-die.c, lib/save-cwd.c, lib/save-cwd.h: New files.
      These last three are specific to Emacs and are not copied from gnulib.
      They are simpler than the gnulib versions and are tuned for Emacs.
      * admin/merge-gnulib (GNULIB_MODULES): Add fdopendir, fstatat, readlinkat.
      (GNULIB_TOOL_FLAGS): Do not avoid at-internal, openat-h.
      Avoid dup, open, opendir.
      * nt/inc/sys/stat.h (fstatat):
      * nt/inc/unistd.h (readlinkat): New decls.
      * src/conf_post.h (GNULIB_SUPPORT_ONLY_AT_FDCWD): Remove.
      * src/dired.c: Include <fcntl.h>.
      (open_directory): New function, which uses open and fdopendir
      rather than opendir.  DOS_NT platforms still use opendir, though.
      (directory_files_internal, file_name_completion): Use it.
      (file_attributes): New function, with most of the old Ffile_attributes.
      (directory_files_internal, Ffile_attributes): Use it.
      (file_attributes, file_name_completion_stat): First arg is now fd,
      not dir name.  All uses changed.  Use fstatat rather than lstat +
      stat.
      (file_attributes): Use emacs_readlinkat rather than Ffile_symlink_p.
      * src/fileio.c: Include <allocator.h>, <careadlinkat.h>.
      (emacs_readlinkat): New function, with much of the old
      Ffile_symlink_p, but with an fd argument for speed.
      It uses readlinkat rather than careadlinkatcwd, so that it
      need not assume the working directory.
      (Ffile_symlink_p): Use it.
      * src/filelock.c (current_lock_owner): Use emacs_readlinkat
      rather than emacs_readlink.
      * src/lisp.h (emacs_readlinkat): New decl.
      (READLINK_BUFSIZE, emacs_readlink): Remove.
      * src/sysdep.c: Do not include <allocator.h>, <careadlinkat.h>.
      (emacs_norealloc_allocator, emacs_readlink): Remove.
      This stuff is moved to fileio.c.
      * src/w32.c (fstatat, readlinkat): New functions.
      (careadlinkat): Don't check that fd == AT_FDCWD.
      (careadlinkatcwd): Remove; no longer needed.
      
      Fixes: debbugs:13539
      8654f9d7
    • Glenn Morris's avatar
      Move lisp/calc/README* to etc/CALC-NEWS · 0eb61895
      Glenn Morris authored
      * make-dist: Only README files exist in lisp/ now, not README*.
      
      * doc/misc/calc.texi (Help Commands): Mention etc/CALC-NEWS.
      
      * etc/CALC-NEWS: Move here from lisp/calc/README, README.prev.
      
      * lisp/calc/README, lisp/calc/README.prev: Rename/merge to etc/CALC-NEWS.
      0eb61895
  20. 23 Jan, 2013 2 commits
  21. 16 Jan, 2013 3 commits
  22. 12 Jan, 2013 1 commit
  23. 11 Jan, 2013 2 commits
  24. 10 Jan, 2013 2 commits
  25. 04 Jan, 2013 2 commits
    • Glenn Morris's avatar
      Add htmlfontify manual to build process · 92d59611
      Glenn Morris authored
      * doc/misc/Makefile.in (INFO_TARGETS, DVI_TARGETS, PDF_TARGETS):
      Add htmlfontify.
      (htmlfontify, $(buildinfodir)/htmlfontify$(INFO_EXT))
      (htmlfontify.dvi, htmlfontify.pdf): New targets.
      
      * doc/misc/makefile.w32-in (INFO_TARGETS, DVI_TARGETS, clean):
      Add htmlfontify.
      ($(infodir)/htmlfontify$(INFO_EXT), htmlfontify.dvi): New targets.
      
      * info/dir: Add htmlfontify.
      92d59611
    • Paul Eggert's avatar
      Merge from gnulib. · ee0d3938
      Paul Eggert authored
      This incorporates:
      2013-01-04 stdio: remove now-unnecessary stdio.c
      2013-01-04 fprintftime: depend on stdio, not ignore-value
      2013-01-04 fwrite: silence __wur only for older glibc versions
      2013-01-04 fwrite: silence __wur without using inline
      * lib/stdio.c: Remove.
      * lib/stdio.in.h, lib/strftime.c: Update from gnulib.
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      ee0d3938
  26. 02 Jan, 2013 1 commit