1. 19 Dec, 2018 4 commits
    • Glenn Morris's avatar
      Skip a vc-bzr test if run as root · fda43a7b
      Glenn Morris authored
      * test/lisp/vc/vc-bzr-tests.el (vc-bzr-test-faulty-bzr-autoloads):
      Skip this test when run as root.  This works around a race
      condition in root-specific code in vc-mode-line when deleting a file.
      
      ; Do not merge to master, instead fix vc-mode-line there.
      fda43a7b
    • Glenn Morris's avatar
      ; Copyright year fix · 4370b8eb
      Glenn Morris authored
      No need to merge to master
      4370b8eb
    • Chris Feng's avatar
      Backport: Handle unread-command-events consistently (bug#23980) · 305aca0a
      Chris Feng authored
      * src/keyboard.c (read_char): Events put into `unread-command-events'
      with the form (t . EVENT) should always have the t stripped when read
      out.
      * test/src/keyboard-tests.el: New tests for `unread-command-events'.
      
      (cherry picked from commit 1f3f4b12)
      305aca0a
    • Glenn Morris's avatar
      Restrict downcasing in elisp xref tests (bug#25534) · 4c6c327d
      Glenn Morris authored
      The tests happen to not fail at the moment because find-library-name
      now has an extra feature, find-library--from-load-history, which
      happens to do a case-insensitive regexp match; but still it seems
      better not to rely on this.
      
      * test/lisp/progmodes/elisp-mode-tests.el (xref--case-insensitive):
      New variable.
      (xref-elisp-test-run, emacs-test-dir): Only downcase if the
      filesystem seems to be case-insensitive.
      4c6c327d
  2. 18 Dec, 2018 1 commit
  3. 15 Dec, 2018 1 commit
  4. 13 Nov, 2018 1 commit
  5. 31 Oct, 2018 1 commit
    • Gemini Lasswell's avatar
      Add regression test for Bug#33014 · c3cf85b1
      Gemini Lasswell authored
      Backport from master.
      * test/src/eval-tests.el:
      (eval-tests-byte-code-being-evaluated-is-protected-from-gc): New test.
      (eval-tests-33014-var): New variable.
      (eval-tests-33014-func, eval-tests-33014-redefine): New functions.
      c3cf85b1
  6. 15 Sep, 2018 1 commit
    • Eli Zaretskii's avatar
      Avoid adverse side effects of fixing bug#21824 · e133b630
      Eli Zaretskii authored
      * test/src/buffer-tests.el
      (overlay-modification-hooks-deleted-overlay): New test.
      
      * src/buffer.c (report_overlay_modification): Don't bypass all
      the overlay-modification hooks; instead, invoke each function
      only if the buffer associated with the overlay is the current
      buffer.  (Bug#30823)
      e133b630
  7. 14 Sep, 2018 1 commit
    • Leo Liu's avatar
      Fix (thing-at-point 'list) regression (Bug#31772) · 1e3b3fa6
      Leo Liu authored
      * lisp/thingatpt.el (thing-at-point-bounds-of-list-at-point): Revert
        to pre 26.1 behavior.  Return whole sexp at point if no enclosing
        list.
        (list-at-point): New optional arg to ignore comments and strings.
      
      * test/lisp/thingatpt-tests.el
        (thing-at-point-bounds-of-list-at-point): Fix and augment tests.
      1e3b3fa6
  8. 31 Aug, 2018 1 commit
    • Michael Albinus's avatar
      Rename thread-alive-p to thread-live-p · ac7936cb
      Michael Albinus authored
      * doc/lispref/threads.texi (Basic Thread Functions): Use thread-live-p.
      
      * etc/NEWS: 'thread-alive-p' has been renamed to 'thread-live-p'.
      
      * src/thread.c (thread_live_p): Rename from thread_alive_p.  Adapt
      all callees.
      (Fthread_live_p): Rename from Fthread_alive_p.
      (syms_of_threads): Make thread-alive-p an alias of thread-live-p.
      
      * test/src/thread-tests.el (all): Replace `thread-alive-p' by
      `thread-live-p'.
      (threads-live): Rename from `threads-alive'.
      ac7936cb
  9. 30 Aug, 2018 1 commit
  10. 25 Aug, 2018 2 commits
    • Sergey Vinokurov's avatar
      Fix detection of freed emacs_values (Bug#32479) · 54fb383a
      Sergey Vinokurov authored
      * src/emacs-module.c (module_free_global_ref): Compare a value to be
      freed with all entries of the list.
      
      * test/data/emacs-module/mod-test.c (Fmod_test_globref_free): New
      function.
      (emacs_module_init): Make it accessible from Lisp.
      * test/src/emacs-module-tests.el (mod-test-globref-free-test): New
      test which uses it.
      54fb383a
    • Noam Postavsky's avatar
      ; Fix out-of-tree build for mod-test.so · 769d0cda
      Noam Postavsky authored
      * test/Makefile.in: Don't look for emacs-module.h in $(srcdir), since
      it is generated.
      769d0cda
  11. 13 Aug, 2018 1 commit
    • Paul Eggert's avatar
      Add comment about floating point test · 34e75c14
      Paul Eggert authored
      * test/src/data-tests.el (data-tests--float-greater-than-fixnums):
      New constant.
      (data-tests-=, data-tests-<, data-tests->, data-tests-<=)
      (data-tests->=, data-tests-min): Use it.
      34e75c14
  12. 12 Aug, 2018 1 commit
    • Michael Albinus's avatar
      Backport fix for Bug#32226 · 18422976
      Michael Albinus authored
      * test/lisp/shadowfile-tests.el: Set Tramp variables for hydra.
      (shadow-test06-literal-groups, shadow-test07-regexp-groups)
      (shadow-test08-shadow-todo, shadow-test09-shadow-copy-files):
      Use `set-visited-file-name' instead of setting the value in
      `buffer-file-name' directly.
      (shadow-test08-shadow-todo, shadow-test09-shadow-copy-files):
      Test for writable temporary directory.  Suppress errors in
      cleanup.  (Bug#32226)
      18422976
  13. 10 Aug, 2018 1 commit
    • Filipp Gunbin's avatar
      Fix bugs in `auth-source-netrc-parse-one'. · 5e42c349
      Filipp Gunbin authored
      * lisp/auth-source.el (auth-source-netrc-parse-one): Ensure that match
        data is not overwritten in `auth-source-netrc-parse-next-interesting'.
        Ensure that blanks are skipped before and after going over comments
        and eols.
      * test/lisp/auth-source-tests.el (auth-source-test-netrc-parse-one): New test.
      
      (cherry picked from commit 60ff8101)
      5e42c349
  14. 09 Aug, 2018 1 commit
    • Eli Zaretskii's avatar
      Fix copying text properties by 'format' · 71c92d89
      Eli Zaretskii authored
      * src/editfns.c (styled_format): Add the spec beginning index
      to the info recorded for each format spec, and use it to
      detect the case that a format spec and its text property end
      where the next spec with another property begins.  (Bug#32404)
      
      * test/src/editfns-tests.el (format-properties): Add tests for
      bug#32404.
      71c92d89
  15. 08 Aug, 2018 1 commit
  16. 04 Aug, 2018 1 commit
    • Juri Linkov's avatar
      New function read-answer (Bug#31782) · cc233365
      Juri Linkov authored
      * lisp/emacs-lisp/map-ynp.el (read-answer-short): New defcustom.
      (read-answer): New function.
      * lisp/subr.el (assoc-delete-all): New function.
      * etc/NEWS: Announce them.
      
      * lisp/dired.el (dired-delete-file): Use read-answer.
      (dired--yes-no-all-quit-help): Remove function.
      (dired-delete-help): Remove defconst.
      
      (backported from master, "New function read-answer (bug#30073)" and
      "Respect non-saved value of `read-short-answer' (Bug#31782)")
      cc233365
  17. 30 Jul, 2018 2 commits
  18. 28 Jul, 2018 1 commit
  19. 27 Jul, 2018 1 commit
    • Noam Postavsky's avatar
      Don't fail to indent-sexp before a full sexp (Bug#31984) · 85791053
      Noam Postavsky authored
      * lisp/emacs-lisp/lisp-mode.el (indent-sexp): Only signal error if the
      initial forward-sexp fails.  Suppress scan-error forn any of the
      forward-sexp calls after that.
      * test/lisp/emacs-lisp/lisp-mode-tests.el (indent-sexp-cant-go): New
      test.
      85791053
  20. 25 Jul, 2018 1 commit
    • Michael Albinus's avatar
      File Shadowing is not available on MS Windows · 2585fcb1
      Michael Albinus authored
      * doc/emacs/files.texi (File Shadowing): File Shadowing is not
      available on MS Windows.
      
      * test/lisp/shadowfile-tests.el (shadow-test00-clusters)
      (shadow-test01-sites, shadow-test02-files)
      (shadow-test03-expand-cluster-in-file-name)
      (shadow-test04-contract-file-name, shadow-test05-file-match)
      (shadow-test06-literal-groups, shadow-test07-regexp-groups)
      (shadow-test08-shadow-todo, shadow-test09-shadow-copy-files):
      Skip under MS Windows.
      2585fcb1
  21. 22 Jul, 2018 1 commit
    • Noam Postavsky's avatar
      Fix indent-sexp of #s(...) (Bug#31984) · 1b4b9659
      Noam Postavsky authored
      * lisp/emacs-lisp/lisp-mode.el (indent-sexp): Look for a sexp that
      ends after the current line.
      * test/lisp/emacs-lisp/lisp-mode-tests.el (indent-sexp-go): New test.
      1b4b9659
  22. 21 Jul, 2018 1 commit
    • Michael Albinus's avatar
      Fix Bug#32226 · e0f33ea3
      Michael Albinus authored
      * lisp/shadowfile.el (shadow-site-name, shadow-name-site):
      Use "[-.[:word:]]+" as hostname regexp.  (Bug#32226)
      
      * test/lisp/shadowfile-tests.el (shadow-test06-literal-groups)
      (shadow-test07-regexp-groups, shadow-test08-shadow-todo)
      (shadow-test09-shadow-copy-files): Skip if needed.
      e0f33ea3
  23. 20 Jul, 2018 1 commit
    • Michael Albinus's avatar
      Fix (Bug#32218). Do not merge with master · 61de292c
      Michael Albinus authored
      * doc/misc/trampver.texi:
      * lisp/net/trampver.el: Change version to "2.3.4.26.2".
      (customize-package-emacs-version-alist): Add Tramp version
      integrated in Emacs 26.2.
      
      * lisp/net/tramp.el (tramp-handle-file-truename):
      * lisp/net/tramp-adb.el (tramp-adb-handle-file-truename):
      * lisp/net/tramp-sh.el (tramp-sh-handle-file-truename): Fix problem
      with trailing slash.  (Bug#32218)
      
      * test/lisp/net/tramp-tests.el (tramp-test21-file-links):
      Remove `tramp--test-emacs27-p' check.
      61de292c
  24. 18 Jul, 2018 2 commits
    • Michael Albinus's avatar
      Adapt shadowfile.el for Tramp (Bug#4526, Bug#4846) · 7a258fa0
      Michael Albinus authored
      * etc/NEWS: Mention changes in shadowfile.el.
      
      * lisp/shadowfile.el (top): Require 'tramp instead of 'ange-ftp.
      (shadow-cluster): New defstruct.
      (shadow-make-cluster, shadow-cluster-name, shadow-cluster-primary)
      (shadow-cluster-regexp, shadow-get-user)
      (shadow-parse-fullname): Remove.
      (shadow-info-file, shadow-todo-file, shadow-system-name)
      (shadow-homedir, shadow-regexp-superquote, shadow-suffix)
      (shadow-set-cluster, shadow-get-cluster, shadow-site-name)
      (shadow-name-site, shadow-site-primary, shadow-site-cluster)
      (shadow-read-site, shadow-parse-name, shadow-make-fullname)
      (shadow-replace-name-component, shadow-local-file)
      (shadow-expand-cluster-in-file-name, shadow-contract-file-name)
      (shadow-same-site, shadow-file-match, shadow-define-cluster)
      (shadow-define-literal-group, shadow-define-regexp-group)
      (shadow-make-group, shadow-shadows-of-1, shadow-read-files)
      (shadow-write-info-file, shadow-write-todo-file)
      (shadow-initialize): Adapt variables and functions.
      
      * test/lisp/shadowfile-tests.el: New file.
      7a258fa0
    • Noam Postavsky's avatar
      Fix auth-source-delete (Bug#26184) · cb50077b
      Noam Postavsky authored
      * lisp/auth-source.el (auth-source-delete): Fix `auth-source-search'
      call.
      * test/lisp/auth-source-tests.el (auth-source-delete): New test.
      cb50077b
  25. 13 Jul, 2018 2 commits
    • Michael Albinus's avatar
      Use consistent function names in thread-tests.el · 17ebb6e5
      Michael Albinus authored
      * test/src/thread-tests.el (threads-call-error, threads-custom)
      (threads-errors, threads-sticky-point, threads-signal-early):
      Rename, using naming convention to prefix with "threads-".
      17ebb6e5
    • Noam Postavsky's avatar
      Match w32 paths in grep sans --null hits (Bug#32051) · 3eb4603b
      Noam Postavsky authored
      * lisp/progmodes/grep.el (grep-regexp-alist): Add an optional part to
      match paths starting with C: (other drive letters).
      * test/lisp/progmodes/compile-tests.el
      (compile-tests--grep-regexp-testcases)
      (compile-tests--grep-regexp-tricky-testcases)
      (compile-test-grep-regexps): New tests.
      (compile--test-error-line): Return `compilation-message'.
      3eb4603b
  26. 12 Jul, 2018 1 commit
    • Michael Albinus's avatar
      Provide feature 'threads · 3744fda5
      Michael Albinus authored
      * src/thread.c (syms_of_threads): Provide feature "threads".
      
      * test/src/thread-tests.el (top): Declare the functions.
      (all): Use (featurep 'threads) check.
      3744fda5
  27. 09 Jul, 2018 3 commits
    • Noam Postavsky's avatar
      Stop using indent-line-to in lisp-indent-line (Bug#32014) · 8f7d35ca
      Noam Postavsky authored
      This is partial revert of "Remove ignored argument from
      lisp-indent-line", because `indent-line-to' doesn't respect field
      boundaries.
      * lisp/emacs-lisp/lisp-mode.el (lisp-indent-line): Use delete-region
      and indent-to instead of `indent-line-to'.
      * test/lisp/emacs-lisp/lisp-mode-tests.el
      (lisp-indent-with-read-only-field): Expect to pass.
      
      Don't merge to master, we will fix indent-line-to there instead.
      8f7d35ca
    • Noam Postavsky's avatar
      ; Test for Bug#32014 · db3f7797
      Noam Postavsky authored
      * test/lisp/emacs-lisp/lisp-mode-tests.el
      (lisp-indent-with-read-only-field): New test.
      db3f7797
    • Michael Albinus's avatar
      Fix Bug#32090 · 917158f8
      Michael Albinus authored
      * lisp/files-x.el (connection-local-normalize-criteria): Do not
      use PROPERTIES anymore.
      (connection-local-get-profiles): Rewrite, in order to accept any
      property as optional.  (Bug#32090)
      (connection-local-set-profiles):
      Adapt ´connection-local-normalize-criteria' call.
      
      * test/lisp/files-x-tests.el
      (files-x-test-connection-local-set-profiles)
      (files-x-test-hack-connection-local-variables-apply): Extend tests.
      917158f8
  28. 08 Jul, 2018 2 commits
  29. 27 Jun, 2018 1 commit
    • Michael Albinus's avatar
      Sync with Tramp 2.3.4. Do not merge with master · 1f503792
      Michael Albinus authored
      * doc/misc/trampver.texi:
      * lisp/net/trampver.el: Change version to "2.3.4".
      
      * lisp/net/tramp-smb.el (tramp-smb-handle-delete-directory):
      Check, that the directory has been removed indeed.
      
      * test/lisp/net/tramp-tests.el (tramp-test21-file-links): Adapt test.
      (tramp--test-emacs25-p): New defun.
      (tramp-test34-vc-registered): Use it.
      1f503792
  30. 20 Jun, 2018 1 commit
    • Noam Postavsky's avatar
      Fix #'fun handling inside `labels' (Bug#31792) · e292c097
      Noam Postavsky authored
      * lisp/emacs-lisp/cl.el (labels): Apply the equivalent of the
      cl-labels change from 2015-01-16 "* lisp/emacs-lisp/cl-macs.el: Fix
      last change".
      * test/lisp/emacs-lisp/cl-tests.el (labels-function-quoting): New
      test.
      * lisp/emacs-lisp/cl-macs.el (cl-flet, cl-labels): Improve docstring,
      link to relevant manual page.
      * doc/misc/cl.texi (Function Bindings): Don't imply that function
      cells of symbols are modified by cl-flet.  Don't claim that cl-flet or
      cl-labels affect references of the form (quote FUNC).
      e292c097