aboutsummaryrefslogtreecommitdiffstats
path: root/test/lisp (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* | More helpful docstrings for tests of electric-tests.elJoão Távora2018-05-221-6/+22
| | | | | | | | | | * test/lisp/electric-tests.el (electric-pair-define-test-form): Improve automatically generated docstring.
* | Extend secrets.el by searching for object paths.Michael Albinus2018-05-221-1/+4
| | | | | | | | | | | | | | | | * lisp/net/secrets.el (secrets-search-item-paths): New function. (secrets-search-items): Use it. (secrets-create-item): Adapt docstring. * test/lisp/net/secrets-tests.el (secrets-test04-search): Extend test.
* | Fix Flymake's ruby-mode tests when user has "rubocop" installedJoão Távora2018-05-211-5/+9
| | | | | | | | | | | | | | | | | | | | The Flymake test suite fails if the "rubocop" program is installed, because the ruby-flymake-rubocop backend is selected automatically by ruby-flymake-auto. The test was designed for ruby-flymake-simple, tough, and fails. * test/lisp/progmodes/flymake-tests.el (ruby-backend): Ensure this test runs exclusively with the ruby-flymake-simple backend.
* | Fix Bug#31489Michael Albinus2018-05-211-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/misc/tramp.texi (Frequently Asked Questions): Mention `tramp-ignored-file-name-regexp'. Improve index. ; * etc/NEWS: Mention `tramp-ignored-file-name-regexp'. * lisp/net/tramp.el (tramp-ignored-file-name-regexp): New defcustom. (tramp-tramp-file-p): Use it. Check also for `tramp-mode'. (tramp-file-name-handler): Don't check for `tramp-mode'. (Bug#31489) * test/lisp/net/tramp-tests.el (tramp-test01-file-name-syntax): Extend test.
* | Use “Cc” for email copies, as per RFC 5322.Paul Eggert2018-05-201-2/+2
| | | | | | | | | | | | Also fix similar problems with Bcc, Fcc, In-Reply-To, and similar email headers. See thread starting at: https://lists.gnu.org/r/emacs-devel/2018-05/msg00463.html
* | Fix bugs in `auth-source-netrc-parse-one'.Filipp Gunbin2018-05-171-0/+19
| | | | | | | | | | | | | | | | * lisp/auth-source.el (auth-source-netrc-parse-one): Ensure that match data is not overwritten in `auth-source-netrc-parse-next-interesting'. Ensure that blanks are skipped before and after going over comments and eols. * test/lisp/auth-source-tests.el (auth-source-test-netrc-parse-one): New test.
* | Fix creation of Secret Service items in auth-sourceMichael Albinus2018-05-162-3/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/auth-source.el (auth-source-secrets-create): Use ´apply'. (auth-source-secrets-saver): Handle `auth-source-save-behavior' equal t. * lisp/net/secrets.el (secrets-get-items): Do not call `secrets-open-session' here ... (top): ... but here. * test/lisp/auth-source-tests.el (auth-source-test-secrets-create-secret): Bind `auth-source-save-behavior' to t. Cleanup. * test/lisp/net/secrets-tests.el (secrets-test00-availability): After loading secets.el, a session is already opened. (secrets-test02-collections, secrets-test03-items) (secrets-test04-search): Open a new session.
* | esh-opt.el: Add a :parse-leading-options-only argument (Bug#28323)Jay Kamat2018-05-151-0/+124
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/eshell/esh-opt.el (eshell-eval-using-options): Add a new :parse-leading-options-only argument which ignores dash/switch arguments after the first positional argument. (eshell--process-args): Abort processing of arguments if we see one positional argument and :parse-leading-options-only is set. * lisp/eshell/em-tramp.el (eshell/sudo): Use :parse-leading-options-only, to avoid parsing subcommand switches as switches of sudo itself. * test/lisp/eshell/esh-opt-tests.el: Add tests for new and old behavior.
* | Fix Bug#29575Michael Albinus2018-05-151-28/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/secrets.el (secrets-create-item): The new item does not need a unique label. (secrets-item-path, secrets-get-secret, secrets-get-attributes) (secrets-get-attribute, secrets-delete-item): ITEM can also be an object path. (Bug#29575) * test/lisp/net/secrets-tests.el (secrets-test03-items): Test also creation of two items with same label. Test `secrets-get-secret', `secrets-get-attribute' and `secrets-get-attributes' with object path. (secrets-test04-search): Harden test.
* | Run python test if the python executable is foundTino Calancha2018-05-151-0/+1
| | | | | | | | | | * test/lisp/progmodes/python-tests.el (python-tests--bug31398): Skip test when executable python is no found.
* | run-python: Make the buffer running python currentTino Calancha2018-05-151-0/+8
| | | | | | | | | | | | | | | | * lisp/progmodes/python.el (run-python, python-shell-make-comint): Make the buffer running the inferior python process the current buffer (Bug#31398). * test/lisp/progmodes/python-tests.el (python-tests--bug31398): Add test.
* | Fix a broken testBasil L. Contovounesios2018-05-151-19/+40
| | | | | | | | | | * lisp/simple.el (shell-command): Use call-process-shell-command, start-process-shell-command, and file-attribute-size. (bug#30280)
* | Tramp updatesMichael Albinus2018-05-111-1/+1
| | | | | | | | | | | | | | | | * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-attributes): Parse multibyte symlinks correctly. * test/lisp/net/tramp/tramp-tests.el (tramp--test-utf8): Improve backward compatibility.
* | Fix Bug#31272Michael Albinus2018-05-061-23/+24
| | | | | | | | | | | | | | | | | | | | * lisp/net/tramp-sh.el (tramp-do-file-attributes-with-ls) (tramp-do-directory-files-and-attributes-with-stat) (tramp-sh-handle-insert-directory): Use "--show-control-chars". (tramp-convert-file-attributes): Decode multibyte strings, produced by "stat". (Bug#31272) * test/lisp/net/tramp-tests.el (tramp--test-utf8): Extend test.
* | Fix off-by-one history pruning (bug#31211)Basil L. Contovounesios2018-05-021-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/subr.el (add-to-history): Clarify docstring. Protect against negative history-length and unnecessary variable modification, as per read_minibuf. * lisp/ido.el (ido-record-command): * lisp/international/mule-cmds.el (deactivate-input-method): (set-language-environment-input-method): * lisp/isearch.el (isearch-done): * lisp/minibuffer.el (read-file-name-default): * lisp/net/eww.el (eww-save-history): * lisp/simple.el (edit-and-eval-command, repeat-complex-command): (command-execute, kill-new, push-mark): * src/callint.c (Fcall_interactively): * src/minibuf.c (read_minibuf): Delegate to add-to-history. * test/lisp/simple-tests.el (command-execute-prune-command-history): * test/src/callint-tests.el (call-interactively-prune-command-history): New tests.
* | Fix some edge cases of tramp-smbMichael Albinus2018-05-021-45/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp-smb.el (tramp-smb-errors): Add "NT_STATUS_REVISION_MISMATCH". (tramp-smb-handle-delete-directory): Check, that the directory has been removed indeed. (tramp-smb-get-localname): Add further checks on filename syntax. * lisp/net/tramp.el (tramp-localname-regexp): Do not allow linefeeds. * test/lisp/net/tramp-tests.el (tramp-smb-get-localname): Declare. (auth-source-save-behavior): Set it to nil. (tramp-test01-file-name-syntax): Extend, checking for linefeeds. (tramp-test03-file-name-host-rules, tramp--test-utf8): Refine tests. (tramp-test03-file-name-method-rules): New test. (tramp--test-ignore-add-name-to-file-error): New defmacro. (tramp-test21-file-links): Use it.
* | Rewrite `url-domain' to avoid network trafficLars Ingebrigtsen2018-05-011-0/+12
| | | | | | | | | | | | | | | | * lisp/url/url-util.el (url-domain): Don't talk DNS to determine the domain, because this is slow. * test/lisp/url/url-util-tests.el (url-domain-tests): Add tests for `url-domain'.
* | * lisp/subr.el (dotimes): Deprecate RESULT field. (Bug#16206)Juri Linkov2018-04-281-4/+6
| | | | | | | | | | | | | | | | | | * doc/lispref/control.texi (Iteration): * doc/misc/cl.texi (Iteration): Document deprecation of its use. * doc/lispintro/emacs-lisp-intro.texi (dotimes): * test/src/emacs-module-tests.el (multiply-string): * test/lisp/filenotify-tests.el (file-notify-test07-many-events): Place RESULT field after the form.
* | Fix documentation and tests for 'string-distance'Eli Zaretskii2018-04-281-18/+0
| | | | | | | | | | | | | | | | | | | | | | | | * src/fns.c (Fstring_distance): Doc fix. * doc/lispref/strings.texi (Text Comparison): Document 'string-distance'. * etc/NEWS: Fix wording and mark as documented in the manuals. * test/src/fns-tests.el (test-string-distance): Move from subr-tests.el and rename.
* | New function 'string-distance'Chen Bin2018-04-281-0/+18
| | | | | | | | | | | | | | | | | | * src/fns.c (Fstring_distance): New primitive. (syms_of_fns): Defsubr it. * test/lisp/subr-tests.el (subr-tests--string-distance): New test. * etc/NEWS: Mention 'string-distance'.
* | Fix cl-print for circular sublists (Bug#31146)Noam Postavsky2018-04-261-0/+10
| | | | | | | | | | | | | | * lisp/emacs-lisp/cl-print.el (cl-print-object) <cons>: Push each element of list being printed onto cl-print--currently-printing. * test/lisp/emacs-lisp/cl-print-tests.el (cl-print-circle-2): New test.
* | Let Tramp save passwordsMichael Albinus2018-04-231-3/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/auth-source.el (auth-source-secrets-saver): New defun. (auth-source-secrets-create): Use it. * lisp/net/secrets.el (secrets-struct-secret-content-type): (secrets-create-item): Do not hard-code :xdg:schema. * lisp/net/tramp.el (tramp-password-save-function): New defvar. (tramp-read-passwd): Set it properly. (tramp-process-actions): * lisp/net/tramp-gvfs.el (tramp-gvfs-maybe-open-connection): Save password. * lisp/net/tramp-cmds.el (tramp-bug): Don't report `tramp-password-save-function'. * test/lisp/net/secrets-tests.el (secrets-test03-items): Extend test with another :xdg:schema.
* | Add a test suite for text-property-searchLars Ingebrigtsen2018-04-221-0/+113
| |
* | Fix Bug#30246Michael Albinus2018-04-131-3/+31
| | | | | | | | | | | | | | | | | | | | | | * lisp/auth-source.el (auth-source-secrets-search): Do not suppress creation. (auth-source-secrets-create): Implement it. (Bug#30246) * lisp/net/secrets.el (secrets-debug): Set default to nil. * test/lisp/auth-source-tests.el (secrets): Require it. (auth-source-test-secrets-create-secret): New test.
* | Remove repetitions from recipient addresses in MessageLars Ingebrigtsen2018-04-121-0/+9
| | | | | | | | | | | | * lisp/gnus/message.el (message--alter-repeat-address): New function. (message-get-reply-headers): Use it to remove repetitions on the form "foo@bar.com" <foo@bar.com>.
* | Preserve case in query-replace undoTino Calancha2018-04-091-0/+20
| | | | | | | | | | | | | | | | If the user query and replaces 'foo' with 'BAR', then undo must comeback to 'foo', not to 'FOO' (Bug#31073). * lisp/replace.el (perform-replace): Bind nocasify to non-nil value during undo/undo-all actions. * test/lisp/replace-tests.el (query-replace-undo-bug31073): Add test.
* | Handle quotation marks and apostrophes in ‘sgml-quote’Michal Nazarewicz2018-04-071-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To be able to use text in an HTML argument, quotation marks need to be replaced with an appropriate character reference. Make ‘sgml-quote’ do that. While at it, fix entiteis not being unquoted if they lack closing semicolon (e.g. ‘&amp’) occuring at the very end of a region. Even though unlikely, make ‘sgml-quote’ handle this scenario. * lisp/textmodes/sgml-mode.el (sgml-quote): Handle quotation marks and apostrophes. Match entities lacking semicolon at the end of regions. * test/lisp/textmodes/sgml-mode-tests.el (sgml-quote-works): New test case for ‘sgml-quote’ function.
* | Make dbus.el fitter for Emacs configured --without-dbusMichael Albinus2018-04-061-6/+1
| | | | | | | | | | | | * lisp/net/dbus.el (dbus-error, dbus-debug): Define if not exist. * test/lisp/net/secrets-tests.el: Revert 51c8369fa2 and 79a3ad9592.
* | Require secrets.el iif Emacs has dbusbind supportTino Calancha2018-04-061-1/+1
| | | | | | | | | | * test/lisp/net/secrets-tests.el: Require secrets.el if and only if, Emacs has been compiled with dbusbind support.
* | Run secrets suite test when Emacs has dbus supportTino Calancha2018-04-061-0/+5
| | | | | | | | | | | | | | * test/lisp/net/secrets-tests.el (secrets-test00-availability) (secrets-test01-sessions, secrets-test02-collections) (secrets-test03-items, secrets-test04-search): Skip test unless Emacs is compiled with dbus support.
* | Add tests for secrets.elMichael Albinus2018-04-051-0/+234
| | | | | | | | | | | | | | * lisp/net/secrets.el (secrets-lock-collection): New defun. (secrets-search-items, secrets-create-item): Fix structure of :dict-entry. * test/lisp/net/secrets-tests.el: New package.
* | * test/lisp/gnus/message-tests.el (message-all-epg-keys-available-p):Glenn Morris2018-04-051-0/+1
| | | | | | | | Add skip condition.
* | Honor dired-create-destination-dirs if copying/renaming >1 filesTino Calancha2018-04-051-0/+21
| | | | | | | | | | | | | | | | Check `dired-create-destination-dirs' when the user wants to copy/rename several files. * lisp/dired-aux.el (dired-do-create-files): Call `dired-maybe-create-dirs' right before bind `into-dir' (Bug#30624). * test/lisp/dired-aux-tests.el (dired-test-bug30624): Add test.
* | Detect if a message can be encrypted and add an MML tagDamien Cassou2018-04-041-0/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/gnus/message.el (message-all-recipients): Return a list of pairs, one for each recipient in To, Cc, Bcc. (message-all-epg-keys-available-p): Check that there is a public key in epg for each recipient of the current message. (message-sign-encrypt-if-all-keys-available): Add MML tag to sign and encrypt current message if there is a public key for every recipient in current message. * test/lisp/gnus/message-tests.el (message-all-recipients): Test for message-all-recipients.
* | Fix Testcover bug in handling of vectors containing dotted listsGemini Lasswell2018-04-021-6/+13
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/testcover.el (testcover-analyze-coverage-compose): Handle dotted lists. Fix bug#30909. * test/lisp/emacs-lisp/testcover-resources/testcases.el: (dotted-list-in-vector-bug-30909): New test case. (quotes-within-backquotes-bug-25316, dotted-backquote) (quoted-backquote, backquoted-vector-bug-25316) (vector-in-macro-spec-bug, backquoted-dotted-alist): Change docstrings to mention analyzing code instead of reinstrumenting it.
* | Improve Tramp test performanceMichael Albinus2018-03-301-2/+4
| | | | | | | | | | | | | | | | * lisp/net/tramp.el (tramp-backtrace): Improve performance. * test/lisp/net/tramp-tests.el (tramp-test03-file-name-host-rules): Skip for older Emacsen. (tramp-test39-utf8): Remove instrumentation.
* | Fix Bug#30946Michael Albinus2018-03-291-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/misc/tramp.texi (Multi-hops): Mention host name checks. * lisp/net/tramp.el (tramp-set-syntax, tramp-dissect-file-name) (tramp-debug-message, tramp-handle-shell-command): * lisp/net/tramp-adb.el (tramp-adb-handle-shell-command): * lisp/net/tramp-archive.el (tramp-archive-file-name-handler) (tramp-archive-dissect-file-name): * lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler): Adapt callees. * lisp/net/tramp-compat.el (tramp-compat-user-error): Move defsubst --- * lisp/net/tramp-sh.el (tramp-compute-multi-hops): Check for proper host names in multi-hop. (Bug#30946) * lisp/net/tramp.el (tramp-user-error): ... here. Make it a defun. * test/lisp/net/tramp-tests.el (tramp-test03-file-name-host-rules): New test.
* | Test notify handlers only if file notificationPaul Eggert2018-03-281-0/+1
| | | | | | | | | | | | * test/lisp/files-tests.el: (files-file-name-non-special-notify-handlers): Skip if file notification is not available.
* | Remove unstable tags in TrampMichael Albinus2018-03-281-4/+3
| | | | | | | | | | | | * test/lisp/net/tramp-tests.el (tramp-test39-utf8) (tramp-test39-utf8-with-stat, tramp-test39-utf8-with-perl) (tramp-test39-utf8-with-ls): Remove :unstable tag.
* | Improve tramp--test-utf8Michael Albinus2018-03-281-1/+3
| | | | | | | | | | | | * test/lisp/net/tramp-tests.el (tramp--test-check-files): Encode string when testing environment variables. (tramp--test-utf8): Remove "TaiViet" test.
* | (benchmark-run-compiled): Make it work like 'benchmark-run' againStefan Monnier2018-03-271-7/+13
| | | | | | | | | | * lisp/emacs-lisp/benchmark.el (benchmark-run): Add special case for nil repetitions.
* | * test/lisp/emacs-lisp/bytecomp-tests.elGlenn Morris2018-03-261-0/+33
| | | | | | | | (bytecomp-test-featurep-warnings): New.
* | Fix problem with trailing slash in TrampMichael Albinus2018-03-261-7/+9
| | | | | | | | | | | | | | | | | | | | * lisp/net/tramp.el (tramp-handle-file-truename): * lisp/net/tramp-adb.el (tramp-adb-handle-file-truename): * lisp/net/tramp-sh.el (tramp-sh-handle-file-truename): Fix problem with trailing slash. * test/lisp/net/tramp-tests.el (tramp-test21-file-links): Test also quoted directories.
* | Avoid Fortran-style floating-point optimizationPaul Eggert2018-03-231-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When optimizing arithmetic operations, avoid optimizations that are valid for mathematical numbers but invalid for floating-point. For example, do not optimize (+ 1 v 0.5) to (+ v 1.5), as they may not be the same due to rounding errors. In general, floating-point numbers cannot be constant-folded, since that would make .elc files platform-dependent. * lisp/emacs-lisp/byte-opt.el (byte-optimize-associative-math): Do not optimize floats. (byte-optimize-nonassociative-math, byte-optimize-approx-equal) (byte-optimize-delay-constants-math, byte-compile-butlast) (byte-optimize-logmumble): Remove; no longer used. (byte-optimize-minus): Do not optimize (- 0 x) to (- x). (byte-optimize-multiply): Do not optimize (* -1 x) to (- x). (byte-optimize-divide): Do not optimize (/ x -1) to (- x). (logand, logior, logxor): Optimize with byte-optimize-predicate instead of with byte-optimize-logmumble. * test/lisp/emacs-lisp/bytecomp-tests.el: (byte-opt-testsuite-arith-data): Add a couple of test cases.
* | Instrument tramp-test39-utf8Michael Albinus2018-03-231-2/+4
| | | | | | | | | | | | * test/lisp/net/tramp-tests.el (tramp--test-expensive-test): Add the test name to the template. (tramp-test39-utf8): Instrument test.
* | Merge from origin/emacs-26Glenn Morris2018-03-221-10/+111
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8ac621b (origin/emacs-26) Document DEFUN attributes 16d0cc7 * etc/NEWS: Add an entry for auth-source-pass. cc1702f Fix the MSDOS build daa9e85 Improve warning and error messages 7612dd1 Adjust eieio persistence tests for expected failure f0cf4dc Let eieio-persistent-read read what object-write has written 40ad1ff Handle possible classtype values in eieio-persistent-read 4ec935d Add new tests for eieio persistence 47917d8 * lisp/gnus/gnus-cloud.el (gnus-cloud-synced-files): Fix doc ... e32f352 * lisp/ibuf-ext.el (ibuffer-never-search-content-mode): Fix t... 5268f30 * doc/lispref/windows.texi (Selecting Windows): Fix a typo. 143b485 * doc/lispref/internals.texi (Writing Emacs Primitives): Fix ... 4ab4551 Firm up documentation of generalized variables a5bf099 Improve documentation of Auto-Revert mode ed05eaa Improvements in dired.texi Conflicts: etc/NEWS
| * Adjust eieio persistence tests for expected failureEric Abrahamsen2018-03-221-4/+12
| | | | | | | | | | | | | | | | * test/lisp/emacs-lisp/eieio-tests/eieio-test-persist.el (eieio-test-persist-hash-and-vector, eieio-test-persist-interior-lists): Persistence does not currently handle deeply-nested objects. Expect current failures, and mark for future fixes.
| * Add new tests for eieio persistencePierre Téchoueyres2018-03-221-10/+103
| | | | | | | | | | | | | | | | * test/lisp/emacs-lisp/eieio-tests/eieio-test-persist.el: (hash-equal): New comparison test for hash-tables. (persist-test-save-and-compare): Use test for hash-tables. (eieio-test-persist-hash-and-vector, eieio-test-persist-interior-lists): New tests.
* | Tag tramp-test39-utf8* as :unstableMichael Albinus2018-03-221-3/+4
| | | | | | | | | | | | * test/lisp/net/tramp-tests.el (tramp-test39-utf8) (tramp-test39-utf8-with-stat, tramp-test39-utf8-with-perl) (tramp-test39-utf8-with-ls): Tag the tests as :unstable.
* | Quieten eieio-test compilationGlenn Morris2018-03-213-14/+11
| | | | | | | | | | | | | | * test/lisp/emacs-lisp/eieio-tests/eieio-test-methodinvoke.el: * test/lisp/emacs-lisp/eieio-tests/eieio-test-persist.el: * test/lisp/emacs-lisp/eieio-tests/eieio-tests.el: Remove obsolete name args where not being explicitly tested.