aboutsummaryrefslogtreecommitdiffstats
path: root/test (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* | query-replace undo: Handle when user edits the replacement stringTino Calancha2018-05-261-49/+88
| | | | | | | | | | | | | | | | | | | | | | * lisp/replace.el (perform-replace): Update the replacement string after the user edit it (Fix Bug#31538). * test/lisp/replace-tests.el (replace-tests-clauses): New function. (replace-tests-bind-read-string): New variable. (replace-tests-with-undo): Macro to create boilerplate code. (query-replace-undo-bug31073): Use it. (query-replace-undo-bug31538): New test.
* | Fix file name completion in TrampMichael Albinus2018-05-241-0/+8
| | | | | | | | | | | | | | | | * lisp/net/tramp.el (tramp-handle-file-name-directory): Fix case of localname starts w/o a slash. * test/lisp/net/tramp-tests.el (tramp-test06-directory-file-name): Extend test.
* | Honor print-charset-text-property value of nil (Bug#31376)Noam Postavsky2018-05-231-0/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/print.c (print_check_string_charset_prop): Move check for nil Vprint_charset_text_property from here... (print_prune_string_charset): ... to here. (syms_of_print) <print-charset-text-property>: Clarify that any non-boolean values are treated the same as `default'. * doc/lispref/streams.texi (Output Variables): Add print-prune-string-charset. * test/src/print-tests.el (print-charset-text-property-nil) (print-charset-text-property-default) (print-charset-text-property-t): New tests. (print-tests--prints-with-charset-p): New helper function.
* | Fix corner case in query-replace-regexp undoTino Calancha2018-05-231-0/+20
| | | | | | | | | | | | | | This commit fixes Bug#31492. * lisp/replace.el (replace-match-maybe-edit): Preserve match data. * test/lisp/replace-tests.el (query-replace-undo-bug31492): Add test.
* | 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.
* | Fix failed assertion when load-force-doc-stringsPaul Eggert2018-05-221-0/+4
| | | | | | | | | | | | | | Problem reported by Philipp Stephani (Bug#31556). * src/lread.c (read_vector): When load_force_doc_strings, check for byte code vectors that are invalid because they are too short. * test/src/lread-tests.el (lread-invalid-bytecodes): New test.
* | 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.
* | Don’t assume ordering in make-process/mix-stderrPaul Eggert2018-05-211-1/+14
| | | | | | | | | | | | | | * test/src/process-tests.el (process-tests--mixable): New function. (make-process/mix-stderr): Don’t assume stdout is merged before stderr. POSIX does not require this, and the assumption failed to hold on my Fedora 28 platform. See Bug#31214.
* | 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.
* | Merge from origin/emacs-26Glenn Morris2018-05-071-24/+24
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | 1d732d6 (origin/emacs-26) Fix gud-statement for pdb 91a68b5 ; * msdos/INSTALL: Add info about GCC versions. 7ddcc9a Document 'custom-group' 58f9e15 A minor addition to etc/DEBUG 4590414 Avoid errors in ispell.el when Enchant returns empty extra chars d0d75f9 Make 'ispell-initialize-spellchecker-hook' work again b90ce66 Handle selected_window change in prepare_menu_bars (Bug#31312) 79ad0b3 ; * INSTALL: Fix Emacs version number. (Bug#31358) 91de88b Fix report-emacs-bug via mailclient on MS-Windows f4b5ff2 Port collation tests to glibc 2.27
| * Port collation tests to glibc 2.27Paul Eggert2018-05-021-24/+24
| | | | | | | | | | | | | | * test/src/fns-tests.el (fns-tests-collate-strings) (fns-tests-collate-sort): Don’t make unportable assumptions about how en_US.UTF-8 collation works. These assumptions are not true on Fedora 28, which ships with glibc 2.27.
* | 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-022-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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'.
* | * test/src/process-tests.el (make-process/mix-stderr): Skip on hydra.Glenn Morris2018-04-301-0/+3
| |
* | * lisp/subr.el (dotimes): Deprecate RESULT field. (Bug#16206)Juri Linkov2018-04-282-6/+9
| | | | | | | | | | | | | | | | | | * 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-282-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | * 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
| |
* | Merge from origin/emacs-26Glenn Morris2018-04-201-0/+8
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5de608f (origin/emacs-26) Update the documentation of 'perform-replace' 06245b6 * etc/NEWS: Another fix for the last change (noted by Juri Li... 8f6293c Fix use of @key in Texinfo manuals f4c9894 Improve documentation of actual arglist ce0e253 ; * etc/NEWS: Improve last change as proposed by Phil Sainty b89ff0e Don't assume term-current-row cache is valid (Bug#31193) 326a296 ; * etc/NEWS: Mention 'display-buffer-in-major-side-window' c... 3bdc9a1 Fix flyspell-auto-correct-previous-word broken by recent change a539eb5 * test/src/lread-tests.el (lread-test-bug-31186): New test. 3fa472b Fix undefined behaviour while looking for lexical-binding fil... 4341aac Minor wording improvement in "Bookmarks" Conflicts: test/src/lread-tests.el
| * * test/src/lread-tests.el (lread-test-bug-31186): New test.Eli Zaretskii2018-04-171-0/+8
| |
* | * test/src/process-tests.el (make-process/mix-stderr): Use bash.Glenn Morris2018-04-181-3/+3
| | | | | | | | Not all shells support ">&2".
* | Fix signal for large integers with valid syntaxPaul Eggert2018-04-171-0/+5
| | | | | | | | | | | | * src/lread.c (read_integer): If a radixed integer has valid syntax but is waayyy too large, signal overflow instead of invalid syntax. * test/src/lread-tests.el (lread-long-hex-integer): New test.
* | Avoid undefined behavior in 'defvar' (Bug#31072)Philipp Stephani2018-04-151-0/+4
| | | | | | | | | | * src/eval.c (Fdefvar): Check that first argument is a symbol. * test/src/eval-tests.el (defvar/bug31072): New unit test.
* | 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>.
* | Add tests for buffer-base-buffer function (Bug#30905)Shanavas M2018-04-111-0/+10
| | | | | | | | | | | | * test/src/buffer-tests.el (test-buffer-base-buffer-indirect) (test-buffer-base-buffer-non-indirect): New tests for `buffer-base-buffer'.
* | 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.
* | Document that 'make-process' mixes the output streamsPhilipp Stephani2018-04-071-0/+18
| | | | | | | | | | | | | | | | * doc/lispref/processes.texi (Asynchronous Processes): * src/process.c (Fmake_process): Document that standard error is mixed with standard output if STDERR is nil. * test/src/process-tests.el (make-process/mix-stderr): New unit 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.