1. 06 May, 2017 4 commits
    • Eli Zaretskii's avatar
      Fix last change for MS-Windows · 89b5a828
      Eli Zaretskii authored
      * test/src/emacs-module-tests.el (module-function-object): Port to
    • Philipp Stephani's avatar
      Introduce new misc type for module function · a3e96940
      Philipp Stephani authored
      This resolves a couple of FIXMEs in emacs-module.c.
      * src/lisp.h (MODULE_FUNCTIONP, XMODULE_FUNCTION): New functions.
      * src/alloc.c (make_module_function): New function.
      (mark_object): GC support.
      * src/data.c (Ftype_of, syms_of_data): Handle module function type.
      * src/print.c (print_object): Print support for new type.
      * src/emacs-module.c (module_make_function, Finternal_module_call):
      Use new module function type, remove FIXMEs.
      (module_format_fun_env): Adapt and give it external linkage.
      * test/src/emacs-module-tests.el (module-function-object): Add unit
    • Philipp Stephani's avatar
      Fix quoted files for 'verify-visited-file-modtime' · 5e47c2e5
      Philipp Stephani authored
      Fixes Bug#25951.
      * lisp/files.el (file-name-non-special): Set the file name for the
      correct buffer.
      * test/lisp/files-tests.el (files-tests--file-name-non-special--buffers):
      Add unit test.
      (files-tests--with-advice, files-tests--with-temp-file): New helper
    • Tino Calancha's avatar
      Ensure the created temp file in a test is new · 966020bc
      Tino Calancha authored
      * test/lisp/buff-menu-tests.el (buff-menu-24962): Use `make-temp-file'
      to create the temp file.
  2. 04 May, 2017 1 commit
    • Damien Cassou's avatar
      Add seq-set-equal-p to test for set equality · 88f96e69
      Damien Cassou authored
      * lisp/emacs-lisp/seq.el (seq-set-equal-p): Add function to compare
        two lists as if they were sets.
      * test/lisp/emacs-lisp/seq-tests.el (test-seq-set-equal-p): Add test
        for seq-set-equal-p.
  3. 03 May, 2017 1 commit
    • Tom Tromey's avatar
      Add color highlighting to css-mode · f0708fc5
      Tom Tromey authored
      * lisp/textmodes/css-mode.el (css--color-map): New constant.
      (css-value-class-alist): Use css--color-map.
      (css--number-regexp, css--percent-regexp)
      (css--number-or-percent-regexp, css--angle-regexp): New constants.
      (css--color-skip-blanks, css--rgb-color, css--hsl-color): New
      (css--colors-regexp): New constant.
      (css--hex-color, css--named-color, css--compute-color)
      (css--contrasty-color, css--fontify-colors)
      (css--fontify-region): New functions.
      (css-mode): Set font-lock-fontify-region-function.
      (css-mode-syntax-table): Set syntax on more characters.
      (css-fontify-colors): New defcustom.
      (scss-mode-syntax-table): Define syntax for ?$ and ?%.
      * test/lisp/textmodes/css-mode-tests.el (css-test-property-values):
      (css-test-rgb-parser, css-test-hsl-parser)
      (css-test-named-color): New tests.
      * etc/NEWS: Add entry.
  4. 02 May, 2017 1 commit
  5. 01 May, 2017 8 commits
    • Paul Eggert's avatar
      Port format-time-string to MS-Windows better · d36b0c2c
      Paul Eggert authored
      * test/src/editfns-tests.el (format-time-string-with-zone):
      Port test cases to MS-Windows.
    • Ken Brown's avatar
      ; Fix typo · 16b49e21
      Ken Brown authored
      * test/src/editfns-tests.el (format-time-string-with-zone): Fix
      typo in timezone specification.
    • Eli Zaretskii's avatar
      ; Fix commentary in a recent commit · 80407a2d
      Eli Zaretskii authored
      * test/src/editfns-tests.el (format-time-string-with-zone): Minor
      copyedit in the commentary.
    • Philipp Stephani's avatar
      Warn about missing backslashes during load · c2bbdc33
      Philipp Stephani authored
      * src/lread.c (load_warn_unescaped_character_literals, Fload, read1)
      (syms_of_lread): Warn if unescaped character literals are
      found (Bug#20152).
      * lisp/emacs-lisp/bytecomp.el (byte-compile-from-buffer): Check for
      unescaped character literals during byte compilation.
      * test/src/lread-tests.el (lread-tests--unescaped-char-literals): New
      unit test.
      (lread-tests--with-temp-file, lread-tests--last-message): Helper
      functions for unit test.
      * test/lisp/emacs-lisp/bytecomp-tests.el
      (bytecomp-tests--unescaped-char-literals): New unit test.
      * test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-tests--with-temp-file):
      Helper macro for unit test.
    • Paul Eggert's avatar
      Don’t stress-test time zones near the Epoch · a4dc24cf
      Paul Eggert authored
      * test/src/editfns-tests.el (format-time-string-with-zone)
      (format-time-string-with-outlandish-zone): Don’t format
      timestamps near the Epoch, as this runs into bugs on MS-Windows,
      and we don’t want to worry about those bugs.
    • Glenn Morris's avatar
      Tweak vc-tests.el for bzr · 6f0dfad8
      Glenn Morris authored
      * test/lisp/vc/vc-tests.el (vc-test--working-revision):
      Handle test environments where HOME does not exist.
    • Michael Albinus's avatar
      Fix filenotify-tests.el for cygwin · ebff4177
      Michael Albinus authored
      * test/lisp/filenotify-tests.el (file-notify--test-read-event):
      Add an additional `sit-for'.
      (file-notify-test02-rm-watch): Add an additional
      `file-notify--test-read-event' call.
    • Dmitry Gutov's avatar
  6. 29 Apr, 2017 1 commit
    • Philipp Stephani's avatar
      Integrate module test with normal test suite · bfc0f610
      Philipp Stephani authored
      * test/Makefile.in (ELFILES): Exclude module test if modules aren't
      (EMACS_TEST_DIRECTORY): Expand test directory so that it's set
      correctly even if Emacs changes the current directory.
      ($(test_module)): Proper dependency tracking for test module.
      * test/data/emacs-module/Makefile (ROOT): Adapt to new location.
      Remove 'check' target and EMACS variable, which are no longer
      (SO): Change to include period.
      * test/src/emacs-module-tests.el (mod-test): Use EMACS_TEST_DIRECTORY
      environment variable to reliably find test data.
      * configure.ac (HAVE_MODULES, MODULES_SUFFIX): Add necessary
  7. 28 Apr, 2017 2 commits
  8. 27 Apr, 2017 6 commits
  9. 25 Apr, 2017 1 commit
  10. 24 Apr, 2017 2 commits
  11. 23 Apr, 2017 2 commits
    • Philipp Stephani's avatar
      Add missing remappings for Ido mode · a1f93c1d
      Philipp Stephani authored
      Among others, add a remapping for C-x 4 d, cf. Bug#26360.
      * lisp/ido.el (ido-mode): Remap missing commands.
      (ido-file-internal, ido-visit-buffer): Add support for new
      (ido-find-alternate-file-other-window, ido-dired-other-window)
      (ido-dired-other-frame): New commands.
      * test/lisp/ido-tests.el (ido-tests--other-window-frame): Add unit
      test for the bindings.
    • Noam Postavsky's avatar
      Don't require bytecomp for running ert tests · b20d05c6
      Noam Postavsky authored
      "Fix ert-tests when running compiled" 2016-12-06 accidentally
      introduced a dependency on `bytecomp' into `ert'.  As mentioned in
      "Avoid ert test failures" 2017-04-18, the accidental dependency of ert
      on bytecomp was masked by loading other libraries until recently.
      * lisp/emacs-lisp/ert.el (ert--expand-should-1): Only use
      `byte-compile-macro-environment' if it's bound.
      * test/src/eval-tests.el: Add defvar for dynamic variable
  12. 22 Apr, 2017 3 commits
    • Noam Postavsky's avatar
      Don't reparse the sexp in indent-sexp (Bug#25122) · 43c84577
      Noam Postavsky authored
      * lisp/emacs-lisp/lisp-mode.el (calculate-lisp-indent): Let
      PARSE-START be a parse state that can be reused.
      (indent-sexp): Pass the running parse state to calculate-lisp-indent
      instead of the sexp beginning position.  Saving the
      CONTAINING-SEXP-START returned by `calculate-lisp-indent' is no longer
      needed.  Don't bother stopping if we don't descend below init-depth,
      since we now alway scan the whole buffer (via syntax-ppss) anyway.
      * test/lisp/emacs-lisp/lisp-mode-tests.el (indent-sexp): Add blank
      line to test case.
    • Vibhav Pant's avatar
      Add cond test cases for singleton clauses. · 66dc8dd6
      Vibhav Pant authored
      * test/lisp/emacs-lisp/bytecomp-tests.el: Add test cond forms where
        the default clause is a single non-nil expression.
    • Philipp Stephani's avatar
      ffap: Don't switch window unless needed · ace38baf
      Philipp Stephani authored
      When using ffap-other-window, don't change the window configuration
      unless a new buffer has actually been created (Bug#25352).
      * lisp/ffap.el (ffap-other-frame): Don't change the window
      configuration if no new buffer has been created.
      * test/lisp/ffap-tests.el (ffap-other-window--bug-25352): Add unit
  13. 21 Apr, 2017 2 commits
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/cl-macs.el: Fix symbol-macrolet · 89898e43
      Stefan Monnier authored
      Revert 0d112c00 (to fix bug#26325)
      and use a different fix for bug#26068.
      (cl--symbol-macro-key): New function.
      (cl--sm-macroexpand, cl-symbol-macrolet): Use it instead of `symbol-name`.
      * test/lisp/emacs-lisp/cl-lib-tests.el (cl-lib-symbol-macrolet):
      Failure is not expected any more.
    • Lars Ingebrigtsen's avatar
      Add tests to check image scaling functionality · b1fe497a
      Lars Ingebrigtsen authored
      This is in preparation to doing further work in this area to avoid
      * test/data/image/blank-200x100.png: New file for testing
      image scaling.
      * test/manual/image-size-tests.el: New file.
  14. 18 Apr, 2017 2 commits
  15. 17 Apr, 2017 1 commit
    • David Engster's avatar
      xml: Properly handle symbol-qnames for attribute parsing · 09eaf661
      David Engster authored
      * lisp/xml.el (xml-parse-attlist): Do not strip 'symbol-qnames from
        xml-ns argument (reverts aea67018) (Bug#26533).
        (xml-maybe-do-ns): Properly handle default namespace by not
        interning new symbol when 'special' flag is set.
      * tests/lisp/xml-tests.el (xml-parse-test--namespace-attribute-qnames)
        (xml-parse-namespace-attribute-qnames): Add test for Bug#26533.
  16. 16 Apr, 2017 1 commit
    • Michael Albinus's avatar
      Tuning for `separate' Tramp syntax · 8d96feae
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-method-regexp): Fix it for `separate' syntax.
      (tramp-completion-file-name-regexp-separate): Simplify.
      * test/lisp/net/tramp-tests.el (tramp-test02-file-name-dissect-separate):
      Extend test.
  17. 13 Apr, 2017 2 commits