1. 04 Jan, 2015 1 commit
  2. 01 Jan, 2015 1 commit
  3. 27 Dec, 2014 1 commit
    • Eli Zaretskii's avatar
      Fix compilation of lib-src executables on MS-Windows. · 0db7db30
      Eli Zaretskii authored
       lib-src/Makefile.in (etags_libs, ebrowse${EXEEXT}, profile${EXEEXT})
       (make-docfile${EXEEXT}, movemail${EXEEXT})
       (update-game-score${EXEEXT}): Put $(NTLIB) before $(LOADLIBES),
       since GCC sometimes calls stpcpy when it sees strcpy, under
       optimization switches.  Reported by Dani Moncayo <dmoncayo@gmail.com>.
  4. 24 Dec, 2014 1 commit
  5. 14 Dec, 2014 1 commit
    • Glenn Morris's avatar
      Remove lib-src/grep-changelog · 49daed60
      Glenn Morris authored
      Ref: http://lists.gnu.org/archive/html/emacs-devel/2014-12/msg00145.html
      * lib-src/grep-changelog: Remove file.
      * lib-src/Makefile.in (INSTALLABLE_SCRIPTS): Remove.
      (all, install, uninstall): Remove INSTALLABLE_SCRIPTS.
      * doc/man/grep-changelog.1: Remove file.
      * make-dist: No more lib-src/grep-changelog.
      * INSTALL: No longer mention grep-changelog.
      * admin/quick-install-emacs (PUBLIC_LIBSRC_SCRIPTS): Remove, and all uses.
      * admin/authors.el (authors-valid-file-names): Add grep-changelog.
      * etc/NEWS: Mention this.
  6. 08 Dec, 2014 1 commit
    • Stefan Monnier's avatar
      Various minor details accumulated over time · b76bea4c
      Stefan Monnier authored
      * lisp/info.el (Info-mode-map): Remove left-over binding.
      * lisp/net/tramp.el (tramp-handle-make-symbolic-link): Mark unused arg.
      * lisp/obsolete/gulp.el (gulp-create-m-p-alist): Remove unused var `mnt-tm'.
      * lisp/progmodes/gud.el (gud-gdb-completions): Remove unused var `start'.
      * lisp/url/url-http.el (url-http-activate-callback): Make debug more verbose.
      * src/process.c: Whitespace and line-break nitpicks.
  7. 23 Nov, 2014 1 commit
  8. 22 Nov, 2014 2 commits
    • Glenn Morris's avatar
      Further reduce number of versioned files storing Emacs version number. · 84e2f13c
      Glenn Morris authored
      * configure.ac (comma_version, comma_space_version) [mingw32]:
      New output variables.
      (nt/emacs.rc, nt/emacsclient.rc) [mingw32]: New output files.
      * make-dist: Update nt/ for *.rc -> *.rc.in changes.
      * nt/emacs.rc.in, nt/emacsclient.rc.in: Rename from nt/emacs.rc, emacsclient.rc.
      Let configure generate the real files, and set the version numbers.
      * lib-src/Makefile.in (emacsclient.res): Update deps for nt/emacsclient.rc
      now being in the build directory, not the source directory.
      * nt/Makefile.in (distclean): Delete *.rc.
      (emacs.res): Update deps for nt/emacsclient.rc now being in the
      build directory, not the source directory.
      * admin/admin.el (set-version): No more need to update nt/*.rc.
      * admin/authors.el (authors-renamed-files-alist): Add .rc.in files.
    • Glenn Morris's avatar
      Add some .ico dependencies to Makefile .res rules · cc252fc1
      Glenn Morris authored
      * lib-src/Makefile.in (emacsclient.res): Add dependency on icons/emacs.ico.
      * nt/Makefile.in (emacs.res): Add dependency on icons/hand.cur.
  9. 20 Oct, 2014 1 commit
  10. 23 Sep, 2014 1 commit
    • Paul Eggert's avatar
      movemail: don't dump core if the current time is outlandish · 7d760fd8
      Paul Eggert authored
      * movemail.c (popmail): Check for mbx_delimit_begin failure.
      (mbx_delimit_begin): Fail if the current time is so outlandish
      that localtime would fail or asctime would have undefined
      behavior.  Use strftime to avoid asctime undefined behavior.
  11. 01 Sep, 2014 3 commits
    • Paul Eggert's avatar
      Fix typo in previous change's ChangeLog. · 177030ba
      Paul Eggert authored
    • Paul Eggert's avatar
      --enable-silent-warnings now suppresses more chatter. · bc12381e
      Paul Eggert authored
      * INSTALL, etc/NEWS: Document this.
      * lib-src/Makefile.in (AM_DEFAULT_VERBOSITY, AM_V_CC, am__v_CC_)
      (am__v_CC_0, am__v_CC_1, AM_V_CCLD, am__v_CCLD_, am__v_CCLD_0)
      (am__v_CCLD_1): New macros, taken from Automake.
      (regex.o, etags${EXEEXT}, ctags${EXEEXT}, ebrowse${EXEEXT})
      (profile${EXEEXT}, make-docfile${EXEEXT}, movemail${EXEEXT})
      (pop.o, emacsclient${EXEEXT}, emacsclientw${EXEEXT})
      (emacsclientw${EXEEXT}, ntlib.o, hexl${EXEEXT})
      (update-game-score${EXEEXT}): Use them.
      * lwlib/Makefile.in (AM_DEFAULT_VERBOSITY, AM_V_CC, am__v_CC_)
      (am__v_CC_0, am__v_CC_1): New macros, taken from Automake.
      (.c.o): Use them.
      * oldXMenu/Makefile.in (AM_DEFAULT_VERBOSITY, AM_V_CC, am__v_CC_)
      (am__v_CC_0, am__v_CC_1): New macros, taken from Automake.
      (.c.o): Use them.
      * src/Makefile.in (AM_DEFAULT_VERBOSITY, AM_V_CC, am__v_CC_)
      (am__v_CC_0, am__v_CC_1, AM_V_CCLD, am__v_CCLD_, am__v_CCLD_0)
      (am__v_CCLD_1): New macros, taken from Automake.
      (.c.o, .m.o, temacs$(EXEEXT)): Use them.
    • Paul Eggert's avatar
      * etags.c (emacs_strchr, emacs_strrchr): Remove. · 56f9f0ab
      Paul Eggert authored
      All uses replaced by strchr and strrchr, which are on all
      target platforms now.
  12. 15 Jul, 2014 1 commit
  13. 14 Jul, 2014 2 commits
    • Paul Eggert's avatar
      Use binary-io module, O_BINARY, and "b" flag. · ba1ed52f
      Paul Eggert authored
      * admin/merge-gnulib (GNULIB_MODULES): Add binary-io.  It was already
      present implicitly; this just makes the dependence explicit.
      * lib-src/etags.c, lib-src/hexl.c, lib-src/make-docfile.c:
      Include binary-io.h instead of fcntl.h and/or io.h.
      (main): Use set_binary_mode or SET_BINARY
      in place of handcrafted code.
      * lib-src/etags.c (main) [DOS_NT]:
      * lib-src/movemail.c (main) [WINDOWSNT]:
      Don't mess with _fmode.
      * lib-src/etags.c (main, process_file_name, analyse_regex):
      Use fopen/popen's "b" flag instead.
      * lib-src/movemail.c (main, popmail): Use open/lk_open/mkostemp's O_BINARY
      * src/callproc.c (create_temp_file): Use mkostemp's O_BINARY flag.
      * src/emacs.c [MSDOS]:
      * src/emacs.c (main) [DOS_NT]: Don't mess with _fmode.
      (main) [MSDOS]: Use SET_BINARY instead of setmode.
      * src/minibuf.c: Include binary-io.h instead of fcntl.h.
      Use set_binary_mode instead of handcrafted code.
      Don't call emacs_set_tty if emacs_get_tty failed.
      * src/sysdep.c, src/systty.h (emacs_get_tty): Return int, not void.
      * src/sysdep.c (emacs_open, emacs_pipe): Use O_BINARY.
      * src/w32.c (pipe2): Adjust eassert to include O_BINARY.
      Fixes: debbugs:18006
    • Paul Eggert's avatar
      * make-docfile.c: Simplify a bit, to simplify further refactoring. · a705278d
      Paul Eggert authored
      (outfile): Remove static var.  All uses changed to use stdout,
      since it's always stdout anyway.  While we're at it, prefer
      putchar/puts/fputs to printf when there are no format strings.
      (main): Use freopen rather than fopen, so that stdout is reused.
      Move O_BINARY stuff after the freopen, so it affects the
      reopened file.
      (write_c_args): Omit first arg, since it's always stdout now.
      All uses changed.
  14. 12 Jul, 2014 1 commit
  15. 26 Jun, 2014 1 commit
    • Glenn Morris's avatar
      lib-src/Makefile trivial simplifications · a210e783
      Glenn Morris authored
      * lib-src/Makefile.in (blessmail): Depend on lisp/mail/blessmail.el.
      Use $<, $@.
      (regex.o, etags${EXEEXT}, ctags${EXEEXT}, ebrowse${EXEEXT})
      (profile${EXEEXT}, make-docfile${EXEEXT}, movemail${EXEEXT})
      (pop.o, emacsclient${EXEEXT}, emacsclientw${EXEEXT}, ntlib.o)
      (hexl${EXEEXT}, update-game-score${EXEEXT}, emacsclient.res): Use $<.
      (ctags${EXEEXT}): Add $srcdir to dependency rather than using VPATH.
  16. 17 Jun, 2014 1 commit
    • Paul Eggert's avatar
      Omit redundant extern decls. · 73bfe891
      Paul Eggert authored
      Most of this patch is from Dmitry Antipov, in:
      * configure.ac (WERROR_CFLAGS): Add -Wredundant-decls.
      * lib-src/emacsclient.c (getenv): Remove decl.
      * lib-src/make-docfile.c (write_globals): Add ATTRIBUTE_CONST for
      Fbyteorder, Ftool_bar_height, Fmax_char, Fidentity.
      * lwlib/lwlib-Xm.c (lw_motif_widget_p, xm_update_one_value)
      (xm_create_dialog, xm_destroy_instance, xm_popup_menu)
      (xm_set_keyboard_focus, xm_set_main_areas): Remove decls.
      * src/commands.h (update_mode_lines):
      * src/frame.h (Qbackground_color, Qforeground_color)
      * src/ftfont.c (ftfont_font_format):
      * src/intervals.h (Qkeymap, Qfont):
      * src/keyboard.c (timer_check, safe_run_hooks, Qregion_extract_function):
      * src/lisp.h (Ffboundp, Qnil, Qt, Qlambda, Qintegerp, Qwholenump)
      (Qsymbolp, Qlisp, Qconsp, Qstringp, Qarrayp, Qbufferp, Qmarkerp)
      (Qvectorp, Qbuffer_or_string_p, Qchar_table_p, Qvector_or_char_table_p)
      (Qfloatp, Qnumberp, Qfont_spec, Qfont_entity, Qfont_object)
      (Fbyteorder, wrong_type_argument, Fmax_char, syms_of_composite)
      (Fidentity, extract_float, init_display, syms_of_display, Qdisplay):
      (Qimage, Qbox, redisplay_preserve_echo_area, char_table_ref)
      (char_table_set, char_table_translate, Qautoload, Qbottom, Qtop)
      (Qvisible, Qfont, Qfront_sticky, Qrear_nonsticky, init_sigio)
      (Qtool_bar, Qheader_line):
      * src/macros.c (Fexecute_kbd_macro):
      * src/xdisp.c (Ftool_bar_height, Ftool_bar_height):
      * src/xterm.c (x_delete_terminal, XSetIMValues):
      * src/xterm.h (x_set_window_size, x_query_color, x_get_focus_frame)
      (x_implicitly_set_name, popup_activated)
      Remove redundant decls.
      * src/frame.c [USE_X_TOOLKIT]: Include widget.h.
      * src/keyboard.c (Fexit_recursive_edit, Fabort_recursive_edit):
      Remove _Noreturn, as make-docfile now does that for us.
      * src/lisp.h (DEFUN): Don't declare fnname here; rely on make-docfile.
      (Qregion_extract_function): New decl.
      * src/window.c, src/xfns.c: Include menu.h.
  17. 15 Jun, 2014 4 commits
    • Glenn Morris's avatar
      Explicitly set LDFLAGS in some sub-Makefiles · b24ffa81
      Glenn Morris authored
      * lib-src/Makefile.in (LDFLAGS): Explicitly set via configure.
      * nt/Makefile.in (LDFLAGS): Explicitly set via configure.
    • Eli Zaretskii's avatar
      Fix MS-Windows build broken by latest Makefile.in changes. · 9fae211d
      Eli Zaretskii authored
       nt/Makefile.in (CPPFLAGS): Define.
       lib-src/Makefile.in (CPPFLAGS): Define.
    • Glenn Morris's avatar
      Use `make -C' rather than `cd && make' · 0d9f8137
      Glenn Morris authored
      * Makefile.in: Use `make -C' rather than `cd && make' throughout.
      * lib-src/Makefile.in (../lib/libgnu.a): Use `make -C' rather than `cd && make'.
      * lisp/Makefile.in (leim, semantic): Use `make -C' rather than `cd && make'.
      * lwlib/Makefile.in ($(globals_h)): Use `make -C' rather than `cd && make'.
      * src/Makefile.in: Use `make -C' rather than `cd && make' throughout.
    • Glenn Morris's avatar
      Parallelize clean rules using GNU make features · 0e6929ec
      Glenn Morris authored
      * Makefile.in: (submake_template): New definition.
      (mostlyclean_dirs, clean_dirs, distclean_dirs, maintainer_clean_dirs):
      New variables.
      (mostlyclean, clean, distclean, bootstrap-clean, maintainer-clean)
      (extraclean): Define using each subdirectory as a prequisite.
      * lib/Makefile.am (bootstrap-clean):
      * doc/emacs/Makefile.in (bootstrap-clean):
      * doc/lispintro/Makefile.in (bootstrap-clean):
      * doc/lispref/Makefile.in (bootstrap-clean):
      * doc/misc/Makefile.in (bootstrap-clean):
      * lib-src/Makefile.in (bootstrap-clean):
      * lwlib/Makefile.in (bootstrap-clean):
      * nextstep/Makefile.in (bootstrap-clean):
      * nt/Makefile.in (bootstrap-clean):
      * oldXMenu/Makefile.in (bootstrap-clean):
      New rules, for symmetry/simplicity.
      * lwlib/Makefile.in (mostlyclean, clean, distclean, maintainer-clean):
      * oldXMenu/Makefile.in (mostlyclean, clean, distclean, maintainer-clean, tags):
      Declare as PHONY.
  18. 13 Jun, 2014 1 commit
    • Glenn Morris's avatar
      With GNU make, MFLAGS is not needed · f9d80c51
      Glenn Morris authored
      * Makefile.in (CC, CFLAGS, LDFLAGS, CPPFLAGS, abs_top_srcdir):
      Remove, no longer used.
      (lib, lib-src, lisp, nt, src, blessmail, install-arch-dep)
      (install-nt, install-strip, uninstall, uninstall-nt)
      (mostlyclean, clean, distclean, bootstrap-clean)
      (maintainer-clean, extraclean, TAGS, tags, check, $(DOCS)):
      ($(INSTALL_DOC), $(UNINSTALL_DOC), info, bootstrap, check-declare):
      GNU make automatically passes command-line arguments to sub-makes.
      * admin/unidata/Makefile.in (${DSTDIR}/charprop.el):
      GNU make automatically passes command-line arguments to sub-makes.
      * lib-src/Makefile.in (../lib/libgnu.a):
      GNU make automatically passes command-line arguments to sub-makes.
      * lisp/Makefile.in ($(lisp)/cus-load.el, $(lisp)/finder-inf.el)
      (autoloads, $(lisp)/subdirs.el, compile-main, leim, semantic, compile)
      (compile-always): GNU make automatically passes
      command-line arguments to sub-makes.
      * lwlib/Makefile.in ($(globals_h)):
      GNU make automatically passes command-line arguments to sub-makes.
      * src/Makefile.in ($(leimdir)/leim-list.el, $(srcdir)/macuvs.h)
      ($(libsrc)/make-docfile$(EXEEXT), $(lwlibdir)/liblw.a)
      ($(oldXMenudir)/libXMenu11.a, ns-app, .el.elc)
      ($(lispsource)/loaddefs.el, bootstrap-emacs$(EXEEXT)):
      GNU make automatically passes command-line arguments to sub-makes.
      * test/automated/Makefile.in (compile-main):
      GNU make automatically passes command-line arguments to sub-makes.
  19. 26 May, 2014 1 commit
  20. 20 May, 2014 1 commit
  21. 19 May, 2014 1 commit
    • Paul Eggert's avatar
      Remove dependencies on getdelim and getline. · 60fc70a8
      Paul Eggert authored
      Also, remove update-game-scores's limits on game scores and
      simplify its file-locking code.
      * configure.ac (getdelim, getline): Remove.
      * lib-src/update-game-score.c (struct score_entry): Unify the username and
      data members to a single user_data member, since they don't need to be
      changed independently and getdelim and getline aren't helpful.
      Make the score member char *, not intmax_t, so that scores are not
      limited to intmax_t.  All uses changed.
      (lose_syserr): A zero errno stands for invalid data in score file.
      (normalize_integer): New function.
      (main): Use it.  Check for invalid scores.  Omit redundant stat check.
      (read_score): First arg is now a string, not a FILE *.  All uses
      changed.  Do not use getdelim or getline; that's way simpler.
      (read_scores): Read the whole file, and let read_score handle each
      (score_compare): Compare strings representing integers, not integers.
      (write_scores) [DOS_NT]: Eliminate unnecessary chmod.
      (lock_file): Simplify locking code, eliminating goto.
      Check for unlink failure.
  22. 18 May, 2014 1 commit
    • Paul Eggert's avatar
      Port ctags+etags build to Sun C 5.12. · 5eda3a75
      Paul Eggert authored
      * .bzrignore: Remove lib-src/ctags.c.
      * lib-src/Makefile.in (etags_args): Remove, replacing with ...
      (etags_cflags, etags_libs): New macros.  All uses changed.
      (ctags${EXEEXT}): Don't compile etags.c, as compiling etags.c in
      parallel (once for ctags, once for etags) breaks parallel makes
      with compilers that use the source file name to name temporaries,
      such as Sun C 5.12.  Instead, compile ctags.c.
      * lib-src/ctags.c: New file.
  23. 06 May, 2014 1 commit
  24. 03 May, 2014 1 commit
    • Paul Eggert's avatar
      Handle systems without WCONTINUED consistently. · d355cad6
      Paul Eggert authored
      * lib-src/emacsclient.c (WCONTINUED): Move to ../src/syswait.h.
      * src/process.c (handle_child_signal): Remove WCONTINUED ifdef,
      because WCONTINUED is always defined now.
      * src/syswait.h (WCONTINUED): Move here from ../lib-src/emacsclient.c.
      Fixes: debbugs:15110 debbugs:17339
  25. 29 Apr, 2014 1 commit
  26. 16 Apr, 2014 1 commit
    • Eli Zaretskii's avatar
      Fix the MSDOS build. · bf6b4923
      Eli Zaretskii authored
       src/unexcoff.c [MSDOS]: Include libc/atexit.h.
       (copy_text_and_data): Zero out the atexit chain pointer before
       dumping Emacs.
       src/termhooks.h (encode_terminal_code): Update prototype.
       src/term.c (encode_terminal_code) [DOS_NT]: Make it externally
       visible for all DOS_NT ports, not just WINDOWSNT.
       (syms_of_term) [!MSDOS]: Don't define 'tty-menu-*' symbols on MSDOS.
       src/sysdep.c (emacs_sigaction_init, init_signals): Don't use SIGCHLD
       unless it is defined.
       (emacs_pipe) [MSDOS]: Redirect to 'pipe'.
       src/process.c (close_on_exec, accept4, process_socket): Move into
       the "ifdef subprocesses" part.
       (catch_child_signal): Condition by "ifdef subprocesses".
       (syms_of_process) <Qinternal_default_process_sentinel>
       <Qinternal_default_process_filter>: Condition by "ifdef subprocesses".
       src/msdos.h: Add prototypes for new functions.
       (EINPROGRESS): Define.
       (O_CLOEXEC): Define to zero.
       src/msdos.c (check_window_system): Remove unnecessary an
       incompatible duplicate function.
       (sys_opendir, readlinkat, faccessat, fstatat, unsetenv): New
       functions in support of new functionality.
       src/menu.c (single_menu_item): Add visual indication  of submenu
       also for menus on MSDOS frames.
       (Fx_popup_menu) [!MSDOS]: Do not call tty_menu_show on MSDOS.
       src/lisp.h (CHECK_PROCESS) [!subprocesses]: Do not define
       when async subprocesses aren't supported.
       src/font.h (FONT_WIDTH) [MSDOS]: MSDOS-specific definition.
       src/emacs.c (close_output_streams): Zero out errno before calling
       src/dired.c [MSDOS]: Include msdos.h.
       src/conf_post.h (opendir) [MSDOS]: Redirect to sys_opendir.
       (DATA_START) [MSDOS]: Define.
       (SYSTEM_PURESIZE_EXTRA) [MSDOS]: Enlarge by 25K.
       src/callproc.c (block_child_signal, unblock_child_signal) [MSDOS]:
       Ifdef away for MSDOS.
       (record_kill_process) [MSDOS]: Ifdef away the entire body for MSDOS.
       (call_process_cleanup) [MSDOS]: Ifdef away portions not relevant
       for MSDOS.
       (call_process) [MSDOS]: Fix call sequence of dostounix_filename.
       Use temporary file template that is compatible with mkostemp.
       Move vfork-related portions under #ifndef MSDOS.
       (syms_of_callproc): Unify templates of MSDOS and WINDOWSNT.
       lisp/term/pc-win.el (x-list-fonts, x-get-selection-value): Provide
       doc strings, as required by snarf-documentation.
       msdos/sed1v2.inp: Update Sed scripts for Emacs 24.4.
       msdos/inttypes.h: Add PRIdMAX.
       msdos/INSTALL: Update for Emacs 24.4.
       msdos/sedadmin.inp: New file.
  27. 22 Mar, 2014 4 commits
    • Glenn Morris's avatar
      Reduce duplication in lib-src etags/ctags rules · 10211d43
      Glenn Morris authored
      * lib-src/Makefile.in (etags_deps, etags_args): New, to reduce duplication.
      (etags${EXEEXT}, ctags${EXEEXT}): Use etags_deps, etags_args.
    • Glenn Morris's avatar
      Use $@ more in lib-src/Makefile.in · df199e56
      Glenn Morris authored
      * lib-src/Makefile.in (etags${EXEEXT}, ebrowse${EXEEXT}, ctags${EXEEXT})
      (profile${EXEEXT}, make-docfile${EXEEXT}, movemail${EXEEXT})
      (emacsclient${EXEEXT}, emacsclientw${EXEEXT}, hexl${EXEEXT})
      (update-game-score${EXEEXT}, emacsclient.res): Use $@.
    • Glenn Morris's avatar
    • Glenn Morris's avatar
      Remove lib-src/test-distrib.c and related · 7cd43111
      Glenn Morris authored
      The class of problems that this was designed to detect, namely .elc
      files getting corrupted by being passed around by email via uuencode
      or somesuch, has not been a relevant concern for many years.
      * lib-src/test-distrib.c, lib-src/testfile: Remove.
      * lib-src/Makefile.in (DONT_INSTALL): Remove test-distrib.
      (test-distrib${EXEEXT}): Remove rule.
      * make-dist: Do not distribute lib-src/testfile.
      * admin/quick-install-emacs (AVOID): Remove testfile and test-distrib.
      * INSTALL, etc/PROBLEMS, admin/notes/unicode:
      Remove references to test-distrib and testfile.
  28. 10 Mar, 2014 1 commit
  29. 09 Mar, 2014 1 commit
    • Paul Eggert's avatar
      Fix emacsclient terminal corruption when in background. · d050de75
      Paul Eggert authored
      * emacsclient.c (handle_sigcont): Check for tcgetpgrp failure.
      Cancel the continue only if tty.  Send SIGTTIN to the process
      group, not SIGSTOP to self, as this is what the glibc manual
      (main): If tty, and if started in the background, send SIGTTIN
      to the process group.
      Fixes: debbugs:16892
  30. 03 Mar, 2014 1 commit