aboutsummaryrefslogtreecommitdiffstats
path: root/test/lisp (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* | Suppress test failure on hydra.nixos.orgGlenn Morris2020-05-121-1/+2
| | | | | | | | | | * test/lisp/net/tramp-tests.el (tramp-test28-process-file): Attempt to suppress hydra oddity.
* | Use lexical-binding in glasses.el and add testsSimen Heggestøyl2020-05-101-0/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/glasses.el: Use lexical-binding. (glasses-separator, glasses-original-separator, glasses-face) (glasses-separate-parentheses-p) (glasses-separate-parentheses-exceptions) (glasses-separate-capital-groups, glasses-uncapitalize-p) (glasses-uncapitalize-regexp, glasses-convert-on-write-p): Remove redundant :group args. * test/lisp/progmodes/glasses-tests.el: New file with tests for glasses.el.
* | Use lexical-binding in help-mode.el and add testsSimen Heggestøyl2020-05-091-0/+169
| | | | | | | | | | | | | | | | | | | | | | * lisp/help-mode.el: Use lexical-binding. (help-mode-map, help-mode-menu, help-mode-setup) (help-mode-finish): Make spelling of "Help mode" consistent throughout the doc strings (also making it consistent with the spelling of "Help mode" used in the Elisp manual). (help-do-xref): Re-indent to make the else-branch easier to see. * test/lisp/help-mode-tests.el: New file with tests for help-mode.el.
* | Add new filter command to Package Menu (Bug#39903)Pieter van Oostrum2020-05-091-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/package.el (package-menu-filter-marked): New filter command. * test/lisp/emacs-lisp/package-tests.el (package-test-list-filter-marked): New test. (package-menu-mode-menu): (package-menu-mode-map): Update menu to include new filter command. * doc/emacs/package.texi (Package Menu): Document the new command. * etc/NEWS: Announce the new command.
* | cc-mode: extend regexp used by ‘c-or-c++-mode’Michal Nazarewicz2020-05-091-2/+10
| | | | | | | | | | | | | | | | | | | | * lisp/progmodes/cc-mode (c-or-c++-mode--regexp): Expand the regexp to match some more C++-only constructs and recognise a few more standard C++ header files. Also make sure identifiers start with non-digit. (c-or-c++-mode): Add ‘(interactive)’ declaration. * test/lisp/progmodes/cc-mode-tests.el (c-or-c++-mode): Add test case for the newly recognised constructs.
* | cc-mode: add ‘c-lineup-ternary-bodies’ (bug#41061)Michal Nazarewicz2020-05-091-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce ‘c-lineup-ternary-bodies’ function which, when used as a c lineup function, aligns question mark and colon of a ternary operator. For example: return arg % 2 == 0 ? arg / 2 : (3 * arg + 1); * lisp/progmodes/cc-align.el (c-lineup-ternary-bodies): New function. * doc/misc/cc-mode.texi (Operator Line-Up Functions): Document the new function. * test/lisp/progmodes/cc-mode-tests.el (c-lineup-ternary-bodies): New test case.
* | Don't increment array index in cl-loop twice (Bug#40727)Noam Postavsky2020-05-071-0/+3
| | | | | | | | | | | | | | | | * lisp/emacs-lisp/cl-macs.el (cl--parse-loop-clause): Put the temp-idx increment in cl--loop-body, leaving just the side-effect free testing of the index for both cl--loop-body and cl--loop-conditions. * test/lisp/emacs-lisp/cl-macs-tests.el (cl-macs-loop-and-arrays): Extend test to cover this case.
* | Revert "cl-loop: Calculate the array length just once"Noam Postavsky2020-05-071-0/+6
| | | | | | | | | | | | | | | | It fails when using 'and' (parallel bindings) for arrays (Bug#40727). * lisp/emacs-lisp/cl-macs.el (cl--parse-loop-clause): Revert to recomputing array length. * test/lisp/emacs-lisp/cl-macs-tests.el (cl-macs-loop-and-arrays): New test.
* | Handle signals in Tramp's process-fileMichael Albinus2020-05-071-0/+2
| | | | | | | | | | | | | | * lisp/net/tramp-adb.el (tramp-adb-handle-process-file): * lisp/net/tramp-sh.el (tramp-sh-handle-process-file): Handle signals. * test/lisp/net/tramp-tests.el (tramp-test28-process-file): Adapt test.
* | process-file in Tramp must return exit code (Bug#41099)Michael Albinus2020-05-061-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp-adb.el (tramp-adb-send-command-and-check): Add optional argument EXIT-STATUS. (tramp-adb-handle-process-file): Use it. * lisp/net/tramp-sh.el (tramp-send-command-and-check): Add optional argument EXIT-STATUS. (tramp-sh-handle-process-file): Use it. (Bug#41099) * test/lisp/net/tramp-tests.el (tramp-test28-process-file): Adapt test.
* | Adapt Tramp testsMichael Albinus2020-05-041-56/+62
| | | | | | | | | | * test/lisp/net/tramp-tests.el (tramp-test33-environment-variables): Adapt test.
* | Use lexical-binding in check-declare.el and add testsSimen Heggestøyl2020-05-031-0/+116
| | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/check-declare.el: Use lexical-binding. (check-declare-warn): Silence byte compiler warning about unused lexical argument. * test/lisp/emacs-lisp/check-declare-tests.el: New file with tests for check-declare.el.
* | Use lexical-binding in most remaining testsStefan Kangas2020-05-0116-25/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * test/lisp/comint-tests.el: * test/lisp/custom-resources/custom--test-theme.el: * test/lisp/dabbrev-tests.el: * test/lisp/emulation/viper-tests.el: * test/lisp/erc/erc-track-tests.el: * test/lisp/gnus/gnus-tests.el: * test/lisp/imenu-tests.el: * test/lisp/info-xref-tests.el: * test/lisp/jit-lock-tests.el: * test/lisp/json-tests.el: * test/lisp/man-tests.el: * test/lisp/replace-tests.el: * test/lisp/shadowfile-tests.el: * test/lisp/subr-tests.el: * test/lisp/thingatpt-tests.el: * test/lisp/xml-tests.el: Use lexical-binding. * test/lisp/man-tests.el (man-tests-filter-strings): * test/lisp/shadowfile-tests.el (shadow-test00-clusters) (shadow-test01-sites, shadow-test06-literal-groups) (shadow-test07-regexp-groups, shadow-test09-shadow-copy-files): Silence byte-compiler.
* | Use lexical-binding in most remaining emacs-lisp testsStefan Kangas2020-04-3015-47/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * test/lisp/emacs-lisp/edebug-resources/edebug-test-code.el: * test/lisp/emacs-lisp/eieio-tests/eieio-test-methodinvoke.el: * test/lisp/emacs-lisp/eieio-tests/eieio-test-persist.el: * test/lisp/emacs-lisp/faceup-resources/faceup-test-mode.el: * test/lisp/emacs-lisp/faceup-resources/faceup-test-this-file-directory.el: * test/lisp/emacs-lisp/faceup-tests/faceup-test-basics.el: * test/lisp/emacs-lisp/faceup-tests/faceup-test-files.el: * test/lisp/emacs-lisp/package-resources/newer-versions/new-pkg-1.0.el: * test/lisp/emacs-lisp/package-resources/newer-versions/simple-single-1.4.el: * test/lisp/emacs-lisp/package-resources/simple-depend-1.0.el: * test/lisp/emacs-lisp/package-resources/simple-single-1.3.el: * test/lisp/emacs-lisp/package-resources/simple-two-depend-1.1.el: * test/lisp/emacs-lisp/package-tests.el: * test/lisp/emacs-lisp/shadow-resources/p1/foo.el: * test/lisp/emacs-lisp/shadow-resources/p2/FOO.el: Use lexical-binding. * test/lisp/emacs-lisp/eieio-tests/eieio-test-methodinvoke.el (eitest-F, eitest-H, eitest-I, constructor, make-instance) (initialize-instance, CNM-M): * test/lisp/emacs-lisp/package-tests.el (with-package-test) (package-test-update-archives, package-test-signed): Silence byte-compiler.
* | ; Fix last addition to dom-tests.elBasil L. Contovounesios2020-04-301-1/+1
| | | | | | | | | | * test/lisp/dom-tests.el (dom-tests-remove-attribute): Make test idempotent by avoiding destructive modification of constant literal.
* | Use lexical-binding in qp.el and add testsStefan Kangas2020-04-301-0/+74
| | | | | | | | | | * test/lisp/mail/qp-tests.el: New file. * lisp/mail/qp.el: Use lexical-binding.
* | Add new function dom-remove-attributeLars Ingebrigtsen2020-04-301-0/+7
| | | | | | | | | | | | * doc/lispref/text.texi (Document Object Model): Document it. * lisp/dom.el (dom-remove-attribute): Add new function.
* | Test iso8601-parse-zone vs format-time-string %zStephen Gildea2020-04-291-0/+31
| | | | | | | | | | | | | | * test/lisp/calendar/iso8601-tests.el (iso8601-format-time-string-zone-round-trip): New unit test that format-time-string %z and iso8601-parse-zone are inverses. (test-iso8601-format-time-string-zone-round-trip): New helper function.
* | Merge from origin/emacs-27Glenn Morris2020-04-291-5/+6
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2f9bfaef21 (origin/emacs-27) ; Fix last change 520fd3e728 * lisp/env.el (substitute-env-vars): Doc fix. (Bug#40948) 85544f8ef5 * lisp/isearch.el: Fix lazy-highlighting and lazy-counting... d83cc05a73 Fix error in ERC when 'erc-server-coding-system' is custom... 16fed05ba8 Avoid crashes on TTY frames with over-long compositions 0278741676 Fix typo in custom.texi 9f5ae717fb * test/lisp/simple-tests.el (with-shell-command-dont-erase... 1f76a16ed3 * lisp/image-mode.el (image-mode-map): Update menu items. f0e1bf56f0 Fix bugs in tab-bar and tab-line and mention remaining fea... f0b9f18457 Make shell-command tests fit for tcsh. 68f4a740a1 Remove doc duplication ac31cd384c * etc/NEWS: Fix inconsistencies. # Conflicts: # etc/NEWS
| * * test/lisp/simple-tests.el (with-shell-command-dont-erase-buffer):Michael Albinus2020-04-271-2/+3
| | | | | | | | Use `shell-quote-argument' instead of quoting 'like this'.
| * Make shell-command tests fit for tcsh.Michael Albinus2020-04-261-4/+4
| | | | | | | | | | | | | | * test/lisp/simple-tests.el (with-shell-command-dont-erase-buffer): Fix debug spec. Format command to run also under tcsh. (simple-tests-shell-command-39067) (simple-tests-shell-command-dont-erase-buffer): Quote newline in string.
* | Use lexical-binding in most eshell testsStefan Kangas2020-04-293-3/+3
| | | | | | | | | | | | * test/lisp/eshell/em-hist-tests.el: * test/lisp/eshell/em-ls-tests.el: * test/lisp/eshell/esh-opt-tests.el: Use lexical-binding.
* | Add new tests to bindat-tests.elStefan Kangas2020-04-291-0/+16
| | | | | | | | | | | | | | * test/lisp/emacs-lisp/bindat-tests.el (bindat-test-format-vector) (bindat-test-vector-to-dec, bindat-test-vector-to-hex) (bindat-test-ip-to-string): New tests. * lisp/emacs-lisp/bindat.el (bindat-vector-to-hex): Fix typo.
* | Use lexical-binding in float-sup.el and add testsStefan Kangas2020-04-291-0/+33
| | | | | | | | | | * lisp/emacs-lisp/float-sup.el: Use lexical-binding. * test/lisp/emacs-lisp/float-sup-tests.el: New file.
* | Use lexical-binding in rfc2368.el and add testsStefan Kangas2020-04-281-0/+39
| | | | | | | | | | * lisp/mail/rfc2368.el: Use lexical-binding. * test/lisp/mail/rfc2368-tests.el: New file.
* | Use lexical-binding in version.el and add testsStefan Kangas2020-04-281-0/+31
| | | | | | | | | | * lisp/version.el: Use lexical-binding. * test/lisp/version-tests.el: New file.
* | Use lexical-binding in puny.el and add more testsStefan Kangas2020-04-281-0/+21
| | | | | | | | | | | | | | * lisp/net/puny.el: Use lexical-binding. * test/lisp/net/puny-tests.el (puny-test-encode-domain) (puny-test-decode-domain, puny-highly-restrictive-domain-p): New tests.
* | Use lexical-binding in hmac-md5.el and add testsStefan Kangas2020-04-281-0/+80
| | | | | | | | | | * lisp/net/hmac-md5.el: Use lexical-binding. * test/lisp/net/hmac-md5-tests.el: New file.
* | Use lexical-binding in many emacs-lisp testsStefan Kangas2020-04-287-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * test/lisp/emacs-lisp/bytecomp-tests.el: * test/lisp/emacs-lisp/ert-x-tests.el: * test/lisp/emacs-lisp/nadvice-tests.el: * test/lisp/emacs-lisp/pcase-tests.el: * test/lisp/emacs-lisp/seq-tests.el: * test/lisp/emacs-lisp/subr-x-tests.el: * test/lisp/emacs-lisp/text-property-search-tests.el: Use lexical-binding. * test/lisp/emacs-lisp/seq-tests.el (test-seq-filter) (test-seq-remove, test-seq-count, test-seq-every-p): Silence byte-compiler.
* | Use lexical-binding in most semantic testsStefan Kangas2020-04-285-25/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * test/lisp/cedet/semantic-utest-fmt.el: * test/lisp/cedet/semantic-utest-ia.el: * test/lisp/cedet/semantic-utest.el: * test/lisp/cedet/srecode-utest-getset.el: * test/lisp/cedet/srecode-utest-template.el: Use lexical-binding. * test/lisp/cedet/semantic-utest-fmt.el (semantic-fmt-utest): * test/lisp/cedet/semantic-utest.el (semantic-utest-generic) (semantic-utest-Python, semantic-utest-Javascript) (semantic-utest-Java, semantic-utest-Makefile) (semantic-utest-Scheme, semantic-utest-Html, semantic-utest-PHP) (semantic-utest-Csharp, semantic-utest-last-invalid): * test/lisp/cedet/semantic-utest-ia.el (semantic-ia-utest-buffer) (semantic-symref-test-count-hits-in-tag): * test/lisp/cedet/srecode-utest-getset.el (srecode-insert-getset-fully-automatic-flag): Silence byte-compiler.
* | Don't skip test semantic-utest-PythonStefan Kangas2020-04-281-1/+1
| | | | | | | | | | * test/lisp/cedet/semantic-utest.el (semantic-utest-Python): Ensure test is not skipped.
* | Use lexical-binding in most progmodes testsStefan Kangas2020-04-288-13/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * test/lisp/progmodes/etags-tests.el: * test/lisp/progmodes/f90-tests.el: * test/lisp/progmodes/ps-mode-tests.el: * test/lisp/progmodes/python-tests.el: * test/lisp/progmodes/ruby-mode-tests.el: * test/lisp/progmodes/subword-tests.el: * test/lisp/progmodes/tcl-tests.el: * test/lisp/progmodes/xref-tests.el: Use lexical-binding. * test/lisp/progmodes/python-tests.el (python-tests-visible-string) (python-tests-look-at-1, python-tests-look-at-2) (python-shell-calculate-process-environment-2): Silence byte-compiler.
* | Use lexical-binding in most vc testsStefan Kangas2020-04-286-9/+13
| | | | | | | | | | | | | | | | | | | | | | | | * test/lisp/vc/add-log-tests.el: * test/lisp/vc/diff-mode-tests.el: * test/lisp/vc/ediff-ptch-tests.el: * test/lisp/vc/smerge-mode-tests.el: * test/lisp/vc/vc-hg-tests.el: * test/lisp/vc/vc-tests.el: Use lexical-binding. * test/lisp/vc/add-log-tests.el (add-log-current-defun-deftest): Silence byte-compiler.
* | Use lexical-binding in calendar testsStefan Kangas2020-04-272-8/+7
| | | | | | | | | | | | | | | | | | * test/lisp/calendar/icalendar-tests.el: * test/lisp/calendar/parse-time-tests.el: Use lexical-binding. * test/lisp/calendar/icalendar-tests.el (icalendar--format-ical-event) (icalendar--decode-isodatetime, icalendar-tests--do-test-import) (icalendar-tests--decode-isodatetime): Silence byte-compiler.
* | * test/lisp/mail/rfc2045-tests.el: Make it work.Glenn Morris2020-04-261-0/+1
| |
* | Fix tramp-test32-shell-command-dont-erase-bufferMichael Albinus2020-04-261-18/+134
| | | | | | | | | | * test/lisp/net/tramp-tests.el (tramp-test32-shell-command-dont-erase-buffer): Adapt test.
* | Use lexical-binding for rfc2045.el and add testsStefan Kangas2020-04-261-0/+36
| | | | | | | | | | * lisp/mail/rfc2045.el: Use-lexical-binding. * test/lisp/mail/rfc2045-tests.el: New file.
* | Use lexical-binding in dig.el and add testsStefan Kangas2020-04-261-0/+56
| | | | | | | | | | | | | | * lisp/net/dig.el: Use lexical-binding. (dig-program, dig-dns-server, dig-font-lock-keywords): Remove redundant :group args. * test/lisp/net/dig-tests.el: New file.
* | Use lexical-binding in misc.el and add testsStefan Kangas2020-04-261-0/+77
| | | | | | | | | | * lisp/misc.el: Use lexical-binding. * test/lisp/misc-tests.el: New file.
* | Use lexical-binding in po.el and add testsSimen Heggestøyl2020-04-251-0/+68
| | | | | | | | | | | | * lisp/textmodes/po.el: Use lexical-binding. * test/lisp/textmodes/po-tests.el: New file with tests for po.el.
* | ; * test/lisp/international/mule-util-tests.el: Fix typos.Stefan Kangas2020-04-251-2/+2
| |
* | Use lexical-binding for international testsStefan Kangas2020-04-242-1/+3
| | | | | | | | | | * test/lisp/international/mule-util-tests.el: * test/lisp/international/ccl-tests.el: Use lexical-binding.
* | Use lexical-binding for all net testsStefan Kangas2020-04-245-5/+5
| | | | | | | | | | | | | | | | * test/lisp/net/dbus-tests.el: * test/lisp/net/gnutls-tests.el: * test/lisp/net/newsticker-tests.el: * test/lisp/net/puny-tests.el: * test/lisp/net/rfc2104-tests.el: Use lexical-binding.
* | Use lexical-binding for textmodes testsStefan Kangas2020-04-242-2/+2
| | | | | | | | | | * test/lisp/textmodes/mhtml-mode-tests.el: * test/lisp/textmodes/sgml-mode-tests.el: Use lexical-binding.
* | Use lexical-binding in most url testsStefan Kangas2020-04-245-5/+5
| | | | | | | | | | | | | | | | * test/lisp/url/url-auth-tests.el: * test/lisp/url/url-expand-tests.el: * test/lisp/url/url-parse-tests.el: * test/lisp/url/url-tramp-tests.el: * test/lisp/url/url-util-tests.el: Use lexical-binding.
* | * test/lisp/net/tramp-tests.elMichael Albinus2020-04-241-1/+2
| | | | | | | | (tramp-test32-shell-command-dont-erase-buffer): Tag it :unstable.
* | Merge from origin/emacs-27Glenn Morris2020-04-201-2/+2
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 05089a4d65 (origin/emacs-27) Tweak wording re constant variables a1040861f1 Tweak setcar-related wording 751510f865 * lisp/image-mode.el: Add prefix key 's' and reduce depend... 9261a219ec * doc/emacs/windows.texi (Window Convenience): Decribe mor... e1d42da0d6 Fix mutability glitches reported by Drew Adams 5805df74f5 Improve mutability doc dca35b31d0 Improve mutability documentation 81e7d7f111 Document that quoting yields constants 5734339f40 * doc/lispref/keymaps.texi (Extended Menu Items, Easy Menu... 14a570afae Remove #' and function quoting from lambda forms in manual d5ec18c66b * src/regex-emacs.c (re_match_2_internal): Rework comment ... 4df8a61117 Add new node "Image Mode" to Emacs Manual. d7d5ee6c57 ; Fix a typo in cmdargs.texi (bug#40701) 5e9db48fbe * doc/lispref/display.texi (Customizing Bitmaps): Fix typo. eebfb72c90 Document constant vs mutable objects better 6c187ed6b0 Improve documentation of 'sort-lines' 52288f4b66 Mention 'spam-stat-process-directory-age' in the documenta... 067b070598 ; Fix some typos and doc issues (bug#40695) # Conflicts: # etc/NEWS
| * ; Fix some typos and doc issues (bug#40695)Štěpán Němec2020-04-181-2/+2
| |
* | Use lexical-binding in elide-head.el and add testsSimen Heggestøyl2020-04-191-0/+62
| | | | | | | | | | | | | | | | | | | | * lisp/elide-head.el: Use lexical-binding. (elide-head-headers-to-hide): Remove redundant :group arg. (elide-head-overlay): Use `defvar-local'. (elide-head-show): Fix docstring. * test/lisp/elide-head-tests.el: New file with tests for elide-head.el.
* | Use lexical-binding in apropos.el and add testsSimen Heggestøyl2020-04-181-0/+133
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/apropos.el: Use lexical-binding and remove redundant :group args. (apropos-words-to-regexp, apropos): Tweak docstrings. (apropos-value-internal): Replace '(if x (progn y))' with '(when x y)'. (apropos-format-plist): Add docstring and replace '(if x (progn y))' with '(when x y)'. * test/lisp/apropos-tests.el: New file with tests for apropos.el.