summaryrefslogtreecommitdiff
path: root/test/lisp
Commit message (Collapse)AuthorAgeFilesLines
* ; cperl-mode.el: Fix border cases of inserting with elispHarald Jörg2021-08-301-6/+52
| | | | | | | | | | | | | * lisp/progmodes/cperl-mode.el (cperl-unwind-to-safe): Replace (and extend) inline comment by a docstring. Handle edge cases when inserting text with elisp (related to Bug#28962). (cperl-process-here-doc): Add syntax-type `here-doc-start'. (cperl-find-pods-heres): Make sure that the results of this function are immediately visible. * test/lisp/progmodes/cperl-mode-tests.el (cperl-test-bug-14343): Add test cases for "empty" here-documents and inserting at the edges of a here-document.
* (cperl-test-bug-14343): Make it work for perl-modeStefan Monnier2021-08-301-7/+7
| | | | | | | * test/lisp/progmodes/cperl-mode-tests.el (cperl--tests-heredoc-face): New const. (cperl-test-heredocs, cperl-test-bug-14343): Use it. (cperl-test-identify-no-heredoc): Remove left-over message.
* * test/lisp/progmodes/cperl-mode-tests.el: Adjust here-doc tests for perl-modeStefan Monnier2021-08-301-31/+26
| | | | | (cperl-test-identify-heredoc, cperl-test-identify-no-heredoc): Tweak tests so they can also be used for perl-mode.
* Make rfc2368 obsolete and add rfc6068Lars Ingebrigtsen2021-08-302-0/+52
| | | | | | * lisp/obsolete/rfc2368.el: Moved here and made obsolete. * lisp/mail/rfc6068.el (rfc6068-unhexify-string): New file.
* Fix vc test for RCSLars Ingebrigtsen2021-08-291-1/+4
| | | | * test/lisp/vc/vc-tests.el (vc-test--rename-file): Fix test for RCS.
* Tweak sh-script-mode indentation furtherKévin Le Gouguec2021-08-291-1/+12
| | | | | * lisp/progmodes/sh-script.el (sh-smie--default-backward-token): Allow more parentheses in a token (bug#44592).
* ; Remove copypasta accidentDmitry Gutov2021-08-291-2/+0
|
* Add tests for vc-rename-fileDmitry Gutov2021-08-291-2/+65
| | | | | * test/lisp/vc/vc-tests.el (vc-test--rename-file): New function. (vc-test-%s05-rename-file): New family of tests (bug#39452).
* Fix shell-script-mode indentation of continuation linesDario Gjorgjevski2021-08-271-0/+40
| | | | | * lisp/progmodes/sh-script.el (sh-smie--default-backward-token): Fix indentation of continuation lines (bug#44592).
* lisp/newcomment.el: Uncommenting with whitespace `comment-continue'Christophe Troestler2021-08-271-0/+39
| | | | | | | * lisp/newcomment.el (uncomment-region-default-1): Make all-whitespace `comment-continue' work (bug#50226). Copyright-paperwork-exempt: yes
* Revert "Add support for "bright" ANSI colors in ansi-color"Lars Ingebrigtsen2021-08-261-44/+7
| | | | | | This reverts commit c8e3347ec01a9ed6dc8d88c2dbbb3a08497e8eb2. Jim Porter's paperwork isn't finalised yet.
* Revert "Add support for "bright" ANSI colors in term-mode"Lars Ingebrigtsen2021-08-261-58/+1
| | | | | | This reverts commit 2b2a103db0c3597c7685d3ffff4bca7f2e4d094e. Jim Porter's paperwork isn't finalized yet.
* Improve robustness of shadowfile.elMichael Albinus2021-08-261-1/+23
| | | | | | | | | | * lisp/shadowfile.el (shadow-site-help): New defconst. (shadow-read-site): Use it. (shadow-make-fullname, shadow-contract-file-name) (shadow-define-literal-group): Handle errors more robust. (Bug#49596) * test/lisp/shadowfile-tests.el (shadow-test06-literal-groups): Extend test.
* Make thingatpt respect fieldsLars Ingebrigtsen2021-08-251-0/+8
| | | | | * lisp/thingatpt.el (thing-at-point): Make thingatpt respect fields (bug#9454).
* Add support for "bright" ANSI colors in term-modeJim Porter2021-08-251-1/+58
| | | | | | | | | | | | | * list/term.el (ansi-term-color-vector): Add new faces. (term-color-white): Tweak colors. (term-color-bright-black, term-color-bright-red, term-color-bright-green) (term-color-bright-yellow, term-color-bright-blue) (term-color-bright-magenta, term-color-bright-cyan) (term-color-bright-white): New faces. (term--maybe-brighten-color): New function. (term-handle-colors-array): Handle bright colors. * test/lisp/term-tests.el (term-colors, term-colors-bold-is-bright): New functions.
* Add support for "bright" ANSI colors in ansi-colorJim Porter2021-08-251-7/+44
| | | | | | | | | | | | | * lisp/ansi-color.el (ansi-bright-color-names-vector): New defcustom. (ansi-color-bold-is-bright): New defcustom. (ansi-color--find-face): Sort ANSI codes and check 'ansi-color-bold-is-bright'. (ansi-color-apply-sequence): Support bright ANSI colors. (ansi-color--fill-color-map): New function. (ansi-color-make-color-map): Add bright ANSI colors. (ansi-color-get-face-1): Add BRIGHT parameter. * test/lisp/ansi-color-tests.el (ansi-color-apply-on-region-bold-is-bright-test): New function.
* Some precisements in Tramp's connection type handlingMichael Albinus2021-08-241-29/+70
| | | | | | | | | | | | | | | | * doc/misc/tramp.texi (Remote processes): Precise connection type handling. * lisp/net/tramp-adb.el (tramp-adb-handle-make-process): * lisp/net/tramp-sh.el (tramp-sh-handle-make-process): * lisp/net/tramp.el (tramp-handle-make-process): Fix :connection-type handling. (tramp-action-show-and-confirm-message): Pacify byte compiler. * lisp/net/tramp-compat.el (tramp-compat-ignore-error): New defmacro. * test/lisp/net/tramp-tests.el (tramp-test29-start-file-process) (tramp-test30-make-process): Extend tests.
* Fix recently added cperl testGlenn Morris2021-08-231-2/+2
| | | | | * test/lisp/progmodes/cperl-mode-tests.el (cperl-test-here-doc-missing-end): Fix quote regexp.
* ; cperl-mode: bugfix / rework fontification of here-docsHarald Jörg2021-08-231-0/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/cperl-mode.el (cperl-mode): Use `cperl-font-lock-syntactic-face-function'. (cperl-commentify): Add a docstring, eliminate unused formal parameter `noface'. (cperl-is-here-doc-p): New function to detect whether "<<" starts a here-document, factored out from `cperl-find-pods-heres'. (cperl-here-doc-functions): New variable: List of functions which allow here-documents as parameters, for use in `cperl-is-here-doc-p'. (cperl-process-here-doc): New function, factored out from `cperl-find-pods-heres'. Fixed to keep correct fontification after non-interactive (elisp) changes (Bug#14343, Bug#28962). (cperl-find-pods-heres): Extend the doc-string to describe all parameters. Don't remove text properties in recursive calls on the same line. Call `cperl-process-here-doc' when appropriate. (cperl-font-lock-syntactic-face-function): New function to highlight c-style comments as here-documents (adapted from perl-mode.el). * test/lisp/progmodes/cperl-mode-tests.el (cperl-test-identify-heredoc): New test for the new function `cperl-is-here-doc-p'. (cperl-test-identify-no-heredoc): New test for the new function `cperl-is-here-doc-p', testing constructs which start with "<<" but are no here-documents. (cperl-test-here-doc-missing-end): New test to verify correct detection of a missing here-document delimiter. (cperl-test-bug-14343): New test to verify that inserting text into a here-document with elisp does not break fontification.
* Complete implementation of `copy-directory-create-symlink' in TrampMichael Albinus2021-08-231-17/+33
| | | | | | | | | | | | * lisp/net/tramp-sh.el (tramp-sh-handle-copy-directory): Fix the case NEWNAME is a directory name with a trailing slash. * lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory): Implement `copy-directory-create-symlink'. (Bug#10897) * test/lisp/net/tramp-tests.el (tramp--test-ignore-make-symbolic-link-error): Move up. (tramp-test15-copy-directory): Extend test.
* Implement `copy-directory-create-symlink' for remote filesMichael Albinus2021-08-221-2/+28
| | | | | | | | * lisp/net/tramp-sh.el (tramp-sh-handle-copy-directory): Implement `copy-directory-create-symlink'. (Bug#10897) * test/lisp/net/tramp-tests.el (tramp-test15-copy-directory): Extend test.
* * test/lisp/international/ucs-normalize-tests.el: Save 30m on hydra.Glenn Morris2021-08-211-0/+1
|
* mh-x-image-url-sane-p: accept "https" URLsStephen Gildea2021-08-211-0/+35
| | | | | * lisp/mh-e/mh-xface.el (mh-x-image-url-sane-p): Accept https URLs. * test/lisp/mh-e/mh-xface.el: New file, to test mh-x-image-url-sane-p.
* * test/lisp/net/tramp-tests.el: Reduce hydra run time by 1 hour.Glenn Morris2021-08-211-0/+8
| | | | It's just too slow to run these after every commit.
* * test/lisp/electric-tests.el: Un-skip c-mode tests on hydra.Glenn Morris2021-08-211-9/+0
|
* Fix failures in recent files testsLars Ingebrigtsen2021-08-211-2/+2
| | | | | | * test/lisp/files-tests.el (files-tests-buffer-offer-save) (files-tests-save-buffers-kill-emacs--asks-to-save-buffers): `read-event' is called with arguments.
* Fix documentation of recently-added tests for files.elEli Zaretskii2021-08-211-18/+17
| | | | | | | * test/lisp/files-tests.el (files-tests--save-some-buffers) (files-tests-save-some-buffers) (files-tests--with-buffer-offer-save) (files-tests-buffer-offer-save): Doc fixes.
* ; * test/lisp/files-tests.el: Add tests for save-some-buffers (Bug#46374)Tino Calancha2021-08-201-0/+214
|
* Tweak a failing custom testLars Ingebrigtsen2021-08-201-0/+1
| | | | | | | | | | | | | | * test/lisp/custom-tests.el (custom-tests-require-theme): Fix a native-comp-related test failure. In this test, we set load-path to nil, and under native-comp some of the tests want to give a warning: Warning (comp): Cannot look-up eln file as no source file was found for /tmp/custom-tests-bfdbkW/custom-tests--d.elc But we can't load warning.el after setting load-path to nil, so require it first.
* ; Fix paren typoGlenn Morris2021-08-181-1/+1
|
* Add undo-in-region test case for bug#21523Lars Ingebrigtsen2021-08-181-0/+11
|
* ; Fix quoting of braces in electric-tests.el.Basil L. Contovounesios2021-08-181-1/+1
|
* * test/lisp/electric-tests.el: Skip most c-mode tests on hydra.Glenn Morris2021-08-171-0/+9
|
* ruby-mode imenu: Support methods with modifiersDmitry Gutov2021-08-171-0/+22
| | | | | | * lisp/progmodes/ruby-mode.el (ruby-imenu-create-index-in-block): Support methods with modifiers (visibility or otherwise) (bug#50079).
* ; * test/lisp/vc/diff-mode-tests.el: Remove useless \Mattias Engdegård2021-08-161-1/+1
|
* Add new functions to replace strings/regexp in a regionLars Ingebrigtsen2021-08-161-0/+46
| | | | | | | | * doc/lispref/searching.texi (Search and Replace): Document them. * lisp/subr.el (replace-string-in-region) (replace-regexp-in-region): New functions. * lisp/emacs-lisp/shortdoc.el (regexp, buffer): Mention them.
* Mark auto-revert-test02-auto-revert-deleted-file as unstableLars Ingebrigtsen2021-08-141-1/+1
| | | | | | * test/lisp/autorevert-tests.el (auto-revert-test02-auto-revert-deleted-file): This tests fails about 30% of the time for me.
* Add a test for netrc folding parsing (bug#25769)Lars Ingebrigtsen2021-08-142-0/+13
|
* Filter out -L foo labels in diff-hunk-file-namesLars Ingebrigtsen2021-08-141-0/+12
| | | | | * lisp/vc/diff-mode.el (diff-hunk-file-names): Filter out "-L foo" labels (bug#10160).
* Revert "Add macro `seq-setq`."Lars Ingebrigtsen2021-08-141-24/+0
| | | | | | This reverts commit a8a3fd8f8e27089ac46bf98e534529ff03f679a5. The same patch was applied twice. Remove the second instance.
* Add new functions for lax mail address splittingLars Ingebrigtsen2021-08-141-0/+54
| | | | | | * lisp/emacs-lisp/subr-x.el (string-clean-whitespace): Autoload. * lisp/mail/mail-parse.el (mail-header-parse-addresses-lax) (mail-header-parse-address-lax): New functions.
* Add macro `seq-setq`.Earl Hyatt2021-08-141-0/+24
| | | | | | | * doc/lispref/sequences.texi (seq-setq): Document this macro. * test/lisp/emacs-lisp/seq-tests.el (test-seq-setq): Test this macro (bug#50053).
* Add macro `seq-setq`.Earl Hyatt2021-08-141-0/+24
| | | | | | | | | * doc/lispref/sequences.texi (seq-setq): Document this macro. * lisp/emacs-lisp/seq.el (seq-setq): New macro. * test/lisp/emacs-lisp/seq-tests.el (test-seq-setq): Test this macro (bug#50053).
* Fix memory-report counting of vector/hash table sizesYikai Zhao2021-08-141-0/+16
| | | | | | | * lisp/emacs-lisp/memory-report.el (memory-report--object-size-1): Count element values in vectors and hash tables. Copyright-paperwork-exempt: yes
* Fix merging of ambiguous nil mapsBasil L. Contovounesios2021-08-141-8/+16
| | | | | | | | | | | | | | | * lisp/emacs-lisp/map.el: Bump version to 3.1. (map--merge): New merging subroutine that uses a hash table in place of lists, for both efficiency and avoiding ambiguities (bug#49848). (map-merge): Rewrite in terms of map--merge. (map-merge-with): Ditto. This ensures that FUNCTION is called whenever two keys are merged, even if they are not eql (which could happen until now). It also makes map-merge-with consistent with map-merge, thus achieving greater overall predictability. * etc/NEWS: Announce this weakening of guarantees. * test/lisp/emacs-lisp/map-tests.el (test-map-merge) (test-map-merge-with): Don't depend on specific orderings. Test that nil is correctly merged into a plist.
* Unknown line endings in filepos-to-bufferpos/bufferpos-to-lineposLars Ingebrigtsen2021-08-132-0/+42
| | | | | | | * lisp/international/mule-util.el (filepos-to-bufferpos): Give better errors on `exact' with unknown line endings, and guess at Unix if `approximate' (bug#36573). (bufferpos-to-filepos): Ditto.
* Improve connection type `pipe' for remote processesMichael Albinus2021-08-121-1/+39
| | | | | | | | | | | | | | | | | | | | | * doc/misc/tramp.texi (Remote processes): New subsection "Remote process connection type". * lisp/net/tramp-adb.el (tramp-adb-handle-make-process): Use `tramp-process-connection-type' as default connection type. Improve check for `:connection-type'. * lisp/net/tramp-sh.el (tramp-sh-handle-make-process): Use `tramp-process-connection-type' as default connection type. Improve check for `:connection-type'. Send "stty -icrnl" when connection type is a pipe. * lisp/net/tramp.el (tramp-process-connection-type): Allow all possible values. (tramp-handle-make-process): Use `tramp-process-connection-type' as default connection type. Improve check for `:connection-type'. * test/lisp/net/tramp-tests.el (tramp-test30-make-process): Extend test.
* * lisp/emacs-lisp/lisp-mnt.el (lm-crack-address): Handle multi-addressesStefan Monnier2021-08-121-0/+36
| | | | (lm-authors, lm-maintainers): Adjust accordingly.
* * lisp/emacs-lisp/pcase.el (pcase-setq): Align its semantics with `pcase-let`Stefan Monnier2021-08-121-8/+7
| | | | | * test/lisp/emacs-lisp/pcase-tests.el (pcase-tests-setq): Rename from pcase-setq and ajust accordingly.
* Add a `pcase-setq' macroEarl Hyatt2021-08-111-0/+48
| | | | | | | | | | | * doc/lispref/control.texi (Destructuring with pcase Patterns): Document this macro. * lisp/emacs-lisp/pcase.el (pcase-setq): New macro. This macro is the 'setq' equivalent of 'pcase-let'. * test/lisp/emacs-lisp/pcase-tests.el (pcase-setq): Test this new macro. (bug#49809).