aboutsummaryrefslogtreecommitdiffstats
path: root/test (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
| * ; test/README: Document TEST_LOAD_EL parameter.Noam Postavsky2018-01-261-0/+6
| |
| * Load mm-util as needed for url-file and url-data (Bug#30258)Noam Postavsky2018-01-263-0/+92
| | | | | | | | | | | | | | | | | | * lisp/url/url-file.el (url-file): * lisp/url/url-misc.el (url-data): Require `mm-util' before calling `mm-disable-multibyte'. * test/lisp/url/url-file-resources/file.txt: * test/lisp/url/url-file-tests.el: * test/lisp/url/url-misc-tests.el: New tests.
* | Fix emacs-module-tests to work out of build treeAndy Moreton2018-01-262-4/+4
| | | | | | | | | | | | | | | | | | * test/Makefile.in (test_module_dir): Build the test module library in a subdirectory of the build directory (not the source tree). (MODULE_CFLAGS): Fix location of emacs-module.h header file. (test_module): Move built library out of the source tree. * test/src/emacs-module-tests.el (mod-test-file): Locate the test module library relative to the running Emacs executable.
* | Merge branch 'fix/bug-20871-cur'Marcin Borkowski2018-01-241-0/+50
|\ \
| * | Add simple tests for the `fill-polish-nobreak-p' functionMarcin Borkowski2018-01-151-0/+50
| | | | | | | | | | | | | | | * test/lisp/textmodes/fill-tests.el: (fill-test-no-fill-polish-nobreak-p): New test
* | | Add unit test for Bug#30005.Philipp Stephani2018-01-231-0/+8
| | | | | | | | | | | | | | | * test/src/callint-tests.el (call-interactively/embedded-nulls): New unit test.
* | | Add a regression test for Bug#30004.Philipp Stephani2018-01-221-0/+38
| | | | | | | | | | | | | | | * test/src/callint-tests.el (call-interactively/incomplete-multibyte-sequence): New unit test.
* | | Merge from origin/emacs-26Paul Eggert2018-01-221-1/+1
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1fc98ed073 ; Spelling fix bb396a369c Update Org to v9.1.6 fa582153f7 Use text-pixels values only when saving framesets (Bug#30141) 6b01b9475d Minor improvement in section "Pages" of the usere manual e8c8bd3de2 Minor improvements in user manual 26b8b92e63 Improve the "Mark" chapter of the user manual 759569fe40 Improve the "Buffers" chapter of the user manual c2e6d121ff * lisp/term.el (term-send-input): Fix text duplication in ... 854a1c0a61 Improve "Buffers" in the user manual # Conflicts: # etc/NEWS
| * | ; Spelling fixPaul Eggert2018-01-221-1/+1
| | |
* | | Finish changes in autorevert from commit 530bb2dc68Michael Albinus2018-01-221-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/autorevert.el (auto-revert-buffers): Check `auto-revert-timer' being a timerp. * test/lisp/filenotify-tests.el (file-notify-test04-autorevert): Adapt test in order to cover changed behavior of autorevert.
* | | New function read-answer (bug#30073)Juri Linkov2018-01-212-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/map-ynp.el (read-answer): New function. (read-answer-short): New defcustom. * lisp/dired.el (dired-delete-file): Use read-answer. (dired--yes-no-all-quit-help): Remove function. (dired-delete-help): Remove defconst. * lisp/subr.el (assoc-delete-all): New function.
* | | Parse percent values in CSS alpha componentsSimen Heggestøyl2018-01-211-7/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/textmodes/css-mode.el (css--rgb-color): Support parsing percent values in the alpha component. * test/lisp/textmodes/css-mode-tests.el (css-test-rgb-to-named-color-or-hex, css-test-rgb-parser): Update for the above changes.
* | | Extend tramp-test02-file-name-dissect* testsMichael Albinus2018-01-211-4/+140
| | | | | | | | | | | | | | | | | | | | | | | | * test/lisp/net/tramp-tests.el (tramp-test02-file-name-dissect) (tramp-test02-file-name-dissect-simplified) (tramp-test02-file-name-dissect-separate): Test also `tramp-default-method-alist', `tramp-default-user-alist' and `tramp-default-host-alist'.
* | | Merge from origin/emacs-26Glenn Morris2018-01-203-6/+169
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cfc94fd (origin/emacs-26) Don't mention 'vc-stay-local' in the user m... 8ce430b Fix a typo in calendar.texi bb748b3 Minor improvement in wording of the Emacs manual b603aff Revert "Fix tempfile creation when byte compiling" 4fd446e Fix tempfile creation when byte compiling 7f48a11 Improve the Emacs manual as suggested in emacs-manual-bugs 728ded0 * lisp/emacs-lisp/bytecomp.el: Tweak last change c6c05e2 Unbreak building Emacs on FreeBSD a41ad3d Don't unnecessarily use non-ASCII characters in C sources c28d4b6 Portability fixes in emacs-module-tests 1d50c18 Add tests for term.el
| * | Portability fixes in emacs-module-testsEli Zaretskii2018-01-192-6/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * test/Makefile.in (abs_top_srcdir): Add variable, needed by CPPFLAGS. * test/data/emacs-module/mod-test.c: Include <limits.h>. (pT, pZ, T_TYPE, Z_TYPE): Compatibility macros, for systems that don't support %td and %zu format specs. (emacs_module_init): Use compatibility macros to make the error messages print meaningful values (and avoid compiler warnings).
| * | Add tests for term.elNoam Postavsky2018-01-181-0/+137
| | | | | | | | | | | | | | | | | | | | | * lisp/term.el (term-mode): Add `name' attribute to window-adjust-process-window-size-function value, so that it can be removed easily by tests. * test/lisp/term-tests.el: New tests.
* | | Use file notification in autorevert also for recreated filesMichael Albinus2018-01-201-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/autorevert.el (auto-revert-mode) (global-auto-revert-mode, auto-revert-notify-add-watch) (auto-revert-notify-handler, auto-revert-handler): Do not use buffer local `auto-revert-use-notify' anymore. * test/lisp/autorevert-tests.el (auto-revert-test02-auto-revert-deleted-file): Adapt test in order to check, that file notification is reenabled when possible.
* | | * test/lisp/filenotify-tests.el (file-notify-test03-events): Cleanup subtests.Michael Albinus2018-01-191-185/+220
| | |
* | | Merge from origin/emacs-26Glenn Morris2018-01-184-1/+52
|\ \ \ | |/ / | | | | | | | | | 76040d1 (origin/emacs-26) Handle case-insensitive filenames for load-... 0c9b050 ; * test/file-organization.org: Fix typo.
| * | Handle case-insensitive filenames for load-path shadows (Bug#5845)Noam Postavsky2018-01-183-0/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/shadow.el (load-path-shadows-find): Check for shadowing with case-insensitive matching for files of case-insensitive directories (as determined by `file-name-case-insensitive-p'). * test/lisp/emacs-lisp/shadow-tests.el: New test. * test/lisp/emacs-lisp/shadow-resources/p1/foo.el: * test/lisp/emacs-lisp/shadow-resources/p2/FOO.el: New test files.
| * | ; * test/file-organization.org: Fix typo.Noam Postavsky2018-01-181-1/+1
| | |
* | | Merge from origin/emacs-26Glenn Morris2018-01-182-26/+56
|\ \ \ | |/ / | | | | | | | | | | | | 779b2ac Use recommended long options syntax in man page c433e87 An overdue update of GNUstep emacs.tiff 188a9d9 Add some test skip conditions
| * | Add some test skip conditionsGlenn Morris2018-01-172-26/+56
| | | | | | | | | | | | | | | | | | * test/lisp/vc/vc-bzr-tests.el (vc-bzr-test-bug9726) (vc-bzr-test-bug9781): Skip if bzr is faulty. * test/src/thread-tests.el: Skip if not compiled with threads.
* | | Merge from origin/emacs-26Glenn Morris2018-01-1512-12901/+12937
|\ \ \ | |/ / | | / | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | 2c0cfa6455 * ChangeLog.3: Update 4387bb44ae Update authors bce51bd6f7 * lisp/gnus/message.el (message-do-auto-fill): Prevent do-... bd2a2a1e84 Improve documentation of etags 7ba75b9637 Teach etags new interpreters for some languages 1f7f03742d * lisp/emacs-lisp/generator.el (iter-defun): Add 'doc-stri... dbb4aac212 * lisp/emacs-lisp/syntax.el (syntax-propertize): Fix bug#2... 80463a43da Improve documentation of fill-separate-heterogeneous-words... 4bd2416d55 Fix documentation of some x-* functions 9c2b11484f Inherit query-on-exit flag to stderr process (Bug#30031) 3efb1e7def Fix Bug#30057 a9b884c60f Tag some unstable tests, and skip by default (bug#24503) # Conflicts: # test/lisp/emacs-lisp/eieio-tests/eieio-tests.el
| * Teach etags new interpreters for some languagesEli Zaretskii2018-01-117-12871/+12871
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lib-src/etags.c (Erlang_interpreters, Lua_interpreters) (Prolog_interpreters, Python_interpreters, Ruby_interpreters): New static variables. (lang_names): Use them to set interpreters for Erlang, Lua, Prolog, Python, and Ruby. (find_entries): Support "/usr/bin/env FOO" form of specifying an interpreter. * test/manual/etags/perl-src/htlmify-cystic: Modify the has-bang line to test the "env FOO" interpreter spec. (Bug#30075) * test/manual/etags/ETAGS.good_1: * test/manual/etags/ETAGS.good_2: * test/manual/etags/ETAGS.good_3: * test/manual/etags/ETAGS.good_4: * test/manual/etags/ETAGS.good_5: * test/manual/etags/ETAGS.good_6: Adapt to latest changes in test files.
| * Inherit query-on-exit flag to stderr process (Bug#30031)Philipp Stephani2018-01-101-0/+19
| | | | | | | | | | | | | | * src/process.c (Fmake_process): Have the pipe process honor the parent's query-on-exit flag. * test/src/process-tests.el (make-process/noquery-stderr): New test.
| * Fix Bug#30057Michael Albinus2018-01-101-26/+36
| | | | | | | | | | | | | | | | | | * test/lisp/filenotify-tests.el (file-notify--test-tmpdir): New defvar. (file-notify--test-cleanup, file-notify--test-make-temp-name) (file-notify-test01-add-watch, file-notify-test03-events) (file-notify-test05-file-validity) (file-notify-test09-watched-file-in-watched-dir) (file-notify-test10-sufficient-resources): Use it. (Bug#30057)
| * Tag some unstable tests, and skip by default (bug#24503)Glenn Morris2018-01-093-5/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | * Makefile.in (check-all): New phony target. * test/Makefile.in (SELECTOR_DEFAULT, SELECTOR_EXPENSIVE): Also skip unstable tests. (SELECTOR_ALL): New variable. (check-all): New phony target. * test/lisp/emacs-lisp/eieio-tests/eieio-test-methodinvoke.el (eieio-test-method-order-list-6): * test/lisp/emacs-lisp/eieio-tests/eieio-tests.el (eieio-test-37-obsolete-name-in-constructor): Mark as unstable rather than skipping on hydra.nixos.org.
* | cl-loop: Add missing guard conditionTino Calancha2018-01-081-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Consider the expansion of `cl-loop' with a `for' clause and more than one internal variables, X, Y, processed in parallel. Each step updates X and Y right after update the loop variable, K; if either X or Y depend on K, then some forms of the body are evaluated with the wrong K (Bug#29799). For instance, consider the following code: (cl-loop for k below 2 for x = (progn (message "k = %d" k) 1) and y = 1) This code should show in *Messages*: k = 0 k = 1 Instead, the code shows: k = 0 k = 1 k = 2 To prevent this we must ensure that the loop condition is still satisfied right after update the loop variable. In the macro expansion of the example above, right after: (setq k (+ k 1)) evaluate the rest of the body forms iif the condition (< k 2) is still valid. * lisp/emacs-lisp/cl-macs.el (cl--loop-guard-cond): New variable. (cl--parse-loop-clause): Set it non-nil if the loop contains a for/as clause. (cl-loop): After update the loop variable, evaluate the remaining of the body forms just if the loop condition is still valid (Bug#29799). * test/lisp/emacs-lisp/cl-macs-tests.el (cl-macs-loop-for-as-equals-and): New test.
* | Make tramp-tests.el more robust on w32Michael Albinus2018-01-071-22/+49
| | | | | | | | | | | | | | | | | | | | | | * test/lisp/net/tramp-tests.el (tramp-test21-file-links): Do not call `make-symbolic-link' on w32. (tramp-test36-find-backup-file-name): Call also `convert-standard-filename' due to w32. (tramp--test-windows-nt): New defun. (tramp-test42-auto-load, tramp-test42-delay-load) (tramp-test42-recursive-load, tramp-test42-remote-load-path): Quote command due to w32.
* | ; Adapt a unit test to a recent changePhilipp Stephani2018-01-071-2/+1
| | | | | | | | | | * test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-tests--old-style-backquotes): Fix expected error message.
* | Improve error message for old-style backquotesPhilipp Stephani2018-01-071-2/+1
| | | | | | | | | | | | | | | | * src/lread.c (load_error_old_style_backquotes): Improve error message if no file is being loaded. * test/src/lread-tests.el (lread-tests--force-new-style-backquotes): Adapt test.
* | Add new variable to force new-style backquote interpretation.Philipp Stephani2018-01-071-0/+8
| | | | | | | | | | | | | | | | | | | | | | * src/lread.c (syms_of_lread): Add new variable 'force-new-style-backquotes'. (read_internal_start): Use it. * test/src/lread-tests.el (lread-tests--force-new-style-backquotes): New test. * etc/NEWS: Document new variable.
* | Revert "Prevent name clashes between CL structures and builtin types"Philipp Stephani2018-01-072-42/+0
| | | | | | | | | | This reverts commit 151496a4b96430924bc148f85b9c8471d1e132b1. That commit breaks bootstrap builds due to a cyclic dependency.
* | Ignore escape characters for context-sensitive quotes (Bug#29812)Philipp Stephani2018-01-071-0/+18
| | | | | | | | | | | | | | | | | | | | * lisp/electric.el (electric-quote-post-self-insert-function): Skip over escape characters when determining whether a context-sensitive quote should be opening or closing. * test/lisp/electric-tests.el (electric-quote-replace-double-escaped-open) (electric-quote-replace-double-escaped-close): New unit tests.
* | Fix a small bug in electric quoting.Philipp Stephani2018-01-071-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | Before this commit, if 'electric-quote-replace-double' is non-nil, typing " '" turned into " ‘" even if 'electric-quote-context-sensitive' was nil. * lisp/electric.el (electric-quote-post-self-insert-function): Insert context-sensitive double quote only if the last character is actually a double quote character. * test/lisp/electric-tests.el (electric-quote-replace-double-no-context-single): New unit test.
* | Prevent name clashes between CL structures and builtin typesPhilipp Stephani2018-01-072-0/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/cl-preloaded.el (cl-struct-define): Don't allow structures with the same names as builtin types. (cl--struct-name-p): New helper function. * lisp/emacs-lisp/cl-macs.el (cl-defstruct): Don't allow structures with the same names as builtin types. * test/lisp/emacs-lisp/cl-macs-tests.el (cl-defstruct/builtin-type): * test/lisp/emacs-lisp/cl-preloaded-tests.el (cl-struct-define/builtin-type): New unit tests. * etc/NEWS: Document changed behavior.
* | Add new Tramp connection method "owncloud"Michael Albinus2018-01-051-7/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/misc/tramp.texi (all): Use @acronym{GNOME} thoroughly. (Using GNOME Online Accounts based methods): Rename from "Using Google Drive". Add `owncloud'. (GVFS based methods): Add `owncloud'. * etc/NEWS: Add Tramp connection method "owncloud". * lisp/net/tramp-gvfs.el (tramp-gvfs-methods): Add "owncloud". Remove goa methods if not supported. (tramp-goa-methods, tramp-goa-service, tramp-goa-path) (tramp-goa-path-accounts, tramp-goa-interface-documents) (tramp-goa-interface-printers, tramp-goa-interface-files) (tramp-goa-interface-contacts, tramp-goa-interface-calendar) (tramp-goa-interface-oauth2based) (tramp-goa-interface-account, tramp-goa-identity-regexp) (tramp-goa-interface-mail, tramp-goa-interface-chat) (tramp-goa-interface-photos, tramp-goa-path-manager) (tramp-goa-interface-documents) (tramp-gvfs-owncloud-default-prefix) (tramp-gvfs-owncloud-default-prefix-regexp): New defconst. (tramp-goa-name): New defstruct. (tramp-gvfs-stringify-dbus-message): Handle all consp messages. (tramp-dbus-function, tramp-gvfs-get-remote-prefix) (tramp-get-goa-accounts): New defun. (with-tramp-dbus-call-method): Use it. (with-tramp-dbus-get-all-properties): New defmacro. (tramp-gvfs-url-file-name) (tramp-gvfs-handler-mounted-unmounted) (tramp-gvfs-connection-mounted-p, tramp-gvfs-mount-spec): Map between "owncloud" and "davs". (tramp-gvfs-maybe-open-connection): Set "vector" connection property. * test/lisp/net/tramp-tests.el (tramp-gvfs-handler-askquestion): Suppress run in tests. (tramp--test-owncloud-p): New defun. (tramp-test11-copy-file, tramp-test12-rename-file): Use it.
* | Improve backward compatibility in tramp-archiveMichael Albinus2018-01-041-1/+2
| | | | | | | | | | | | | | | | | | | | * lisp/net/tramp-archive.el (tramp-archive-handle-temporary-file-directory): Use `tramp-compat-temporary-file-directory'. * test/lisp/net/tramp-archive-tests.el (tramp-archive-test37-make-nearby-temp-file): Wrap `temporary-file-directory' call with `with-no-warnings'.
* | Write proper `write-region' message in Tramp backendsMichael Albinus2018-01-041-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp-adb.el (tramp-adb-handle-write-region): * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-write-region): * lisp/net/tramp-sh.el (tramp-sh-handle-write-region): * lisp/net/tramp-smb.el (tramp-smb-handle-write-region): Write proper message. * lisp/net/tramp.el (tramp-message-show-message): Change default. * test/lisp/net/tramp-tests.el (ert-x): Require it. (tramp-test10-write-region): Extend test.
* | Remove superfluous test data for TrampMichael Albinus2018-01-024-4/+0
| |
* | Update copyright year to 2018Paul Eggert2018-01-018-8/+8
| | | | | | | | Run admin/update-copyright.
* | Merge from origin/emacs-26Paul Eggert2018-01-01229-230/+229
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 63b04c11d5 Fix copyright years by hand 5c7dd8a783 Update copyright year to 2018 220a9ecba1 Merge from Gnulib 312c565566 Don't add empty keyboard macro to macro ring (Bug#24992) 39ca289a7a Allow customization of decoding of "man" command f8240815ea * etc/NEWS: Add security consideration note on passphrase ... 0c78822c70 Fix subtle problem with scroll-down when scroll-margin is ... acd289c5a4 Fix problems with indexing in User manual b240c7846b * lisp/help.el (describe-key): Only (copy-sequence elt) wh... e879a5444a * src/buffer.c (Frestore_buffer_modified_p): Fix bug#29846 81b1028b63 Improve documentation of 'inhibit-modification-hooks' and ... 7175496d7a Fix doc string of 'enable-recursive-minibuffers' 5b38406491 Fix documentation of delsel and of killing text # Conflicts: # etc/NEWS # etc/refcards/ru-refcard.tex
| * Fix copyright years by handPaul Eggert2018-01-012-2/+2
| | | | | | | | | | These are dates that admin/update-copyright did not update, or updated incorrectly.
| * Update copyright year to 2018Paul Eggert2018-01-01227-227/+227
| | | | | | | | Run admin/update-copyright.
| * Don't add empty keyboard macro to macro ring (Bug#24992)Gemini Lasswell2017-12-311-1/+0
| | | | | | | | | | | | | | | | * lisp/kmacro.el (kmacro-end-call-mouse): Don't save a newly defined macro if it is empty. * test/lisp/kmacro-tests.el (kmacro-tests-end-and-call-macro-mouse): Remove expected failure tag.
* | Improve error reporting when serializing non-Unicode strings to JSONPhilipp Stephani2017-12-301-7/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | * src/coding.c (utf8_string_p): New helper function. (syms_of_coding) <utf-8-unix>: Move from json.c. * src/json.c (json_check_utf8): New helper function. (lisp_to_json_toplevel_1, lisp_to_json): Use it. To save a bit of time, check for invalid UTF-8 strings only after encountering an error, since Jansson already rejects them. * test/src/json-tests.el (json-serialize/invalid-unicode): Adapt expected error symbol.
* | Remove uses of `cl` from test/ subdirectoryStefan Monnier2017-12-272-17/+15
| | | | | | | | | | | | * test/lisp/gnus/gnus-tests.el: Remove unneeded (require 'cl). * test/lisp/net/gnutls-tests.el: Use cl-lib and pcase.
* | Add more Unicode test cases for JSON conversionPhilipp Stephani2017-12-241-5/+21
| | | | | | | | | | | | * test/src/json-tests.el (json-parse-string/string) (json-serialize/string, json-serialize/invalid-unicode) (json-parse-string/invalid-unicode): Add more Unicode test cases.
* | Accept alists when serializing JSONPhilipp Stephani2017-12-241-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | * src/json.c (lisp_to_json_toplevel_1): Also accept alists representing objects. * src/json.c (Fjson_serialize): Update docstring. * test/src/json-tests.el (json-serialize/object): Add unit tests for serializing alists. * doc/lispref/text.texi (Parsing JSON): Document that serialization functions accept alists.