aboutsummaryrefslogtreecommitdiffstats
path: root/test (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Fix copyright.el comment and add a testLars Ingebrigtsen2022-01-261-0/+11
| | | | | | | | | | | | | | | * lisp/emacs-lisp/copyright.el (copyright-find-copyright): Fix comment (bug#7179).
* | | Fix input of sharp-quoted symbols in Eshell with em-extpipeSean Whitton2022-01-261-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/eshell/em-extpipe.el (eshell-parse-external-pipeline): Fix misinterpreting sharp-quoted symbols as the beginning of single-quoted strings (Bug#53518). Add protection against a possible infinite loop. * test/lisp/eshell/em-extpipe-tests.el (em-extpipe-test-17): New test (bug#53518).
* | | Adapt tramp-testsMichael Albinus2022-01-261-1/+1
| | | | | | | | | | | | | | | * test/lisp/net/tramp-tests.el (tramp--test-special-characters): Adapt test candidates.
* | | ; * test/lisp/emacs-lisp/derived-tests.el: Silence byte-compiler.Stefan Kangas2022-01-261-0/+3
| | |
* | | Tag an mml-sec testGlenn Morris2022-01-251-0/+3
| | | | | | | | | | | | | | | * test/lisp/gnus/mml-sec-tests.el (mml-secure-en-decrypt-3): Tag unstable on hydra.nixos.org due to repeated intermittent failures.
* | | Treat "-" as a positional arg in 'eshell-eval-using-options'Jim Porter2022-01-251-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/eshell/esh-opt.el (eshell--process-args): Treat "-" as a positional arg. * lisp/eshell/em-tramp.el (eshell/su): Simplify checking for "-". * test/lisp/eshell/esh-opt-tests.el (esh-opt-test/eval-using-options-stdin): New test.
* | | Don't manipulate args in-place for 'eshell-eval-using-options'Jim Porter2022-01-252-31/+145
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is necessary for preserve the original arguments to forward on to :external commands. Previously, when :preserve-args was also set, the original argument list could be altered, changing the meaning of the command. * lisp/eshell/esh-opt.el (eshell-eval-using-options): Copy MACRO-ARGS when :preserve-args is set, and pass the original value to 'eshell--do-opts'. (eshell--do-opts): Use the original arguments when calling an external command. * lisp/eshell/em-tramp.el (eshell/su, eshell/sudo): Don't copy the original arguments, since 'eshell-eval-using-options' does this for us. * test/lisp/eshell/esh-opt-tests.el (esh-opt-process-args-test): Split this test into... (esh-opt-test/process-args) (esh-opt-test/process-args-parse-leading-options-only) (esh-opt-test/process-args-external): ... these. (test-eshell-eval-using-options): Split this test into... (esh-opt-test/eval-using-options-short) (esh-opt-test/eval-using-options-long) (esh-opt-test/eval-using-options-constant) (esh-opt-test/eval-using-options-user-specified) (esh-opt-test/eval-using-options-short-single-token) (esh-opt-test/eval-using-options-terminate-options) (esh-opt-test/eval-using-options-parse-leading-options-only) (esh-opt-test/eval-using-options-unrecognized): ... these. (esh-opt-test/eval-using-options-external): New test. * test/lisp/eshell/em-tramp-tests.el: New tests.
* | | Add Eshell syntax to more easily bypass Eshell's own pipeliningSean Whitton2022-01-242-2/+207
| | | | | | | | | | | | | | | | | | | | | | | | * etc/NEWS: * doc/misc/eshell.texi (Input/Output): Document the new syntax. * lisp/eshell/em-extpipe.el: New module (Bug#46351). * test/lisp/eshell/em-extpipe-tests.el: New tests. * lisp/eshell/esh-module.el (eshell-modules-list): Add `eshell-extpipe'.
* | | Rework eshell-match-result for testing asynchronous commandsSean Whitton2022-01-242-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When using eshell-match-result via eshell-command-result-p to examine the output of asynchronous Eshell commands, a newly emitted prompt is included in the text against which the regexp is matched. This makes it awkward to match against the whole output; for example, to check whether it is empty. Rework the function to exclude the prompt. * test/lisp/eshell/eshell-tests-helpers.el (eshell-match-result): Exclude any newly emitted prompt from the text against which the regexp is matched. Additionally, the function no longer moves point. * test/lisp/eshell/eshell-tests.el (eshell-test/flush-output): Update and simplify test given how eshell-match-result no longer moves point.
* | | Move Eshell test helpers to their own fileSean Whitton2022-01-242-53/+98
| | | | | | | | | | | | | | | * test/lisp/eshell/eshell-tests.el: * test/lisp/eshell/eshell-tests-helpers.el: Move helpers to own file.
* | | Add derived-mode test for bug#24176Lars Ingebrigtsen2022-01-241-0/+18
| | |
* | | Add new function 'readablep'Lars Ingebrigtsen2022-01-221-0/+4
| | | | | | | | | | | | | | | * doc/lispref/streams.texi (Input Functions): Document it. * lisp/subr.el (readablep): New function (bug#52566).
* | | Add new variable print-unreadable-functionLars Ingebrigtsen2022-01-221-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/streams.texi (Output Variables): Document it. * src/print.c (print_vectorlike): Use the variable. (syms_of_print): New variable print-unreadable-function (bug#52566).
* | | Improve detection of suspicious uses of bidi controlsEli Zaretskii2022-01-221-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/international/textsec.el (textsec-bidi-controls-suspicious-p): New function. (textsec-name-suspicious-p): Use it. * test/lisp/international/textsec-tests.el (test-suspicious-name): Enable the test that was previously failing with 'bidi-find-overridden-directionality'.
* | | Raise an error from 'eval-eval-using-options' for unknown optionsJim Porter2022-01-211-22/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/eshell/em-basic.el (eshell/echo): Add -E option. * lisp/eshell/esh-opt.el (eshell--process-option): Raise an error if an unknown option is encountered, even when :external is nil. * test/lisp/eshell/esh-opt-tests.el (esh-opt-process-args-test) (test-eshell-eval-using-options): Add test cases for this.
* | | Interpret a "" value of EMACS_TEST_VERBOSE as "off"Lars Ingebrigtsen2022-01-211-2/+2
| | | | | | | | | | | | | | | | | | * doc/misc/ert.texi (Running Tests in Batch Mode): Adjust doc. * lisp/emacs-lisp/ert.el (ert-run-tests-batch): Allow overriding the EMACS_TEST_VERBOSE variable by setting it to "" (bug#53313).
* | | Further improve determination of when commands can be invoked directlyJim Porter2022-01-211-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This covers the case when a subcommand is to be invoked in more places than before, for example when a subcommand is concatenated in an argument. * lisp/eshell/esh-cmd.el (eshell--find-subcommands): New fuction. (eshell--invoke-command-directly): Use 'eshell-find-subcommands'. * test/lisp/eshell/eshell-tests.el (eshell-test/interp-cmd-external-concat): New test (bug#30725).
* | | ruby-toggle-block-space-before-parameters: New user optionDmitry Gutov2022-01-211-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/ruby-mode.el (ruby-toggle-block-space-before-parameters): New user option (bug#53321). (ruby-do-end-to-brace): Handle it. * test/lisp/progmodes/ruby-mode-tests.el (ruby-toggle-block-to-brace-no-space): New test.
* | | Make textsec-link-suspicious-p less mistrustfulLars Ingebrigtsen2022-01-201-7/+1
| | | | | | | | | | | | | | | | | | * lisp/international/textsec.el (textsec-link-suspicious-p): Scale back the suspicion -- only warn about texts that contain a full explicit link.
* | | Fix thinko in previous hi-lock-read-face-name changeLars Ingebrigtsen2022-01-201-8/+6
| | | | | | | | | | | | | | | * lisp/hi-lock.el (hi-lock-read-face-name): Fix the string/symbol logic.
* | | Consider subcommands when deciding to invoke Eshell command directlyJim Porter2022-01-201-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When an Eshell command contains an asynchronous subcommand (such as calling an external process), it must be evaluated iteratively. See bug#30725. * lisp/eshell/esh-cmd.el (eshell-invoke-command): Move most of the logic from here... (eshell--invoke-command-directly): ... to here. Also add checks for subcommands. * test/lisp/eshell/eshell-tests.el (eshell-test--max-subprocess-time): New variable. (eshell-wait-for-subprocess): New function. (eshell-command-result-p): Use 'eshell-wait-for-subprocess'. (eshell-test/interp-cmd-external): New test (bug#30725).
* | | Fix Fchar_syntax for non-ASCII in unibyte buffersMattias EngdegÄrd2022-01-201-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fchar_syntax did not convert unibyte characters to multibyte when the current buffer was unibyte, in contrast to `char-syntax` in byte-compiled code (bug#53260). * src/bytecode.c (exec_byte_code): Call out to Fchar_syntax; the dynamic frequency is too low to justify inlining here, and it did lead to implementations diverging. * src/syntax.c (Fchar_syntax): Convert non-ASCII unibyte values to multibyte. * test/src/syntax-tests.el (syntax-char-syntax): New test.
* | | Re-enable some textsec-tests after recent bidi.c fixLars Ingebrigtsen2022-01-201-7/+7
| | |
* | | Add test for bug#51733Lars Ingebrigtsen2022-01-201-1/+4
| | |
* | | Allow suspicious names with some forms of bidi controlsLars Ingebrigtsen2022-01-201-4/+9
| | | | | | | | | | | | | | | * lisp/international/textsec.el (textsec-name-suspicious-p): Allow names with bidi-find-overridden-directionality.
* | | Check link text domain suspiciousnessLars Ingebrigtsen2022-01-201-1/+3
| | | | | | | | | | | | | | | * lisp/international/textsec.el (textsec-link-suspicious-p): Check whether the domain in the link text is suspicious.
* | | Expand textsec-link-suspicious-p checkingLars Ingebrigtsen2022-01-201-1/+7
| | | | | | | | | | | | | | | * lisp/international/textsec.el (textsec-link-suspicious-p): Check the text more thoroughly for link-like things.
* | | Improve textsec-domain-suspicious-p messageLars Ingebrigtsen2022-01-201-0/+4
| | | | | | | | | | | | | | | | | | * lisp/international/textsec.el (textsec-domain-suspicious-p): Ensure that we're not confusing the user if there's a directional override in the string we're checking.
* | | Make textsec-mixed-numbers-p actually workLars Ingebrigtsen2022-01-191-0/+1
| | | | | | | | | | | | | | | * lisp/international/textsec.el (textsec-mixed-numbers-p): Fix the test.
* | | Add text for suspicious linksLars Ingebrigtsen2022-01-191-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/international/textsec-check.el (textsec-check): Note `link'. (textsec-propertize): Fix typo. * lisp/international/textsec.el (textsec-link-suspicious-p): New function. * lisp/net/shr.el (shr-tag-a): Check for sus links.
* | | Make shr mark links with suspicious URLsLars Ingebrigtsen2022-01-191-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/international/textsec-check.el (textsec-propertize): New function. (textsec-check): Only check, don't alter STRING. * lisp/international/textsec.el (textsec-url-suspicious-p): New function. * lisp/net/shr.el (shr-tag-a): Mark suspicious links.
* | | Add new file textsec-check.elLars Ingebrigtsen2022-01-191-5/+10
| | | | | | | | | | | | | | | | | | * lisp/international/textsec-check.el: New file. * lisp/international/textsec.el (textsec-email-address-header-suspicious-p): Rename.
* | | Mark whole-script confusables as suspicious domainsLars Ingebrigtsen2022-01-191-1/+4
| | | | | | | | | | | | | | | | | | | | | * lisp/international/textsec.el (textsec-domain-suspicious-p): Consider domain names that are whole-script confusables with ASCII to be suspicious. (I think this is what the Unicode standard is recommending, but I'm not 100% sure.)
* | | Split textsec-email-address-suspicious-p into two functionsLars Ingebrigtsen2022-01-191-1/+3
| | | | | | | | | | | | | | | | | | * lisp/international/textsec.el (textsec-email-address-suspicious-p): Made into its own function. (textsec-email-suspicious-p): Use it and adjust doc strings.
* | | Make textsec-suspicious-nonspacing-p work on marksLars Ingebrigtsen2022-01-191-3/+3
| | | | | | | | | | | | | | | | | | * lisp/international/textsec.el (textsec-suspicious-nonspacing-p): We're only interested in nonspacing marks, not control characters in this test.
* | | cl-generic-tests.el: Fix warningStefan Monnier2022-01-181-1/+1
| | | | | | | | | | | | | | | * test/lisp/emacs-lisp/cl-generic-tests.el (ert): Require at run-time for `ert--get-explainer`.
* | | VC: Fix tests for SCCS and MtnStefan Monnier2022-01-181-10/+21
| | | | | | | | | | | | | | | | | | | | | * test/lisp/vc/vc-tests.el: Prefer closures to `(lambda ...). (vc-test-mtn05-rename-file, vc-test-mtn06-version-diff): Skip. * lisp/vc/vc.el (vc-responsible-backend): Fix vc-test--register on SCCS.
* | | Add textsec functions for verifying email addressesLars Ingebrigtsen2022-01-181-0/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/international/characters.el (bidi-control-characters): Rename from glyphless--bidi-control-characters for use in textsec, and add LRM/RLM/ALM. (update-glyphless-char-display): Adjust the code. * lisp/international/textsec.el (textsec-local-address-suspicious-p) (textsec-name-suspicious-p, textsec-suspicious-nonspacing-p) (textsec-email-suspicious-p): New functions.
* | | Add textsec-domain-suspicious-pLars Ingebrigtsen2022-01-183-0/+6355
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * .gitignore: Ignore idna-mapping.el. * admin/notes/unicode: Note idna-mapping file. * admin/unidata/IdnaMappingTable.txt: New file. * admin/unidata/Makefile.in (all): Generate idna-mapping.el. * admin/unidata/unidata-gen.el (unidata-gen-idna-mapping): Generate. * lisp/international/textsec.el (textsec-domain-suspicious-p): New function.
* | | Morka handling of multi-hops in Tramp more consistentMichael Albinus2022-01-181-84/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp.el (tramp-make-tramp-file-name): Adapt argument list. Add hops to `tramp-default-proxies-alist'. (tramp-find-foreign-file-name-handler): Adapt argument list. (tramp-handle-abbreviate-file-name): Abbreviate multi-hops. (tramp-handle-file-remote-p): Adapt handling of hops. (tramp-add-hops): New defun. (tramp-compute-multi-hops): Use it. * lisp/net/tramp.el (tramp-make-tramp-hop-name, tramp-get-buffer) (tramp-file-name-handler, tramp-handle-file-truename) (tramp-handle-insert-file-contents, tramp-local-host-p) (tramp-read-passwd, tramp-clear-passwd): * lisp/net/tramp-archive.el (tramp-archive-dissect-file-name) (tramp-archive-gvfs-file-name): * lisp/net/tramp-cache.el (tramp-get-hash-table): * lisp/net/tramp-sh.el (tramp-sh-handle-file-truename) (tramp-sh-handle-make-process, tramp-sh-handle-process-file) (tramp-sh-file-name-handler-p, tramp-get-remote-path): * lisp/net/tramp-sshfs.el (tramp-sshfs-handle-process-file): * lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-file-truename): Adapt callees. * test/lisp/net/tramp-tests.el (tramp-test02-file-name-dissect) (tramp-test02-file-name-dissect-simplified) (tramp-test02-file-name-dissect-separate) (tramp-test07-abbreviate-file-name): Adapt tests.
* | | Add textsec predicates for different types of confusabilityLars Ingebrigtsen2022-01-181-1/+18
| | | | | | | | | | | | | | | | | | | | | * lisp/international/textsec.el (textsec-resolved-script-set) (textsec-single-script-confusable-p) (textsec-mixed-script-confusable-p) (textsec-whole-script-confusable-p): New functions.
* | | Add textsec support for confusable charactersLars Ingebrigtsen2022-01-181-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * admin/notes/unicode: Note the confusables.txt file. * admin/unidata/Makefile.in (${unidir}/uni-confusable.el): Generate the confusable file. * admin/unidata/README (https): Add confusables.txt. * admin/unidata/confusables.txt: New file. * admin/unidata/unidata-gen.el (unidata-gen-confusable): Parse the confusables.txt file. * lisp/international/textsec.el (textsec-ascii-confusable-p) (textsec-unconfuse-string): New functions.
* | | Add new function textsec-mixed-numbers-pLars Ingebrigtsen2022-01-171-0/+5
| | | | | | | | | | | | | | | * lisp/international/textsec.el (textsec-mixed-numbers-p): New function.
* | | Add textsec-restriction-level functionLars Ingebrigtsen2022-01-171-0/+12
| | | | | | | | | | | | | | | * lisp/international/textsec.el (textsec-restriction-level): New function.
* | | Add support for functions that deal with Unicode scriptsLars Ingebrigtsen2022-01-171-0/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * admin/unidata/Makefile.in (${unidir}/uni-scripts.el): Build uni-scripts.el. * admin/unidata/Scripts.txt: * admin/unidata/ScriptExtensions.txt: * admin/unidata/PropertyValueAliases.txt: New files from Unicode. * admin/unidata/README: Update. * admin/unidata/unidata-gen.el (unidata-gen-charprop): Allow writing other data, too. (unidata-gen-scripts, unidata-gen--read-script-aliases) (unidata-gen--insert-file): New functions to parse the Script* files. * lisp/international/textsec.el: Implement some functions that work on scripts.
* | | Move the Gnus range functions to a new range.el fileLars Ingebrigtsen2022-01-171-0/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/range.el: New file. * lisp/gnus/gnus-agent.el (range): (gnus-agent-synchronize-group-flags): (gnus-agent-possibly-alter-active): (gnus-agent-fetch-headers): (gnus-agent-read-agentview): (gnus-agent-fetch-group-1): (gnus-agent-read-p): (gnus-agent-expire-group-1): (gnus-agent-retrieve-headers): Adjust callers. * lisp/gnus/gnus-art.el (range): (gnus-article-describe-bindings): * lisp/gnus/gnus-cloud.el (range): (gnus-cloud-available-chunks): * lisp/gnus/gnus-draft.el (gnus-group-send-queue): * lisp/gnus/gnus-group.el (range): (gnus-group-line-format-alist): (gnus-number-of-unseen-articles-in-group): (gnus-group-update-eval-form): (gnus-group-read-group): (gnus-group-delete-articles): (gnus-group-catchup): (gnus-group-expire-articles-1): (gnus-add-marked-articles): * lisp/gnus/gnus-int.el (gnus-request-marks): * lisp/gnus/gnus-kill.el (gnus-apply-kill-file-internal): * lisp/gnus/gnus-range.el (gnus-range-difference) (gnus-sorted-range-intersection, gnus-uncompress-range) (gnus-add-to-range, gnus-remove-from-range) (gnus-member-of-range, gnus-list-range-intersection) (gnus-list-range-difference, gnus-range-length, gnus-range-add) (gnus-range-map): Make into obsolete aliases. * lisp/gnus/gnus-start.el (gnus-make-articles-unread): (gnus-convert-old-ticks): (gnus-read-old-newsrc-el-file): * lisp/gnus/gnus-sum.el (gnus-select-newsgroup): (gnus-articles-to-read): (gnus-articles-to-read): (gnus-killed-articles): (gnus-adjust-marked-articles): (gnus-update-marks): (gnus-update-marks): (gnus-compute-read-articles): (gnus-list-of-read-articles): (gnus-summary-update-info): (gnus-summary-move-article): (gnus-summary-expire-articles): (gnus-update-read-articles): (gnus-summary-insert-old-articles): (gnus-summary-insert-old-articles): (gnus-summary-insert-old-articles): * lisp/gnus/mail-source.el (gnus-range): (gnus-compress-sequence): * lisp/gnus/nnheader.el (range): (gnus-range-add): (nnheader-update-marks-actions): * lisp/gnus/nnimap.el (nnimap-update-info): (nnimap-update-info): (nnimap-update-info): (nnimap-update-qresync-info): (nnimap-update-qresync-info): (nnimap-update-qresync-info): (nnimap-parse-copied-articles): * lisp/gnus/nnmaildir.el (nnmaildir-request-update-info): (nnmaildir-request-update-info): (nnmaildir-request-expire-articles): (nnmaildir-request-expire-articles): (nnmaildir-request-set-mark): * lisp/gnus/nnmairix.el (nnmairix-request-set-mark): * lisp/gnus/nnmbox.el (nnmbox-record-active-article): (nnmbox-record-deleted-article): * lisp/gnus/nnml.el (nnml-request-compact-group): * lisp/gnus/nnvirtual.el (nnvirtual-request-expire-articles): * lisp/gnus/nnselect.el (numbers-by-group): (nnselect-request-update-info): (nnselect-push-info):
* | | Improve handling of INFILE in tramp*-process-file (Bug#53284)Michael Albinus2022-01-171-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp-adb.el (tramp-adb-handle-process-file): * lisp/net/tramp-sh.el (tramp-sh-handle-process-file): * lisp/net/tramp-smb.el (tramp-smb-handle-process-file): * lisp/net/tramp-sshfs.el (tramp-sshfs-handle-process-file): Improve handling of INFILE. Fix thinko using `process-file-side-effects'. (Bug#53284) * lisp/net/tramp-sshfs.el (tramp-sshfs-file-name-handler-alist): Use `tramp-sshfs-handle-set-file-times'. (tramp-sshfs-handle-set-file-times): New defun. * test/lisp/net/tramp-tests.el (tramp-test28-process-file): Extend test.
* | | Add some more mailcap tests.Tassilo Horn2022-01-163-0/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * test/lisp/net/mailcap-resources/mailcap: New file. * test/lisp/net/mailcap-resources/test.test: New file. * test/lisp/net/mailcap-tests.el (with-pristine-mailcap): New macro. (mailcap-parsing-and-mailcap-mime-info): New test for parsing mailcap files and selecting the right viewer. (mailcap--test-result): New variable. (mailcap--test-viewer): New function. (mailcap-view-file): New test for mailcap-view-file.
* | | Skip ffap test on some systemsLars Ingebrigtsen2022-01-141-0/+2
| | |
* | | Don't have ffap interpret ":/bin" as the current directoryLars Ingebrigtsen2022-01-141-0/+15
| | | | | | | | | | | | | | | * lisp/ffap.el (ffap-file-at-point): Don't interpret :/bin as the current directory (bug#52441).