1. 06 Oct, 2014 1 commit
  2. 10 Sep, 2014 1 commit
    • Stefan Monnier's avatar
      CC-mode: Set open-paren-in-column-0-is-defun-start to nil; · 47003633
      Stefan Monnier authored
      plus misc cleanup.
      * lisp/progmodes/cc-mode.el (c-basic-common-init):
      Set open-paren-in-column-0-is-defun-start.
      (adaptive-fill-first-line-regexp, font-lock-syntactic-keywords):
      Remove declarations, unused.
      (run-mode-hooks): Remove declaration.
      (font-lock-defaults): Use plain `defvar' to declare.
      (c-run-mode-hooks): Test existence of run-mode-hooks with fboundp.
      * lisp/progmodes/cc-langs.el (c-filter-ops): Avoid `setq'.
      (c-make-mode-syntax-table): Don't micro-optimize.
      (c-keywords, c-keyword-member-alist): Simplify.
      (c-kwds-lang-consts): Don't eval at compile-time.
      (c-primary-expr-regexp): Comment out unused vars.
      * lisp/progmodes/cc-fonts.el (c-font-lock-context): Declare at top-level.
      (c-font-byte-compile): New var.
      (c--compile): New function.  Use it instead of `byte-compile'.
      (c-cpp-matchers): Quote the value returned by
      `c-make-syntactic-matcher' in case it's not self-evaluating.
      (c-basic-matchers-before): Avoid a plain MATCHER as keyword, wrap it in
      parentheses instead (in case MATCHER happens to be a list).
      (c-font-lock-enum-tail): Remove unused var `start'.
      (c-font-lock-objc-methods): Silence byte-compiler warnings.
      * lisp/progmodes/cc-engine.el (c-syntactic-re-search-forward): Sink an `if'
      test into an argument.
      * lisp/progmodes/cc-defs.el (c-point, c-major-mode-is, c-put-char-property)
      (c-get-char-property): Don't use `eval' just to unquote a constant.
      (c-use-extents): Remove.  Use (featurep 'xemacs), compiled
      more efficiently.
      (c-put-char-property-fun): Don't call `byte-compile' by hand.
      (c-clear-char-property, c-clear-char-properties): Check that `property'
      is a quoted constant.
      (c-emacs-features): Remove `infodock', `syntax-properties', and
      `pps-extended-state' (never used), `8-bit' and `1-bit' (use (featurep
      'xemacs) instead).  Use `with-temp-buffer' and let-bind vars after
      changing buffer, so we don't have to setq them again afterwards.
      (c-lang-const): Remove redundant symbolp assertions.
      (c-find-assignment-for-mode): Use `or'.
      * lisp/Makefile.in (compile-one-process): Remove cc-mode dependency.
  3. 09 Sep, 2014 1 commit
  4. 16 Aug, 2014 1 commit
    • Paul Eggert's avatar
      Add dependencies to fix loaddefs race during parallel builds. · 3bcff29c
      Paul Eggert authored
      Without this, for example, 'make -j bootstrap' can fail and report
      "Opening input file: no such file or directory,
      .../lisp/calendar/diary-loaddefs.el ... recipe for target
      'calendar/hol-loaddefs.el' failed", where the hol-loaddefs.el rule
      got confused because diary-loaddefs.el was being built in parallel.
      * Makefile.in ($(CAL_DIR)/diary-loaddefs.el):
      Depend on $(CAL_DIR)/cal-loaddefs.el.
      ($(CAL_DIR)/hol-loaddefs.el): Depend on $(CAL_DIR)/diary-loaddefs.el.
  5. 30 Jun, 2014 2 commits
  6. 28 Jun, 2014 2 commits
  7. 26 Jun, 2014 1 commit
  8. 25 Jun, 2014 1 commit
    • Glenn Morris's avatar
      lisp/Makefile: Remove cc-*.el dependencies on non-cc files · d3033d00
      Glenn Morris authored
      * lisp/Makefile.in ($(lisp)/progmodes/cc-defs.elc)
      ($(lisp)/progmodes/cc-fonts.elc, $(lisp)/progmodes/cc-langs.elc)
      ($(lisp)/progmodes/cc-vars.elc): Drop hand-written deps on non-cc files.
      They are not relevant to the original issue (bug#1004),
      and cause unnecessary recompilation (bug#2151).
  9. 15 Jun, 2014 1 commit
    • 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.
  10. 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.
  11. 02 Jun, 2014 2 commits
  12. 11 Apr, 2014 1 commit
    • Glenn Morris's avatar
      Avoid EMACSDATA in user environment interfering with building · e088b01d
      Glenn Morris authored
      * admin/grammars/Makefile.in (EMACSDATA, EMACSDOC, EMACSPATH):
      * leim/Makefile.in (EMACSDATA, EMACSDOC, EMACSPATH):
      * lisp/Makefile.in (EMACSDATA, EMACSDOC, EMACSPATH):
      * test/automated/Makefile.in (EMACSDATA, EMACSDOC, EMACSPATH):
      Fixes: debbugs:16429
  13. 29 Mar, 2014 1 commit
    • Glenn Morris's avatar
      Manage reftex's internal autoloads automatically · 41116c5a
      Glenn Morris authored
      * lisp/textmodes/reftex.el: Manage most autoloads automatically.
      * lisp/textmodes/reftex-auc.el, lisp/textmodes/reftex-cite.el:
      * lisp/textmodes/reftex-dcr.el, lisp/textmodes/reftex-global.el:
      * lisp/textmodes/reftex-index.el, lisp/textmodes/reftex-parse.el:
      * lisp/textmodes/reftex-ref.el, lisp/textmodes/reftex-sel.el:
      * lisp/textmodes/reftex-toc.el: Set generated-autoload-file,
      and add autoload cookies for reftex.el.
      * lisp/Makefile.in (AUTOGEN_VCS): Add textmodes/reftex.el.
  14. 27 Mar, 2014 1 commit
  15. 21 Mar, 2014 1 commit
    • Glenn Morris's avatar
      Don't set make-backup-files in lisp/Makefile loaddefs rules · aa3a7b51
      Glenn Morris authored
      * lisp/Makefile.in ($(MH_E_DIR)/mh-loaddefs.el)
      ($(TRAMP_DIR)/tramp-loaddefs.el, $(CAL_DIR)/cal-loaddefs.el)
      ($(CAL_DIR)/diary-loaddefs.el, $(CAL_DIR)/hol-loaddefs.el):
      Don't set `make-backup-files'.
      It doesn't really matter either way, so we might as well not bother.
  16. 14 Mar, 2014 1 commit
  17. 20 Jan, 2014 1 commit
    • Paul Eggert's avatar
      Revert some of the CANNOT_DUMP fix. · f952002e
      Paul Eggert authored
      Because of this, "make bootstrap" won't work if CANNOT_DUMP=yes,
      but fixing this can wait until after the next release.
      * leim/Makefile.in (RUN_EMACS): Keep EMACSLOADPATH empty.
      * lisp/Makefile.in (emacs): Keep EMACSLOADPATH empty.
      * src/lread.c (init_lread): Fix typo: NILP, not !NILP.
      Fixes: debbugs:16494
  18. 01 Jan, 2014 1 commit
  19. 18 Dec, 2013 1 commit
    • Glenn Morris's avatar
      Add load-prefer-newer option, to load .el if newer than .elc · 1f41ee56
      Glenn Morris authored
      * src/lread.c (Fload): Pass load_prefer_newer to openp.
      Don't bother checking mtime if openp already did it.
      (openp): Add `newer' argument, to check all suffixes
      and find the newest file.
      (syms_of_lread) <load_prefer_newer>: New option. 
      * src/callproc.c (call_process):
      * src/charset.c (load_charset_map_from_file):
      * src/emacs.c (init_cmdargs):
      * src/image.c (x_create_bitmap_from_file, x_find_image_file):
      * src/lisp.h (openp):
      * lread.c (Flocate_file_internal):
      * src/process.c (Fformat_network_address):
      * src/sound.c (Fplay_sound_internal):
      * src/w32.c (check_windows_init_file):
      * src/w32proc.c (sys_spawnve): Update for new arg spec of openp.
      * lisp/Makefile.in (BYTE_COMPILE_FLAGS): Set load-prefer-newer to t.
      * etc/NEWS: Mention this.
      Fixes: debbugs:2061
  20. 16 Dec, 2013 1 commit
    • Paul Eggert's avatar
      Fix problems with CANNOT_DUMP and EMACSLOADPATH. · 8fb8c4f3
      Paul Eggert authored
      * leim/Makefile.in (RUN_EMACS):
      * lisp/Makefile.in (emacs): Add lisp src to EMACSLOADPATH.
      * lisp/loadup.el: Check for src/bootstrap-emacs only when Emacs can dump.
      Expand dir too, in case it's relative.
      * src/lread.c (init_lread): If CANNOT_DUMP, we can't be dumping.
  21. 11 Dec, 2013 1 commit
  22. 10 Dec, 2013 1 commit
  23. 30 Nov, 2013 1 commit
    • Glenn Morris's avatar
      Stop keeping (all but one) generated cedet grammar files in the repository · f9b697dd
      Glenn Morris authored
      * configure.ac (SUBDIR_MAKEFILES, AC_CONFIG_FILES):
      Add admin/grammars Makefile.
      * Makefile.in (distclean, bootstrap-clean, maintainer-clean):
      Also clean admin/grammars, if present.
      * admin/grammars/README: Remove.
      * admin/grammars/Makefile.in: New file.
      * admin/grammars/c.by, admin/grammars/java-tags.wy, admin/grammars/js.wy:
      * admin/grammars/python.wy: Update declarations to match generated outputs.
      * lisp/Makefile.in (semantic): New.
      (compile-main): Depend on semantic.
      * lisp/cedet/semantic/bovine/grammar.el (bovine--make-parser-1):
      New function, split from bovine-make-parsers.
      (bovine-make-parsers): Use bovine--make-parser-1.
      (bovine-batch-make-parser): New function.
      * lisp/cedet/semantic/wisent/grammar.el (wisent--make-parser-1):
      New function, split from wisent-make-parsers.
      (wisent-make-parsers): Use wisent--make-parser-1.
      (wisent-batch-make-parser): New function.
      * lisp/cedet/semantic/db.el (semanticdb-save-all-db):
      Avoid prompting in batch mode.
      * lisp/cedet/semantic/grammar.el (semantic-grammar-footer-template):
      Disable version-control and autoloads in the output.
      Add option to return nil if output is up-to-date.
      * lisp/cedet/semantic/bovine/c-by.el, lisp/cedet/semantic/bovine/make-by.el:
      * lisp/cedet/semantic/bovine/scm-by.el, lisp/cedet/semantic/wisent/javat-wy.el:
      * lisp/cedet/semantic/wisent/js-wy.el, lisp/cedet/semantic/wisent/python-wy.el:
      * lisp/cedet/srecode/srt-wy.el: Remove generated files from repository.
      * .bzrignore: Update for this.
  24. 27 Nov, 2013 1 commit
    • Glenn Morris's avatar
      Move runtime leim lisp files to lisp/leim directory · cb6c95a3
      Glenn Morris authored
      This allows us to reuse much of the lisp build and installation machinery,
      rather than duplicating it.
      * Makefile.in (abs_builddir, leimdir): Remove.
      (buildlisppath, SUBDIR, COPYDIR, COPYDESTS): No more leim directory.
      (epaths-force-w32): No longer set BLD.
      (leim): Remove.
      (install-arch-indep): No longer run or install leim.
      (mostlyclean, clean): No longer run leim rule.
      (bootstrap-clean): Change leim target.
      (maintainer-clean): Add leim.
      (check-declare): Remove leim.
      * README: Update for leim changes.
      * configure.ac (leimdir): Remove.
      (standardlisppath): No more leimdir.
      * make-dist: Update for files from leim/ now being in lisp/leim/.
      * doc/lispref/loading.texi (Library Search):
      * doc/lispref/os.texi (Startup Summary): No more leim directory.
      * leim/Makefile.in (leimdir): New variable.
      (TIT_GB, TIT_BIG5, MISC, changed.tit, changed.misc)
      (${leimdir}/leim-list.el, ${leimdir}/ja-dic/ja-dic.el):
      Generate in $leimdir.
      (all): Remove compilation, add ja-dic.
      (leim-list.el): Now PHONY.
      (setwins, compile-targets, compile-main, clean, mostlyclean)
      (extraclean): Remove.
      (bootstrap-clean): Delete all generated files.
      * leim/README: Update for moved leim/ directory.
      * leim/leim-ext.el (ucs-input-activate, hangul-input-method-activate):
      Remove manual autoloads; now in loaddefs.el.
      Disable byte-compile, version-control, autoloads in the output.
      * lisp/Makefile.in (setwins_for_subdirs): Skip leim/ directory.
      (compile-main): Depend on lisp/leim rule.
      (leim): New rule.
      * lisp/loadup.el: Move leim-list.el to leim/ subdirectory.
      * lisp/startup.el (normal-top-level): No more leim directory.
      * lisp/international/ja-dic-cnv.el (skkdic-convert):
      Disable version-control and autoloads in output files.
      * lisp/international/titdic-cnv.el (titdic-convert, miscdic-convert):
      Disable version-control and autoloads in output files.
      * lisp/leim/quail: Move here from ../leim.
      * lisp/leim/quail/hangul.el (hangul-input-method-activate):
      Add autoload cookie.
      (generated-autoload-load-name): Set file-local value.
      * lisp/leim/quail/uni-input.el (ucs-input-activate): Add autoload cookie.
      (generated-autoload-load-name): Set file-local value.
      * nt/README.W32:
      * nt/addpm.c (env_vars):
      * nt/paths.h (PATH_LOADSEARCH): No more leim directory.
      * src/Makefile.in (leimdir): Now in lisp source directory.
      ($(leimdir)/leim-list.el): Just use ../leim .
      * src/epaths.in (PATH_DUMPLOADSEARCH):
      * src/lread.c (load_path_default):
      * src/nsterm.m (ns_load_path): No more leim directory.
      * .bzrignore: Update for relocated leim files.
  25. 23 Nov, 2013 1 commit
    • Glenn Morris's avatar
      Empty elements in EMACSLOADPATH now stand for the default · 17e0445b
      Glenn Morris authored
      * src/lread.c (load_path_check): Take path to check as argument.
      (load_path_default): New, split from init_lread.
      (init_lread): Move calc of default load-path to load_path_default.
      Empty elements in EMACSLOADPATH now stand for the default.
      (load-path): Doc fix.
      * src/emacs.c (decode_env_path): Add option to treat empty elements
      as nil rather than ".".
      * src/callproc.c (init_callproc_1, init_callproc):
      * src/image.c (Vx_bitmap_file_path):
      * src/lisp.h (decode_env_path):
      * lread.c (Vsource_directory):
      Update for new argument spec of decode_env_path.
      * leim/Makefile.in (RUN_EMACS): Empty EMACSLOADPATH rather than unsetting.
      * lisp/Makefile.in (emacs): Empty EMACSLOADPATH rather than unsetting.
      * test/automated/Makefile.in (emacs):
      Empty EMACSLOADPATH rather than unsetting.
      * doc/emacs/cmdargs.texi (General Variables):
      Empty elements in EMACSLOADPATH now mean the default load-path.
      * doc/lispref/loading.texi (Library Search):
      Empty elements in EMACSLOADPATH now mean the default load-path.
      * etc/NEWS: Mention this.
      Fixes: debbugs:12100
  26. 06 Nov, 2013 3 commits
  27. 04 Nov, 2013 1 commit
    • Eli Zaretskii's avatar
      Fix bug #15260 with building and installing Emacs in non-ASCII directories. · d0065ff1
      Eli Zaretskii authored
       src/xdisp.c (message3_nolog, message_with_string): Encode the string
       before writing it to the terminal in a non-interactive session.
       src/lread.c (openp): If both FILENAME and SUFFIX are unibyte, make
       sure we concatenate them into a unibyte string.
       src/fileio.c (make_temp_name): Encode PREFIX, and decode the
       resulting temporary name before returning it to the caller.
       (Fexpand_file_name): If NAME is pure-ASCII and DEFAULT_DIRECTORY
       is a unibyte string, convert NAME to a unibyte string to ensure
       that the result is also a unibyte string.
       src/emacs.c (init_cmdargs): Use build_unibyte_string to make sure we
       create unibyte strings from default paths and directory/file
       src/coding.h (ENCODE_FILE): Do not attempt to encode a unibyte
       src/callproc.c (init_callproc): Use build_unibyte_string to make
       sure we create unibyte strings from default paths and
       directory/file names.
       src/buffer.c (init_buffer): Don't store default-directory of
       *scratch* in multibyte form.  The original problem which led to
       that is described in
       but it was solved long ago.
       lisp/startup.el (normal-top-level): Move setting eol-mnemonic-unix,
       eol-mnemonic-mac, eol-mnemonic-dos, and also setup of the locale
       environment and decoding all of the default-directory's to here
       from command-line.
       (command-line): Decode also argv[0].
       lisp/loadup.el: Error out if default-directory is a multibyte string
       when we are dumping.
       lisp/Makefile.in (emacs): Don't set LC_ALL=C.
       leim/Makefile.in (RUN_EMACS): Don't set LC_ALL=C.
       configure.ac: Don't disallow builds in non-ASCII directories.
  28. 03 Nov, 2013 1 commit
  29. 02 Nov, 2013 6 commits
    • Glenn Morris's avatar
    • Eli Zaretskii's avatar
      Fix commentary in lisp/Makefile.in. · bd9565cd
      Eli Zaretskii authored
    • Glenn Morris's avatar
      * lisp/Makefile.in (EMACS): Use a relative filename. · 18ba6a33
      Glenn Morris authored
      (custom-deps, finder-data, autoloads): Use --chdir.
    • Glenn Morris's avatar
    • Glenn Morris's avatar
      Use relative filenames in TAGS files. · c617f3d0
      Glenn Morris authored
      * src/Makefile.in (abs_srcdir): Remove it again.
      (.PHONY): Remove frc.
      (maintainer-clean): No more TAGS-LISP file.
      (TAGS): Pass relative file names to etags.
      (../lisp/TAGS): Rename from TAGS-LISP.  Work in ../lisp.
      * lisp/Makefile.in (lisptagsfiles1, lisptagsfiles2, lisptagsfiles3)
      (lisptagsfiles4, TAGS): Use relative file names.
      (TAGS-LISP): Remove.
      (maintainer-clean): No more TAGS-LISP file.
      * lwlib/Makefile.in (abs_srcdir): Remove it again.
      (ctagsfiles, TAGS): Use relative filenames.
      * .bzrignore: Remove TAGS-LISP.
    • Glenn Morris's avatar
      Small Makefile cleanup mainly related to tags file generation · b0b9e592
      Glenn Morris authored
      * src/Makefile.in (abs_srcdir): New, set by configure.
      (maintainer-clean): Remove pointless echo.  That should be in the
      top-level Makefile, if anywhere.  Delete TAGS-LISP.
      (extraclean): No s/ and m/ directories for some time.
      (TAGS): Remove no-longer-defined S_FILE.
      Pass absolute filenames to etags once more.
      (TAGS-LISP, $(lwlibdir)/TAGS): Correctly pass ETAGS to sub-makes.
      ($(lwlibdir)/TAGS): Remove useless subshell, check cd return value.
      * lisp/Makefile.in (lisptagsfiles1, lisptagsfiles2, lisptagsfiles3)
      (lisptagsfiles4): Use absolute filenames again.
      (TAGS, TAGS-LISP): Not everything needs to run in one line.
      Remove all *loaddefs files, not just the first.  Remove esh-groups.
      (maintainer-clean): Delete TAGS, TAGS-LISP.
      * lwlib/Makefile.in (abs_srcdir): New, set by configure.
      (ETAGS, ctagsfiles): New variables.
      (TAGS): Use ETAGS, ctagsfiles.  Use absolute filenames again.
  30. 01 Nov, 2013 1 commit