aboutsummaryrefslogtreecommitdiffstats
path: root/test (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Add `rx-submatch-n' for compatibility (bug#37517)Mattias Engdegård2019-09-291-0/+3
| | | | | | | | It was an internal symbol in the old `rx' implementation, used in old versions of the `flycheck' package. * lisp/emacs-lisp/rx.el (rx-submatch-n): Alias of `rx-to-string'. * test/lisp/emacs-lisp/rx-tests.el (rx-compat): Test it.
* Fix linear equation system solving in Calc (bug#35374)Mattias Engdegård2019-09-291-0/+103
| | | | | | | | * lisp/calc/calcalg2.el (math-try-solve-for): To solve Ax^n=0 where A is a nonzero constant and x the variable to solve for, solve x^n=0 instead of solving A=0 (which obviously fails) or something equally stupid. * test/lisp/calc/calc-tests.el (calc-test-solve-linear-system): New.
* Add some commented-out tests for iso8601Lars Ingebrigtsen2019-09-291-7/+19
|
* Reorganize time-stamp testsStephen Gildea2019-09-281-103/+112
| | | | | | | | * time-stamp-tests.el: Group tests by when the format was or will be documented. Add tests for a few more undocumented, volatile formats. Change AM hours test time to be a different hour from PM test time. (Making these changes to the tests now will minimize test changes needed later with anticipated code changes.)
* Don't discard customizations in progress when adding comments (Bug#5358)Mauro Aranda2019-09-271-0/+28
| | | | | | | | | | | | | | | * lisp/cus-edit.el (custom-comment-show): Add docstring. Save the widget value in the :shown-value property, before redrawing. (custom-variable-modified-p): New function, to complement the return values of custom-variable-state. (custom-variable-state-set): Use it. (custom-face-value-create): Add children to the custom-face widget before setting the state, to be able to check for user edits. (custom-face-state-set): Check for user edits before calling custom-face-state (bug#5358). * test/lisp/custom-tests.el (custom-test-show-comment-preserves-changes): New test.
* ; Add traces to shadowfile-tests.elMichael Albinus2019-09-261-0/+8
|
* Remove support for destructive splicing in elispStefan Kangas2019-09-261-0/+7
| | | | | | | | | | * src/lread.c (read1): Don't handle destructive splicing in backquote expressions (e.g. ",.<identifier>"). (Bug#19790) (syms_of_lread): Remove Qcomma_dot. * src/print.c (print_object): Don't check for Qcomma_dot. * test/src/eval-tests.el (eval-tests-19790-backquote-comma-dot-substitution): New test. * etc/NEWS: Announce it.
* Don't indent unrelated widgets following widget of type 'otherMauro Aranda2019-09-261-0/+77
| | | | | | | | | | * lisp/wid-edit.el (widget 'other): Use \n instead of the %n escape in the :format property of this widget. If %n is used at the end of the format string, unrelated widgets get indented. (Bug#12533) * test/wid-edit-tests.el (widget-test-indentation-after-%n) (widget-test-indentation-after-newline) (widget-test-newline-and-indent-same-widget): New tests.
* Avoid errors in tramp-tests with a remote ksh shellMichael Albinus2019-09-261-0/+13
| | | | | | | * test/lisp/net/tramp-tests.el (tramp--test-ksh-p): New defun. (tramp-test41-utf8, tramp-test41-utf8-with-stat) (tramp-test41-utf8-with-perl, tramp-test41-utf8-with-ls): Skip, when remote shell is ksh.
* Add rx extension mechanismMattias Engdegård2019-09-251-0/+98
| | | | | | | | | | | | | | | | | | Add a built-in set of extension macros: `rx-define', `rx-let' and `rx-let-eval'. * lisp/emacs-lisp/rx.el (rx-constituents, rx-to-string): Doc updates. (rx--builtin-symbols, rx--builtin-names, rx--local-definitions) (rx--lookup-def, rx--substitute, rx--expand-template) (rx--make-binding, rx--make-named-binding, rx--extend-local-defs) (rx-let-eval, rx-let, rx-define): New. (rx--translate-symbol, rx--translate-form): Use extensions if any. (rx): Use local definitions. * test/lisp/emacs-lisp/rx-tests.el (rx-let, rx-define) (rx-to-string-define, rx-let-define, rx-let-eval): New. * etc/NEWS (Changes in Specialized Modes and Packages): * doc/lispref/searching.texi (Rx Notation, Rx Functions, Extending Rx): Add node about rx extensions.
* New rx implementationMattias Engdegård2019-09-251-89/+247
| | | | | | | | | | | | * lisp/emacs-lisp/rx.el: * test/lisp/emacs-lisp/rx-tests.el: * doc/lispref/searching.texi (Rx Constructs): Rewrite rx for correctness, clarity, and performance. The new implementation retains full compatibility and has more comprehensive tests. * lisp/emacs-lisp/re-builder.el (reb-rx-font-lock-keywords): Adapt to changes in internal variables in rx.el.
* Allow controlling when to send cookies when retrieving images in shrLars Ingebrigtsen2019-09-241-0/+13
| | | | | | | | | * lisp/net/shr.el (shr--use-cookies-p): New function. (shr-tag-img): Use it. (shr-cookie-policy): New variable. (shr-save-contents): Use cookies. * doc/misc/eww.texi (Advanced): Document it.
* Adjust exif-tests.el to new interfaceLars Ingebrigtsen2019-09-231-1/+1
|
* ; Enable traces for shadowfile-tests on hydraMichael Albinus2019-09-231-1/+1
|
* Update some URLsPaul Eggert2019-09-232-2/+2
| | | | | | | | | | | | | | | | | This mostly changes http: to https: in URLs. It also updates some URLs that have moved, removes some URLs that no longer work, recommends against using procmail (procmail.org no longer works), and removes some mentions of the no-longer-existing Gmane, LPF and VTW. It doesn't update all URLs, just the ones I had time for. * GNUmakefile (help): * admin/admin.el (manual-doctype-string): * admin/charsets/Makefile.in (${charsetdir}/ALTERNATIVNYJ.map): * admin/charsets/mapconv: * lisp/net/soap-client.el (soap-create-envelope): * lisp/org/org.el (org-doi-server-url): * lisp/textmodes/bibtex.el (bibtex-generate-url-list): Prefer https: to http: un URLs.
* Expand time-stamp unit tests to cover all formatting optionsStephen Gildea2019-09-221-9/+284
| | | | | | | | | | | | | | | | | * time-stamp-tests.el: Expand unit tests to cover all formatting options. These tests validate time-stamp-pattern formatting that has existed since at least Emacs 22 (released in 2007). The tests cover both documented behavior and behavior implemented to support future migrations. * time-stamp.el (time-stamp-string): Add a second argument (TIME) to open a testing seam. Have the unit tests call this public function. * time-stamp.el (time-stamp-string, time-stamp-string-preprocess): Remove the second pass through time-string--format. (Previously both functions called it.) It was used only to handle "%", but this is now handled by having time-stamp-string-preprocess not double it. Not doubling the "%" in time-stamp-string-preprocess fixes the padding of "%2%", which was discovered by the new unit tests to be wrong.
* Ignore comments and strings when recognizing JSXJackson Ray Hamilton2019-09-221-0/+16
| | | | | | * lisp/progmodes/js.el (js-syntax-propertize): Ignore comments and strings. * test/manual/indent/jsx-comment-string.jsx: New test.
* Avoid crashes when casifying noncontiguous regionsPaul Eggert2019-09-221-0/+17
| | | | | | | | | | | | | | | | | | | | This is a followon fix for Bug#37477. * lisp/simple.el (region-extract-function): Use setq here, since the var is now defined in C code. * src/casefiddle.c (casify_pnc_region): New function. (Fupcase_region, Fdowncase_region, Fcapitalize_region) (Fupcase_initials_region): Use it. (Fupcase_initials_region): Add region-noncontiguous-p flag for consistency with the others. All uses changed. (syms_of_casefiddle): Define Qbounds, Vregion_extract_function. * src/insdel.c (prepare_to_modify_buffer_1): * src/keyboard.c (command_loop_1): Use Vregion_extraction_function. * src/insdel.c (syms_of_insdel): No need to define Qregion_extract_function. * test/src/casefiddle-tests.el (casefiddle-oldfunc): New var. (casefiddle-loopfunc, casefiddle-badfunc): New functions. (casefiddle-invalid-region-extract-function): New test.
* Add an Exif parsing libraryLars Ingebrigtsen2019-09-212-0/+44
| | | | | | * lisp/image/exif.el: New file (bug#23070). * test/lisp/image/exif-tests.el: Add some basic tests.
* Simplify tramp-tests.el check for owncloud/nextcloudMichael Albinus2019-09-181-5/+2
| | | | | * test/lisp/net/tramp-tests.el (tramp-test11-copy-file): Simplify check for owncloud/nextcloud connections.
* Add backquote testsTino Calancha2019-09-161-0/+47
| | | | * test/lisp/emacs-lisp/backquote-tests.el: New file (bug#37432).
* ; Disable traces in shadowfile-testsMichael Albinus2019-09-161-1/+1
|
* Merge from origin/emacs-26Glenn Morris2019-09-151-1/+17
|\ | | | | | | | | | | 30c4f35 (origin/emacs-26) query-replace-regexp undo: Update next-repl... c596be0 Amend the menu caption for page "Display Property" in the Eli... 13b9510 Add description of chinese-sisheng
| * query-replace-regexp undo: Update next-replacement after undoTino Calancha2019-09-091-1/+17
| | | | | | | | | | | | | | | | | | * lisp/replace.el (perform-replace): Rename the local binding to not shadow next-replacement. Update next-replacement after undo (Bug#37287). * test/lisp/replace-tests.el (query-replace-undo-bug37287): Add test. (query-replace-undo-bug37073): Tweak this test.
| * Fix non-deterministic process testNoam Postavsky2019-09-011-10/+16
| | | | | | | | | | | | | | | | * test/src/process-tests.el (set-process-filter-t): Don't assume subprocess output will come in a single chunk, keep waiting for more data until next "prompt" is read from subprocess. (cherry picked from commit aa49aa884053d0e8b33efe265f2aade19d1f3f3d)
* | Use also truname of temporary-file-directory in shadowfile-tests.elMichael Albinus2019-09-151-5/+6
| | | | | | | | | | | | | | | | * test/lisp/shadowfile-tests.el (top): Use truename of `temporary-file-directory' and `shadow-test-remote-temporary-file-directory'. (Bug#37202) (shadow-test08-shadow-todo, shadow-test09-shadow-copy-files): Do not bind `shadow-test-remote-temporary-file-directory'.
* | Create common tests for print.c and cl-print.elGemini Lasswell2019-09-132-124/+250
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * test/lisp/emacs-lisp/cl-print-tests.el (cl-print--test, cl-print-tests-1, cl-print-tests-2) (cl-print-tests-3, cl-print-tests-4, cl-print-tests-5) (cl-print-tests-strings, cl-print-circle, cl-print-circle-2): Remove. * test/src/print-tests.el (print-tests--prin1-to-string): New alias. (print-tests--deftest): New macro. (print-hex-backslash, print-read-roundtrip, print-bignum): Define with print-tests--deftest and use print-tests--prin1-to-string. (print-tests--prints-with-charset-p): Use print-tests--prin1-to-string. (print-tests--print-charset-text-property-nil) (print-tests--print-charset-text-property-t) (print-tests--print-charset-text-property-default): Define with print-tests--deftest. (print-tests-print-gensym) (print-tests-continuous-numbering, print-tests-1, print-tests-2) (print-tests-3, print-tests-4, print-tests-5) (print-tests-strings, print-circle, print-circle-2): New tests. (print--test, print-tests-struct): New cl-defstructs.
* | Improve print output options commands in backtrace-mode (bug#36566)Gemini Lasswell2019-09-131-0/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/backtrace.el (backtrace-view): Mention :print-gensym in docstring. (backtrace-mode-map): Add keyboard binding for backtrace-toggle-print-gensym. Add menu entries for backtrace-toggle-print-circle and backtrace-toggle-print-gensym. (backtrace--with-output-variables): Bind print-gensym with value of :print-gensym found in view plist. (backtrace-toggle-print-circle): Remove description of implementation details from docstring. (backtrace-toggle-print-gensym): New command. (backtrace--toggle-feature): Add echo area message describing result of command. * test/lisp/emacs-lisp/backtrace-tests.el (backtrace-tests--print-circle): New test. * doc/lispref/debugging.texi (Backtraces): Document keyboard binding for backtrace-toggle-print-gensym.
* | Fix problems in tramp-test33-environment-variablesMichael Albinus2019-09-131-6/+8
| | | | | | | | | | | | | | * test/lisp/net/tramp-tests.el (tramp-test33-environment-variables): Use ${parameter:-word} construct. Remove PS1 entry from "printenv" output. (tramp--test-check-files): Use "printenv".
* | Fix fill-paragraph in python docstrings (Bug#36056)Noam Postavsky2019-09-121-1/+12
| | | | | | | | | | | | | | | | | | | | * lisp/progmodes/python.el (python-do-auto-fill): New function. (python-mode): Set it as normal-auto-fill-function, and don't set fill-indent-according-to-mode. Having the latter set during fill-paragraph gives wrongs result, because python-indent-line doesn't remove indentation added by filling. * test/lisp/progmodes/python-tests.el (python-fill-docstring): New test.
* | Handle missing start-time when importing ical event (Bug#33277)Ulf Jasper2019-09-091-0/+18
| | | | | | | | | | | | | | | | | | * lisp/calendar/icalendar.el (icalendar--convert-ical-to-diary): Set start time only if it is explicitly given in ical. Do not use start-time as default for end-time (Bug#33277). * test/lisp/calendar/icalendar-tests.el (icalendar-import-bug-33277): New. Test fix for Bug#33277.
* | Fix Bug#37202Michael Albinus2019-09-081-0/+4
| | | | | | | | | | | | * test/lisp/shadowfile-tests.el (shadow-test08-shadow-todo) (shadow-test09-shadow-copy-files): Use truename of `shadow-test-remote-temporary-file-directory'. (Bug#37202)
* | Add traces in shadowfileMichael Albinus2019-09-071-24/+31
| | | | | | | | | | | | | | * lisp/shadowfile.el (shadow-add-to-todo) (shadow-remove-from-todo, shadow-save-todo-file): * test/lisp/shadowfile-tests.el (shadow-test08-shadow-todo): Add traces.
* | Further work on Bug#37202Michael Albinus2019-09-041-22/+41
| | | | | | | | | | | | | | | | | | * test/lisp/shadowfile-tests.el (shadow-debug): Set to t. (shadow--tests-cleanup): Simplify. (shadow-test*): Call `shadow-initialize'. (shadow-test08-shadow-todo, shadow-test09-shadow-copy-files): In cleanup, kill buffers used for test. (top): Do not initialize.
* | Fix Bug#37202Michael Albinus2019-09-031-96/+90
| | | | | | | | | | | | | | | | | | | | | | * lisp/shadowfile.el (shadow-debug): New defvar. (shadow-read-files): Suppress error if there's no TODO file. * test/lisp/shadowfile-tests.el (shadow-debug): Set to nil. (shadow--tests-cleanup): New defun. Apply to all tests. (Bug#37202) (shadow-test06-literal-groups): Cleanup temp buffer. (shadow-test08-shadow-todo): Add debug messages. (top): Cleanup initially.
* | * test/lisp/net/tramp-tests.el (tramp-test21-file-links): More cleanup.Glenn Morris2019-08-311-1/+3
| |
* | Extend tramp--test-check-files (Bug#37228)Michael Albinus2019-08-301-3/+14
| | | | | | | | | | * test/lisp/net/tramp-tests.el (tramp--test-check-files): Test also `directory-files-and-attributes'. (Bug#37228)
* | Clarify meaning of <filename> in test/READMEMichael Albinus2019-08-281-0/+3
| |
* | Deactivate part of tramp--test-check-files on macOS (Bug#36940)Michael Albinus2019-08-271-10/+8
| | | | | | | | | | * test/lisp/net/tramp-tests.el (tramp--test-check-files): Do not search for environment variables on macOS. (Bug#36940)
* | * test/Makefile.in (test_template): Declare target FOO.log.Michael Albinus2019-08-271-0/+1
| |
* | ; Continued attempt to fix Bug#36940Michael Albinus2019-08-261-4/+15
| | | | | | | | | | | | * test/lisp/net/tramp-tests.el (tramp--test-file-attributes-equal-p): Handle link number. (tramp--test-check-files): Encode search string on macOS. (Bug#36940)
* | Make (mod 1.0 0) consistent with (/ 1.0 0)Paul Eggert2019-08-241-0/+7
| | | | | | | | | | | | * src/data.c (Fmod): Do not signal an error for (mod 1.0 0), for the same reason (/ 1.0 0) does not signal an error. * test/src/data-tests.el (data-tests-mod-0): New test.
* | Fix non-deterministic process testNoam Postavsky2019-08-241-10/+16
| | | | | | | | | | | | * test/src/process-tests.el (set-process-filter-t): Don't assume subprocess output will come in a single chunk, keep waiting for more data until next "prompt" is read from subprocess.
* | Fix DNS testsRobert Pluim2019-08-241-5/+13
| | | | | | | | | | | | | | * test/src/process-tests.el: (lookup-family-specification, lookup-unicode-domains, unibyte-domain-name, lookup-google, non-existent-lookup-failure): Skip on Hydra, which doesn't have DNS. Fix buggy test condition. (Bug#37165)
* | Fix some problems of Bug#36940Michael Albinus2019-08-241-5/+7
| | | | | | | | | | | | * test/lisp/net/tramp-tests.el (tramp-test22-file-times): Do not compare time value lists by `equal'. (Bug#36940). (tramp-test30-make-process): Adapt "kill" message to match on macOS.
* | Merge remote-tracking branch 'origin/netsec'Lars Ingebrigtsen2019-08-232-0/+98
|\ \
| * | Change nsm-should-check to look at local subnetsRobert Pluim2019-08-071-0/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/nsm.el (nsm-network-same-subnet): New function. Checks if an ip address is in the same subnet as another one. (nsm-should-check): Use nsm-network-same-subnet to see if we're connecting to a local subnet machine. Remove checks for RFC1918 addresses. * test/lisp/net/nsm-tests.el: New file. Test nsm-should-check functionality.
| * | Don't check unibyte hostnames for pure-ASCIIRobert Pluim2018-07-171-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | * src/process.c (network_lookup_address_info_1): Only check multibyte hostnames for pure-ASCII. * test/src/process-tests.el (unibyte-domain-name): Test unibyte domain names with network-lookup-address-info.
| * | Add tests for network-lookup-address-infoRobert Pluim2018-07-171-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | * test/src/process-tests.el (lookup-family-specification): Test network-lookup-address-info api. (lookup-unicode-domains): Test that unicode domains fail. (lookup-google): Test that normal lookups succeed. (non-existent-lookup-failure): Check that known non-existent domains fail.
* | | Don’t hard-loop on cycles in ‘read’ etc.Paul Eggert2019-08-211-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem for ‘read’ reported by Pip Cet in: https://lists.gnu.org/r/emacs-devel/2019-08/msg00316.html * src/fns.c (Frequire): Protect against circular current-load-list. * src/lread.c (Fget_load_suffixes): Protect against circular load-suffixes or load-file-rep-suffixes. (Fload): Protect against circular loads-in-progress. (openp): Protect against circular PATH and SUFFIXES. (build_load_history): Protect against circular load-history or current-load-list. (readevalloop_eager_expand_eval): Protect against circular SUBFORMS. (read1): Protect against circular data. * test/src/lread-tests.el (lread-circular-hash): New test.