summaryrefslogtreecommitdiff
path: root/test/lisp
Commit message (Collapse)AuthorAgeFilesLines
* Adapt tramp-testsMichael Albinus2020-08-271-11/+8
| | | | | * test/lisp/net/tramp-tests.el (tramp-test05-expand-file-name) (tramp-test05-expand-file-name-relative): Adapt tests.
* Prevent spurious tabs by RET in todo-edit-mode (bug#43068)Stephen Berman2020-08-272-7/+56
| | | | | | | | | | | | | | | | | | | | * lisp/calendar/todo-mode.el (todo-key-bindings-t) (todo-edit-mode-map): Remove remapping of `newline' to `newline-and-indent'. (todo-modes-set-1): Remove local setting of `indent-line-function'. (todo-edit-mode): Locally set `indent-line-function' to `todo-indent'. * test/lisp/calendar/todo-mode-tests.el (todo-test-move-item05): Prevent interactive test failure. (Until the addition of testcat4 to todo-test-1.todo, the test passed by chance, since testcat3 is empty and has no archived items.) (todo-test-edit-item-date-month): Refer to bug number. (todo-test-multiline-item-indentation-1) (todo-test-multiline-item-indentation-2) (todo-test-multiline-item-indentation-3): New tests. * test/lisp/calendar/todo-mode-resources/todo-test-1.todo: Remove spurious tabs from testcat1.
* ; Fix license statements.Stefan Kangas2020-08-2719-57/+91
|
* Fix expand-file-name symlink-to-dir bugPaul Eggert2020-08-261-7/+4
| | | | | | | | | | | | | | | Problem reported by Yegor Timoshenko (Bug#26911), and I ran into it myself recently in normal-top-level. * doc/lispref/files.texi (File Name Expansion), etc/NEWS: Mention this. * src/fileio.c (Fexpand_file_name): Expand "/a/b/." to "/a/b/" not "/a/b", to avoid misinterpreting a symlink "/a/b". Similarly, expand "/a/b/c/.." to "/a/b/" not "/a/b". * test/lisp/net/tramp-tests.el (tramp-test05-expand-file-name): Adjust to match new behavior. (tramp-test05-expand-file-name-relative): This test now succeeds, at least on Fedora 31. * test/src/fileio-tests.el: (fileio-tests--expand-file-name-trailing-slash) New test.
* Fix lexical misunderstandings in gnus-icalendar-tests.el (bug#39782)Mattias Engdegård2020-08-261-14/+6
| | | | | | | | | | | * test/lisp/gnus/gnus-icalendar-tests.el: (icalendar-tests--get-ical-event): Remove unused function accidentally copy-pasted from icalendar-tests.el. (gnus-icalendar-parse, gnus-icalendary-byday): Remove unintended initial newlines. Duplicate comma-escaping backslashes so that they have intended effects, conforming to RFC 5545. Remove ineffective comma-escaping backslashes where not intended.
* Fix gpg2-related test failures on RHEL 7.8Paul Eggert2020-08-251-3/+4
| | | | | | | | | * test/lisp/gnus/mml-sec-tests.el (test-conf) (mml-secure-en-decrypt-passphrase-no-cache-openpgp-todo) (mml-secure-run-tests-with-gpg2): Use epg-find-configuration instead of the obsolescent epg-configuration. This fixes test failures on RHEL 7.8, where ‘gpg’ and ‘gpg2’ are both 2.0.22.
* mml-secure-en-decrypt-sign-1-2-double is unstablePaul Eggert2020-08-251-0/+1
| | | | | * test/lisp/gnus/mml-sec-tests.el: (mml-secure-en-decrypt-sign-1-2-double): Mark this as unstable.
* Merge from origin/emacs-27Michael Albinus2020-08-251-4/+12
|\ | | | | | | | | | | | | | | | | | | 44104a607a Fix error in GMP test e26e63444d Add Feature testing for Windows binaries 4e2caef384 ; * src/character.c (str_as_multibyte): Fix the commentary. d3a4ce8420 Revert "; * etc/NEWS: Remove temporary note on documentati... 16f00e36dc * admin/admin.el (set-version): Trap yet another NEWS error. 121be3e118 ; * etc/NEWS: Remove temporary note on documentation. (Bu... 5fcb97dabd Fix cond jump table compilation (bug#42919)
| * Fix cond jump table compilation (bug#42919)Mattias Engdegård2020-08-191-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This bug affected compilation of (cond ((member '(some list) variable) ...) ...) While equal is symmetric, member is not; in the latter case the arguments must be a variable and a constant list, in that order. Reported by Ikumi Keita. * lisp/emacs-lisp/bytecomp.el (byte-compile--cond-switch-prefix): Don't treat equality and member predicates in the same way; only the former are symmetric in their arguments. * test/lisp/emacs-lisp/bytecomp-tests.el (byte-opt-testsuite-arith-data): Add test cases.
* | Add sanity check in tramp-sh-get-signal-stringsMichael Albinus2020-08-241-14/+14
| | | | | | | | | | | | | | | | | | | | * lisp/net/tramp-sh.el (tramp-sh-get-signal-strings): Add sanity check. * test/lisp/net/tramp-tests.el (tramp-test28-process-file): Remove instrumentation. (tramp--test--deftest-direct-async-process): Adapt docstring. (tramp--test-windows-nt-p, tramp--test-windows-nt-and-batch-p): Rename from `tramp--test-windows-nt', `tramp--test-windows-nt-and-batch'.
* | Rework direct async processes in TrampMichael Albinus2020-08-231-62/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/misc/tramp.texi (Remote processes): Precise restrictions for direct async processes. * lisp/net/tramp.el (tramp-methods): Adapt docstring. (tramp-direct-async-process-p): Make it more precise. (tramp-handle-make-process): Rewrite, based on `make-process'. * test/lisp/net/tramp-tests.el (tramp-test-temporary-file-directory): Add `tramp-direct-async-args` for mock method. (tramp-test29-start-file-process, tramp-test30-make-process): Use weaker regexp checking "foo". (tramp-test30-make-process): Do not check stderr for direct async processes. (tramp--test--deftest-direct-async-process): New defmacro. (tramp-test29-start-file-process-direct-async) (tramp-test30-make-process-direct-async): New tests.
* | ; * test/lisp/net/tramp-tests.el (tramp-test28-process-file): Instrument test.Michael Albinus2020-08-231-1/+2
| |
* | Bind the time zone so that the tests work everywhereLars Ingebrigtsen2020-08-221-16/+29
| |
* | ; Copyright fixGlenn Morris2020-08-221-4/+6
| | | | | | | | Author has assignment
* | gnus-icalendar does not understand multiple repeating daysJan Tatarik2020-08-221-0/+229
| | | | | | | | | | | | | | | | * lisp/gnus/gnus-icalendar.el (gnus-icalendar-event:recurring-days): New function (bug#39782). (gnus-icalendar-event:org-timestamp): New function. (gnus-icalendar--find-day): Use them. (gnus-icalendar-event--org-timestamp): Ditto.
* | Bind mwheel-scroll on more parts of frame's displayStefan Kangas2020-08-221-0/+38
| | | | | | | | | | | | | | | | * lisp/mwheel.el (mouse-wheel-mode): Bind unmodified 'mwheel-scroll' on scroll bars, fringes, margins, header and mode line. (Bug#5557) (mouse-wheel--create-scroll-keys): New helper function for 'mouse-wheel-mode'. * test/lisp/mwheel-tests.el: New file.
* | Fix several todo-mode.el editing bugs (bug#42976)Stephen Berman2020-08-212-1/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/calendar/todo-mode.el (todo-insert-item--basic): Ensure the target todo file is in todo-mode. (todo-edit-item--text): When editing a done item comment, prevent clobbering match data on finishing the edit. (todo-edit-item--header): Ensure that decrementing the month of the date header works for intervals greater than a year, and when incrementing or decrementing the month crosses one or more years, adjust the year as needed. (todo-read-category): If we're outside of todo-mode and there is a current todo file, use it; otherwise, use the default todo file. * test/lisp/calendar/todo-mode-tests.el (todo-test-edit-item-date-month): New test. * test/lisp/calendar/todo-mode-resources/todo-test-1.todo: Modify to accommodate new test.
* | Fix return value for CCL opcode lookup-integerPip Cet2020-08-211-0/+14
| | | | | | | | | | | | | | * src/ccl.c (ccl_driver): Fix LookupIntConstTbl return value. * test/lisp/international/ccl-tests.el (ccl-hash-table): Add test. * lisp/international/ccl.el (ccl-embed-data): Don't pass non-numbers to `ccl-fixnum' (bug#36740).
* | 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.