summaryrefslogtreecommitdiff
path: root/test/lisp
Commit message (Collapse)AuthorAgeFilesLines
...
* | Fix off-by-one error in decoded-time-add (with months)Lars Ingebrigtsen2020-08-211-0/+20
| | | | | | | | | | * lisp/calendar/time-date.el (decoded-time-add): Fix month addition, which was off-by-one.
* | ; Minor simplification of two recent changesBasil L. Contovounesios2020-08-191-2/+1
| |
* | Ensure `bibtex-set-dialect' is executed in bibtex buffersGrégoire Jadi2020-08-191-0/+57
| | | | | | | | | | * lisp/textmodes/bibtex.el (bibtex-mode): Call `bibtex-set-dialect'. * test/automated/bibtex-tests.el: Add regression tests (bug#21764).
* | Distinguish errors in bytecomp-testsMattias Engdegård2020-08-191-21/+21
| | | | | | | | | | | | | | | | | | * test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-check-1) (test-byte-opt-arithmetic, bytecomp-lexbind-check-1) (bytecomp-lexbind-explain-1): When comparing interpreted with compiled results, don't consider all errors to be equal; take the error type into account. (The error arguments may differ, but there may be good reasons for that.)
* | Make bytecomp-tests re-runnableMattias Engdegård2020-08-191-0/+2
| | | | | | | | | | | | * test/lisp/emacs-lisp/bytecomp-tests.el (test-byte-comp-macro-expand-lexical-override): Remove functions before testing so that the test can be run twice without failing.
* | srecode-utest-project test should now work on Hydra, hopefullyLars Ingebrigtsen2020-08-181-1/+0
| |
* | Fix a big in the srecore test setupLars Ingebrigtsen2020-08-181-0/+4
| | | | | | | | | | | | | | | | * test/lisp/cedet/srecode-utest-template.el (srecode-utest-project): Set the current directory in the project so that we'll find it later (bug#42533). The in-project directory is /tmp, which is not actually what it is on many machines that have the temporary directory somewhere else.
* | Fix thinko in setting url-portspecSteven Allen2020-08-151-0/+7
| | | | | | | | | | * lisp/url/url-expand.el (url-default-expander): Set `url-portspec' (bug#42869).
* | Add support for ffap guessing at file names containing spacesJari Aalto2020-08-151-0/+40
| | | | | | | | | | | | | | | | * lisp/ffap.el (ffap-file-name-with-spaces): New variable (bug#8439). (ffap-search-backward-file-end, ffap-search-forward-file-end) (ffap-dir-separator-near-point): New functions. (ffap-string-at-point): Use the variable and the new functions to guess at files containing strings.
* | * lisp/progmodes/perl-mode.el (perl--syntax-exp-intro-regexp): Bug#42168Stefan Monnier2020-08-141-12/+13
| | | | | | | | | | | | | | * test/lisp/progmodes/cperl-mode-tests.el: Adjust for `perl-mode`. (cperl-test-ppss): Rename from `cperl-test-face` and change return value. (cperl-mode-test-bug-42168): Test the `syntax-ppss` state rather than the font-lock faces, so it works for both `perl-mode` and `cperl-mode`.
* | Fix flow filling for flowing multiple flowed linesFerdinand Pieper2020-08-141-1/+2
| | | | | | | | | | | | | | | | * lisp/mail/flow-fill.el (fill-flowed): Loop until all flowed lines are collected. * test/lisp/mail/flow-fill-tests.el (fill-flow-tests-fill-flowed-decode): Also test for multiple flowed lines (bug#42855).
* | Add test for Bug#41761Stefan Kangas2020-08-141-0/+7
| | | | | | | | | | * test/lisp/simple-tests.el (simple-test-count-words-bug-41761): New test.
* | cperl-mode: Highlight '{$a++ / $b}' correctlyHarald Jörg2020-08-141-0/+50
| | | | | | | | | | | | | | * lisp/progmodes/cperl-mode.el (cperl-find-pods-heres): Recognize {$a++ / $b} correctly as division. (Bug#42168) * test/lisp/progmodes/cperl-mode-tests.el: New file with test verifying the fix.
* | Add tests for cl-{incf,decf}Stefan Kangas2020-08-131-0/+16
| | | | | | | | | | * test/lisp/emacs-lisp/cl-lib-tests.el (cl-lib-test-incf) (cl-lib-test-decf): New tests.
* | Update a paragraphs testGlenn Morris2020-08-131-2/+2
| | | | | | | | | | * test/lisp/textmodes/paragraphs-tests.el (paragraphs-tests-mark-paragraph): Update for recent change.
* | Update a compile testGlenn Morris2020-08-131-2/+2
| | | | | | | | | | * test/lisp/progmodes/compile-tests.el (compile-test-error-regexps): Update info/warning count for recent compile.el change.
* | mml-secure-en-decrypt-sign-2 is unstablePaul Eggert2020-08-121-0/+1
| | | | | | | | | | * test/lisp/gnus/mml-sec-tests.el (mml-secure-en-decrypt-sign-2): Mark as unstable (Bug#42720).
* | Do not truncate /foo//bar to /bar/ in parse-colon-pathTino Calancha2020-08-121-1/+4
| | | | | | | | | | * lisp/files.el (parse-colon-path): Use substitute-env-vars and expand-file-name instead of substitute-in-file-name (Bug#21454).
* | Fix (end-of-defun N) for N >= 2Noam Postavsky2020-08-111-0/+55
| | | | | | | | | | | | | | * lisp/emacs-lisp/lisp.el (end-of-defun): Only skip to next line when after end of defun when ARG is 1 or less. * test/lisp/emacs-lisp/lisp-tests.el (end-of-defun-twice): New test (bug#24427).
* | Only search for a variable when instructedAlexander Gramiak2020-08-111-0/+11
| | | | | | | | | | | | * lisp/help-fns.el (find-lisp-object-file-name): Check for 'defvar argument before searching for an internal variable (Bug#24697). * test/lisp/help-fns-tests.el: New tests.
* | Mark further mml-sec-tests as unstableLars Ingebrigtsen2020-08-111-0/+2
| | | | | | | | | | | | * test/lisp/gnus/mml-sec-tests.el (mml-secure-en-decrypt-sign-3): (mml-secure-en-decrypt-sign-1-3-double): These tests are unstable on Ubuntu (bug#42803).
* | Add ability to mark/unmark/delete all bookmarksMatthew White2020-08-092-0/+235
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Thanks to Karl Fogel for pre-commit review. * lisp/bookmark.el (bookmark-delete-all): New function to delete all bookmarks. (bookmark-bmenu-mark-all): New function to mark all bookmarks in the bookmark list buffer. (bookmark-bmenu-unmark-all): New function to unmark all bookmarks in the bookmark list buffer. (bookmark-bmenu-delete-all): New function to mark for deletion all bookmarks in the bookmark list buffer. (bookmark-map): Map "D" to `bookmark-delete-all'. (bookmark-bmenu-mode-map): New mappping for "M" to `bookmark-bmenu-mark-all'. (bookmark-bmenu-mode-map): New mappping for "U" to `bookmark-bmenu-unmark-all'. (bookmark-bmenu-mode-map): New mappping for "D" to `bookmark-bmenu-delete-all'. (bookmark-bmenu-mark-all): New bookmark menu to `bookmark-delete-all'. (easy-menu-define): New bookmark menu to `bookmark-bmenu-mark-all'. (easy-menu-define): New bookmark menu to `bookmark-bmenu-unmark-all'. (easy-menu-define): New bookmark menu to `bookmark-bmenu-delete-all'. (bookmark-bmenu-select): Update docstring to include a reference to `bookmark-bmenu-mark-all'. (bookmark-bmenu-mode): Update docstring. Add/Update description: `bookmark-bmenu-mark-all', `bookmark-bmenu-delete-all', `bookmark-bmenu-execute-deletions', and `bookmark-bmenu-unmark-all'. * test/lisp/bookmark-resources/test-list.bmk: New bookmark file to test a list of bookmarks. * test/lisp/bookmark-tests.el (bookmark-tests-bookmark-file-list): New reference to the bookmark file used for testing a list of bookmarks. (bookmark-tests-bookmark-list-0, bookmark-tests-bookmark-list-1, bookmark-tests-bookmark-list-2): New cached values for testing a list of bookmark. (bookmark-tests-cache-timestamp-list): New variable to set `bookmark-bookmarks-timestamp'. (with-bookmark-test-list): New macro environment to test a list of bookmarks. (with-bookmark-test-file-list): New macro environment to test a list of bookmarks with example.txt. (with-bookmark-bmenu-test-list): New macro environment to test functions about a list of bookmarks from `bookmark-bmenu-list'. (bookmark-tests-all-names-list, bookmark-tests-get-bookmark-list, bookmark-tests-get-bookmark-record-list): New functions to test the records of the list of bookmarks. (bookmark-tests-make-record-list): New function to test the creation of a record from example.txt with a list of bookmarks loaded. (bookmark-tests-delete-all): New function to test `bookmark-delete-all'. (bookmark-test-bmenu-any-marks-list): New function to test `bookmark-bmenu-any-marks' with a list of bookmarks. (bookmark-test-bmenu-mark-all): New function to test `bookmark-bmenu-mark-all'. (bookmark-test-bmenu-unmark-all): New function to test `bookmark-bmenu-unmark-all'. (bookmark-test-bmenu-delete-all): New function to test `bookmark-bmenu-delete-all'.
* | Add the new library hierarchy.elDamien Cassou2020-08-091-0/+556
| | | | | | | | * lisp/emacs-lisp/hierarchy.el: New file.
* | Mark an mml-sec test as unstableLars Ingebrigtsen2020-08-081-0/+1
| | | | | | | | | | | | | | * test/lisp/gnus/mml-sec-tests.el (mml-secure-en-decrypt-sign-1-1-single): Mark the test as unstable (bug#42720). It sometimes fails on some systems (Fedora?) when run with "-j5", so there may be a race condition in the code somewhere.
* | Use lexical-binding in saveplace.el and add testsStefan Kangas2020-08-082-0/+107
| | | | | | | | | | | | | | * lisp/saveplace.el: Use lexical-binding. (save-place-to-alist): Doc fix. * test/lisp/saveplace-tests.el: * test/lisp/saveplace-resources/saveplace: New files.
* | Use lexical-binding in browse-url.el and add testsSimen Heggestøyl2020-08-071-0/+119
| | | | | | | | | | | | | | | | | | | | * lisp/net/browse-url.el: Turn on lexical-binding. (browse-url--mailto, browse-url--man, browse-url--browser): Use imperative form in docstrings. (browse-url-delete-temp-file): Turn comment into a proper docstring. * test/lisp/net/browse-url-tests.el: New file with tests for browse-url.el.
* | Fix byte-compilation of (+ -0.0) (bug#42597)Mattias Engdegård2020-08-071-0/+5
| | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/bytecomp.el (byte-compile-associative): Translate numerical identity expressions, such as (+ x) and (* x), into (* x 1) since the previous translation (+ x 0) gets it wrong for x = -0.0. * test/lisp/emacs-lisp/bytecomp-tests.el (byte-opt-testsuite-arith-data): Add test cases.
* | Mark two cconv tests as :unstableLars Ingebrigtsen2020-08-061-0/+2
| | | | | | | | | | | | | | * test/lisp/emacs-lisp/cconv-tests.el (cconv-tests-cl-iter-defun-:documentation): Mark as unstable (bug#42723). (cconv-tests-iter-defun-:documentation): Ditto.
* | Skip epg tests if gpg isn't installedLars Ingebrigtsen2020-08-051-0/+25
| |
* | Split sometimes-failing test into three tests to ease debuggingLars Ingebrigtsen2020-08-051-6/+16
| |
* | Make the erc /ignore command prompt for a timeoutLars Ingebrigtsen2020-08-051-0/+47
| | | | | | | | | | | | | | * lisp/erc/erc.el (erc--unignore-user): Separate into own function (bug#40137). (erc-cmd-IGNORE): Ask if the user wants a timeout. (erc--read-time-period): New function.
* | Add new function decoded-time-periodLars Ingebrigtsen2020-08-051-0/+14
| | | | | | | | * lisp/calendar/time-date.el (decoded-time-period): New function.
* | Tweak mml-sec test that sometimes failsLars Ingebrigtsen2020-08-041-1/+1
| | | | | | | | | | | | | | | | * test/lisp/gnus/mml-sec-tests.el (mml-first-secure-en-decrypt-sign-1): mml-secure-en-decrypt-sign-1 fail sometimes, on some machines, unless it's the first test. I'm guessing there's a race condition somewhere in the test, but put it first now to avoid build reports.
* | Add tests for mml-sec.elJens Lechtenbörger2020-08-041-0/+859
| |
* | Add test file lost when merged from Gnus in 2016Lars Ingebrigtsen2020-08-041-0/+76
| |
* | Add new cconv-tests (Bug#28557)Stefan Kangas2020-08-041-0/+158
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These tests are all written by Gemini Lasswell <gazally@runbox.com>. * test/lisp/emacs-lisp/cconv-tests.el (top-level): Add two commented out tests which the byte-compiler can't handle. (cconv-tests-lambda-:documentation) (cconv-tests-pcase-lambda-:documentation) (cconv-tests-defun-:documentation) (cconv-tests-cl-defun-:documentation) (cconv-tests-function-:documentation) (cconv-tests-cl-defgeneric-literal-:documentation) (cconv-tests-defsubst-:documentation) (cconv-tests-cl-defsubst-:documentation): New tests. (cconv-tests-cl-iter-defun-:documentation) (cconv-tests-iter-defun-:documentation) (cconv-tests-iter-lambda-:documentation) (cconv-tests-cl-function-:documentation) (cconv-tests-cl-defgeneric-:documentation): New failing tests.
* | Fix previous network stream testLars Ingebrigtsen2020-08-041-2/+2
| | | | | | | | | | | | * test/lisp/net/network-stream-tests.el (network-test--resolve-system-name): There's only one ipv6 localhost address.
* | Make a network-stream test more robustLars Ingebrigtsen2020-08-041-0/+13
| | | | | | | | | | | | | | * test/lisp/net/network-stream-tests.el (network-test--resolve-system-name): New function. (echo-server-with-dns): Skip test if (system-name) doesn't look like it's going to resolve (bug#42535).
* | Fix debugging code checked in from wdired-testsLars Ingebrigtsen2020-08-041-1/+1
| |
* | Fix svn tests on MacosLars Ingebrigtsen2020-08-041-1/+2
| | | | | | | | | | | | | | * test/lisp/vc/vc-tests.el (vc-test--svn-enabled): Macos machines may have a dummy svn program that helpfully just outputs "There's no svn program here", so also test for the svnadmin program (bug#42536).
* | Fix wdired test for MacosLars Ingebrigtsen2020-08-041-1/+2
| | | | | | | | | | * test/lisp/wdired-tests.el (wdired-test-bug34915): Macos adds "@" to the end of symlinks (bug#42537).
* | Add Tramp support of direct asynchronous process invocationMichael Albinus2020-08-041-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/misc/tramp.texi (Predefined connection information): Add "direct-async-process". (Remote processes): New subsection "Improving performance of asynchronous remote processes". * lisp/net/tramp-adb.el (tramp-methods) <adb>: Add `tramp-login-program' and `tramp-login-args'. (tramp-adb-handle-make-process): Use `tramp-handle-make-process'. (tramp-adb-maybe-open-connection): Add "set +o vi +o emacs" command. * lisp/net/tramp-sh.el (tramp-sh-handle-make-process): Use `tramp-handle-make-process'. (tramp-sh-file-name-handler-p, tramp-multi-hop-p): New defuns. (tramp-compute-multi-hops): Use `tramp-multi-hop-p'. * lisp/net/tramp.el (tramp-dissect-file-name, tramp-dissect-hop-name): Use `tramp-multi-hop-p'. (tramp-handle-insert-file-contents, tramp-local-host-p): Use `tramp-sh-file-name-handler-p'. (tramp-handle-make-process): New defun. * test/README: Add another example how to use SELECTOR. * test/lisp/net/tramp-tests.el (tramp-test03-file-name-method-rules): Adapt test. (tramp--test-sh-p): Use `tramp-sh-file-name-handler-p'.
* | Avoid duplicate Edebug symbols when backtracking (Bug#42701)Philipp Stephani2020-08-031-0/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When Edebug backtracks, it nevertheless generates definitions for the non-matching branches, see Bug#41988 and Bug#42701. This should be fixed eventually (probably by deferring the definition until a branch is known to match), but for now add a band-aid to avoid these duplicate symbols, at least for anonymous forms. * lisp/emacs-lisp/edebug.el (edebug-make-enter-wrapper): Regenerate anonymous names. * test/lisp/emacs-lisp/edebug-tests.el (edebug-tests-duplicate-symbol-backtrack): New regression test.
* | Merge from origin/emacs-27Glenn Morris2020-08-031-0/+4
|\| | | | | | | | | | | | | | | | | | | | | | | 8576297b2a (origin/emacs-27) ; lisp/so-long.el: Prevent potential err... 986c12b20f ; * lisp/so-long.el: Byte-compilation bug fix 19f8f36f11 ; * lisp/so-long.el (so-long-variable-overrides): Improve doc 83bc4ad369 ; * so-long.el: Documentation and spelling 72c5f71cd4 Avoid segfaults if XIM is set but not xim_styles f54ddb0198 (emacs-27) ; * test/lisp/emacs-lisp/generator-tests.el: St... # Conflicts: # test/lisp/emacs-lisp/generator-tests.el
| * ; * test/lisp/emacs-lisp/generator-tests.el: Style fixes.Philipp Stephani2020-07-311-2/+7
| |
* | Improve Edebug symbols for inlined secondary methods (Bug#42671)Philipp Stephani2020-08-021-13/+15
| | | | | | | | | | | | | | | | * lisp/emacs-lisp/cl-generic.el (cl-defgeneric): Include qualifiers in Edebug symbol name. * test/lisp/emacs-lisp/cl-generic-tests.el (cl-defgeneric/edebug/method): Adapt unit test.
* | Add a workaround for Bug#42672Philipp Stephani2020-08-021-0/+36
| | | | | | | | | | | | | | | | * lisp/emacs-lisp/cl-generic.el (cl-defgeneric): Work around Bug#42672 by uniquifying inline method names. * test/lisp/emacs-lisp/cl-generic-tests.el (cl-defgeneric/edebug/method): New regression test.
* | ; * test/lisp/emacs-lisp/edebug-tests.el (edebug-tests-cl-flet): Fix typo.Philipp Stephani2020-08-021-1/+1
| |
* | Avoid duplicate Edebug symbols when using ‘cl-flet’ (Bug#41989)Philipp Stephani2020-08-021-0/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/edebug.el (edebug-match-:unique): Add a new ‘:unique’ specifier to generate unique names. * lisp/emacs-lisp/cl-macs.el (cl-flet): Use it. This requires inlining the ‘cl-defun’ specification. * test/lisp/emacs-lisp/edebug-tests.el (edebug-tests-cl-flet): New unit test. * doc/lispref/edebug.texi (Specification List): Document new ‘:unique’ construct.
* | Don’t generate duplicate symbols for secondary CL methods (Bug#42671)Philipp Stephani2020-08-021-0/+22
| | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/edebug.el (edebug-match-cl-generic-method-qualifier): Add matcher for ‘cl-defmethod’ qualifier. * lisp/emacs-lisp/cl-generic.el (cl-defmethod): Use it. * test/lisp/emacs-lisp/edebug-tests.el (edebug-cl-defmethod-qualifier): New unit test.