aboutsummaryrefslogtreecommitdiffstats
path: root/test (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix 'ffap-string-at-point' under 'ffap-file-name-with-spaces'Eli Zaretskii2025-06-081-8/+24
| | | | | | | | | * lisp/ffap.el (ffap-file-name-with-spaces): Doc fix. (ffap-string-at-point): Don't reject '~foo/' and 'd:/bar' file names when 'ffap-file-name-with-spaces' is non-nil. * test/lisp/ffap-tests.el (ffap-test-with-spaces): Add tests, and fix expected results to not strip Windows drive letters.
* Fix semantic-utest-ia testsEli Zaretskii2025-06-071-1/+2
| | | | | * test/lisp/cedet/semantic-utest-ia.el (semantic-ia-utest): Clean up better, to avoid affecting the next test.
* VC: Deprecate log-incoming and log-outgoing backend functionsSean Whitton2025-06-061-2/+2
| | | | | | | | | | | | * lisp/vc/vc-git.el (vc-git-incoming-revision): Inline vc-git--fetch-incoming. (vc-git--fetch-incoming, vc-git-log-incoming) (vc-git-log-outgoing): Delete. * lisp/vc/vc-hg.el (vc-hg-mergebase): * lisp/vc/vc.el (vc-default-log-incoming) (vc-default-log-outgoing): New functions. * lisp/vc/vc.el: * etc/NEWS: Document the deprecation.
* Fix function arity check for noncompiled callees (bug#78685)Mattias Engdegård2025-06-051-0/+14
| | | | | | | | | This is a regression from Emacs 29. * lisp/emacs-lisp/bytecomp.el (byte-compile-fdefinition): Make it work for functions that aren't compiled. * test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-tests--f): (bytecomp-tests--warn-arity-noncompiled-callee): Add test.
* Add ansible password prompts to `comint-password-prompt-regexp'Michael Albinus2025-06-031-0/+4
| | | | | | * lisp/comint.el (comint-password-prompt-regexp): * test/lisp/comint-tests.el (comint-testsuite-password-strings): Add ansible password prompts. (Bug#78442)
* Tramp: Do not raise an error when not connected (Bug#78572)Michael Albinus2025-06-021-6/+52
| | | | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp-cmds.el (tramp-cleanup-connection): Use read syntax #' for `tramp-timeout-session', * lisp/net/tramp.el (tramp-barf-if-file-missing): Do not raise an error when not connected. (Bug#78572) (tramp-file-name-handler): Do not force the backtrace. (tramp-connectable-p): Check also, whether initial handshake is finished. (tramp-skeleton-directory-files) (tramp-skeleton-directory-files-and-attributes) (tramp-skeleton-set-file-modes-times-uid-gid): Rearrange sending `file-missing' error. (tramp-handle-access-file, tramp-handle-unlock-file): Use `tramp-connectable-p'. * test/lisp/net/tramp-tests.el (project-mode-line-format) (project-mode-line): Declare. (tramp-test48-session-timeout): New test. (tramp-test49-auto-load, tramp-test49-delay-load) (tramp-test49-recursive-load, tramp-test49-remote-load-path) (tramp-test50-without-remote-files, tramp-test51-unload): Rename.
* Fix typescript-ts-mode tenary indentation (bug#77901)Yuan Fu2025-06-011-0/+5
| | | | | | | | | | | | | | | | | | | | | Fixes indentation for nested ternary expressions: const a = cond1 ? 1 : cond2 ? 2 : cond3 ? 3 : cond 4: 5; instead of const a = cond1 ? 1 : cond2 ? 2 : cond3 ? 3 : cond 4: 5; * lisp/progmodes/typescript-ts-mode.el: (typescript-ts--standalone-parent-p): New function. (typescript-ts-mode): (tsx-ts-mode): Use new function.
* time-stamp-tests: Hygienic macrosStephen Gildea2025-06-011-27/+40
| | | | | * test/lisp/time-stamp-test.el (with-time-stamp-test-time, time-stamp-should-warn, formatz-should-equal): Use cl-with-gensyms.
* Fix Tramp bug#78508Michael Albinus2025-05-311-47/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp-container.el (tramp-methods) <docker, dockercp, podman> <podmancp, apptainer, nspawn>: * lisp/net/tramp-sh.el (tramp-methods) <scp, scpx, rsync> <ssh, sshx, sudo>: * lisp/net/tramp-sshfs.el (tramp-methods) <sshfs>: Set TERM environment. (Bug#78508) * lisp/net/tramp-sh.el (tramp-find-executable): Handle superlong PATH. (tramp-set-remote-path): Simplify command. (tramp-timeout-session): Add ;;;###tramp-autoload cookie. * lisp/net/tramp-smb.el (tramp-smb-errors): Add string. (tramp-smb-winexe-program): Adapt docstring. (tramp-smb-handle-copy-directory, tramp-smb-handle-file-acl) (tramp-smb-handle-set-file-acl, tramp-smb-maybe-open-connection): Simplify argument handling. (tramp-smb-handle-process-file): Flush " process-exit-status" property. (tramp-smb-call-winexe): Set $winsize.Width to 102 only. * lisp/net/tramp.el (tramp-process-sentinel): Adapt docstring. Set " process-exit-status" property. * test/lisp/net/tramp-tests.el (tramp--test-enabled): Make it more robust. (tramp-test18-file-attributes) (tramp-test26-interactive-file-name-completion) (tramp-test26-file-name-completion-boundaries) (tramp-test35-remote-path): Adapt tests.
* Merge from origin/emacs-30Eli Zaretskii2025-05-311-0/+25
|\ | | | | | | | | 1d2ae31b8bc typescript-ts-mode: Improve function body indentation (bu... 421ecbcf6b4 ; * CONTRIBUTE: Explain the line-width preferences.
| * typescript-ts-mode: Improve function body indentation (bug#78121)Konstantin Kharlamov2025-05-251-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Older code was calculating body indentation depending on function parameters alignment. This is incorrect, because if parameters are misaligned, so will the function body. Instead, use offset of the previous standalone parent. * lisp/progmodes/typescript-ts-mode.el: (typescript-ts-mode--indent-rules): Stop depending on function parameters indentation for calculating body content and the closing `}'. * test/lisp/progmodes/typescript-ts-mode-resources/indent.erts: (Function body with params misindented (bug#78121)): Add new test.
| * * test/infra/gitlab-ci.yml (.job-template): Make it more robust.Michael Albinus2025-05-221-2/+2
| |
* | ansi-osc.el: Use marker (bug#78184)Matthias Meulien2025-05-311-3/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/ansi-osc.el (ansi-osc-apply-on-region) (ansi-osc-filter-region): Use marker to properly handle unfinished escape sequence. * test/lisp/ansi-osc-tests.el (ansi-osc-tests--strings) (ansi-osc-tests-apply-region-no-handlers) (ansi-osc-tests-apply-region-no-handlers-multiple-calls) (ansi-osc-tests-filter-region) (ansi-osc-tests-filter-region-with-multiple-calls): Cover bug#78184.
* | Gather variable binding tests in data-tests.elSean Whitton2025-05-302-47/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * test/lisp/emacs-lisp/lisp-tests.el (c-e-x, c-e-l): Move to data-tests.el. (core-elisp-tests-2-window-configurations): Rename ... (core-elisp-tests-1-window-configurations): ... to this. (core-elisp-tests-3-backquote): Rename ... (core-elisp-tests-2-backquote): ... to this. (core-elisp-tests-1-defvar-in-let) (core-elisp-tests-4-toplevel-values): Move and rename ... * test/src/data-tests.el (binding-test-defvar-in-let) (binding-test-toplevel-values): ... to these. (c-e-x, c-e-l): Moved from data-tests.el.
* | Fix unsafe SDATA usage in print.c (bug#78590)Pip Cet2025-05-281-0/+18
| | | | | | | | | | | | | | * src/print.c (print_string_1): Renamed from 'print_string', with an extra argument to disable nonascii escaping. (print_string): New function. (print_object): Use 'print_string_1', not 'strout'.
* | * test/infra/gitlab-ci.yml (.job-template): Fix config.log name.Michael Albinus2025-05-271-1/+1
| |
* | Don't add visual-wrap-prefix properties to unsafe multi-line display specsJim Porter2025-05-261-0/+120
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes sure we don't interfere with other display specs, e.g. for images displayed in 'image-mode' (bug#73600). * lisp/visual-wrap.el (visual-wrap--safe-display-specs): New variable. (visual-wrap--display-property-safe-p): New function. (visual-wrap--apply-to-line): Use 'pos-eol'; we don't want to respect field boundaries here. (visual-wrap-prefix-function): Check for unsafe display properties at the end of the line and skip past them if present. * test/lisp/visual-wrap-tests.el: New test file.
* | ; Fix last changeMichael Albinus2025-05-251-2/+1
| |
* | Adapt Emba filesMichael Albinus2025-05-253-30/+43
| | | | | | | | | | | | | | * test/infra/Dockerfile.emba: * test/infra/gitlab-ci.yml: Add me as maintainer. Format. * test/infra/Makefile.in (tree-sitter-files): Format.
* | Add baseline pass/fail tests for `ert-test-erts-file'Roi Martin2025-05-243-0/+25
| | | | | | | | | | | | | | | | | | | | * test/lisp/emacs-lisp/ert-tests.el (ert-test-erts-pass) (ert-test-erts-fail): Add tests to verify that the `ert-test-erts-file' function can detect both passing a failing test cases. * test/lisp/emacs-lisp/ert-resources/erts-fail.erts: * test/lisp/emacs-lisp/ert-resources/erts-pass.erts: Add test data. (Bug#78552)
* | * test/infra/Dockerfile.emba (emacs-tree-sitter): Cosmetic change.Michael Albinus2025-05-231-5/+14
| |
* | (perform-replace): Make it work with F-keys in TTYs (bug#78113)Stefan Monnier2025-05-221-1/+1
| | | | | | | | | | * lisp/replace.el (perform-replace): Use `read-key`. * test/lisp/replace-tests.el (replace-tests-with-undo): Adjust accordingly.
* | Check diagnostic types in compile-testsMattias Engdegård2025-05-221-175/+180
| | | | | | | | | | | | | | * test/lisp/progmodes/compile-tests.el (compile-tests--test-regexps-data, compile--test-error-line) (compile-test-functions): Check the types (error, warning or info) for most patterns. Use names instead of numbers in the reference.
* | Support Rust compiler messages in compile mode (bug#70794).Vincenzo Pupillo2025-05-221-3/+12
| | | | | | | | | | | | | | | | | | | | | | * etc/compilation.txt: Add examples of Rust compiler error, warning and note messages. * lisp/progmodes/compile.el (compilation-error-regexp-alist-alist): Add Rust regexps for error, warning and note messages. * test/lisp/progmodes/compile-tests.el (compile-tests--test-regexps-data): Add new test cases. (compile-test-error-regexps): Increase expected errors.
* | Fix 'completion-ignore-case' with 'completion--file-name-table'Spencer Baugh2025-05-191-1/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 509cbe1c35b3d "Improve env var handling in read-file-name" caused 'try-completion' and 'all-completion' operations with 'completion--file-name-table' to no longer update the case of text which was already present in the input string. That is, completions would be returned ignoring case, but the completions would have letter-casing which matched the input string rather than matching the actual file names. This was caused by unnecessarily replacing text in the returned file name completions with text from the input string ORIG, which in turn was caused by the desire to preserve text from ORIG even after 'substitute-in-file-name' changed it. Fix this by detecting when ORIG was not substantially changed by 'substitute-in-file-name'; in that case, the returned file name completions also don't need substantial changes. * lisp/minibuffer.el (completion--file-name-table): Use text from the completions, not the input string. (Bug#78323) * test/lisp/minibuffer-tests.el (completion-table-test-quoting): Test with 'completion-ignore-case' as well.
* | ; Fix last changeMichael Albinus2025-05-191-11/+4
| |
* | Generate tree-sitter compatibility report on embaMichael Albinus2025-05-182-3/+17
| | | | | | | | | | | | | | | | * test/infra/Dockerfile.emba (emacs-tree-sitter): Generate compatibility report. * test/infra/gitlab-ci.yml (.job-template): Modify artifacts preparation. (build-tree-sitter): Add artifact.
* | Merge from origin/emacs-30Eli Zaretskii2025-05-172-17/+33
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 299d3a44012 Fix saving abbrevs by 'abbrev-edit-save-buffer' 399d05332ed ; Remove confusing text from ELisp manual feecb1fbc60 ; * doc/emacs/cmdargs.texi (General Variables): More accu... 18e1aabbeaa ; Improve documentation of the -L command-line option c80fbe3f235 typescript-ts-mode: align ternary-chain branches (bug#78187) 16bfbc6fe31 ; Tramp test fixes f0ac271da38 ; Time Stamps doc: Clearer customize recipe 49c06df224a ; * doc/lispref/variables.texi (Default Value): Update. cbea5997c07 ; * lisp/mh-e/mh-e.el: Commentary: link to The MH-E Manual 0bf956235e3 Improve Tramp test eaf01d034c0 * lisp/autorevert.el (auto-revert-remote-files): Adapt do... e32bb816adb ; Improve documentation of ls-lisp.el 2d5f2434706 ; * lisp/emacs-lisp/comp.el (native-compile-prune-cache):... bb735331650 Improve Electric Pair mode documentation (bug#78021)
| * typescript-ts-mode: align ternary-chain branches (bug#78187)Konstantin Kharlamov2025-05-151-0/+9
| | | | | | | | | | | | | | | | * lisp/progmodes/typescript-ts-mode.el: (typescript-ts-mode--indent-rules): Make sure each new ternary branch is aligned with the previous one. * test/lisp/progmodes/typescript-ts-mode-resources/indent.erts: (Chained ternary expressions): New test.
| * ; Tramp test fixesMichael Albinus2025-05-151-17/+16
| | | | | | | | | | | | | | | | * test/lisp/net/tramp-tests.el (tramp-test26-interactive-file-name-completion): Simplify. (tramp--test-putty-p): Fix docstring. (tramp--test-scp-p): New defun. (tramp-test42-utf8): Use it.
| * Improve Tramp testMichael Albinus2025-05-111-1/+9
| | | | | | | | | | * test/lisp/net/tramp-tests.el (tramp-test26-interactive-file-name-completion): Adapt test.
* | Fix DTSTART date when exporting `diary-float'Richard Lawrence2025-05-171-0/+16
| | | | | | | | | | | | | | | | | | | | Instead of using current date as DTSTART and then excluding it when it doesn't match the `diary-float' rule, just use the first date which matches the rule in `icalendar-recurring-start-year'. * lisp/calendar/icalendar.el (icalendar--convert-float-to-ical): Compute the correct date. * test/lisp/calendar/icalendar-tests.el: Add a test for the reported test case. (Bug#78085)
* | New top-level buffer-local value functionsSean Whitton2025-05-151-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/eval.c (local_toplevel_binding) (Fbuffer_local_toplevel_value, Fset_buffer_local_toplevel_value) (syms_of_eval): New functions. * doc/lispref/variables.texi (Default Value): * lisp/subr.el (setq-local): * etc/NEWS: Document them. * test/lisp/emacs-lisp/lisp-tests.el (core-elisp-tests-4-toplevel-values): New test. * lisp/progmodes/xref.el (xref--show-xref-buffer) (xref-show-definitions-buffer-at-bottom): * lisp/vc/vc-dispatcher.el (vc-setup-buffer): Use set-buffer-local-toplevel-value.
* | cl-extra-tests.el: Follow conventionStefan Monnier2025-05-141-2/+2
| | | | | | | | | | * test/lisp/emacs-lisp/cl-extra-tests.el (multiples-of) (unsigned-byte): Stick to the tradition of accepting nil.
* | * test/README: Tests in *-tests/ directories are also performed.Michael Albinus2025-05-131-3/+3
| |
* | Improve handling of tests in *-tests subdirsMichael Albinus2025-05-123-64/+14
| | | | | | | | | | | | | | | | | | | | * test/Makefile.in (subdir_template): Add rules for *-tests subdirs. * test/infra/Makefile.in: Remove special handling of eieio, faceup and so-long. Add recipes for *-tests subdirs. Filter out rules for *-tests subdirs. * test/infra/test-jobs.yml: Regenerate.
* | Fix filelock-tests on MS-WindowsEli Zaretskii2025-05-121-14/+5
| | | | | | | | | | | | | | | | * test/src/filelock-tests.el (filelock-tests-file-locked-p-spoiled) (filelock-tests-unlock-spoiled) (filelock-tests-kill-buffer-spoiled): Don't special-case MS-Windows, as it was evidently fixed to signal the same error as Posix systems.
* | Add test for file time-stamp granularity on MS-WindowsEli Zaretskii2025-05-111-0/+19
| | | | | | | | | | * test/src/fileio-tests.el (fileio-tests-w32-time-stamp-granularity): New test.
* | Merge from origin/emacs-30Eli Zaretskii2025-05-101-0/+12
|\ \ | |/ | | | | | | | | | | | | | | | | 0d493864cee Fix indentation of XML comments 1a2c29b5317 Improve Tramp's make-process handling for Solaris a7dffc2ea38 Document 'time-stamp-time-zone' in Emacs Manual 0b4eb525b69 Make treesit--simple-indent-eval more permissive (bug#78065) ed7b55f6bf1 Adapt Tramp tests b172a1478c1 ; * doc/lispref/tips.texi (Library Headers): Fix wording ... 81629b2b2ba ; * lisp/gnus/mail-source.el (mail-sources): Fix a typo (...
| * Adapt Tramp testsMichael Albinus2025-05-061-0/+12
| | | | | | | | | | * test/lisp/net/tramp-tests.el (tramp-test29-start-file-process) (tramp-test30-make-process): Adapt tests.
* | ; Fix VC testsEli Zaretskii2025-05-092-1/+6
| | | | | | | | | | | | | | | | | | * test/lisp/vc/vc-tests/vc-tests.el (vc-test-hg06-version-diff): Skip on MS-Windows in batch mode. * test/lisp/vc/vc-git-tests.el (vc-git-test--start-branch): More portable command for showing the current branch ("--show-current" is only available since Git 2.22).
* | Create new test/lisp/vc/vc-tests/ for vc.el testsSean Whitton2025-05-092-3/+3
| | | | | | | | | | | | | | * test/lisp/vc/vc-tests.el: Move ... * test/lisp/vc/vc-tests/vc-tests.el: ... to here. * test/lisp/vc/vc-misc-tests.el: Move ... * test/lisp/vc/vc-tests/vc-test-misc.el: ... to here.
* | Merge branch 'cl-types'Stefan Monnier2025-05-071-0/+92
|\ \
| * | cl-types: Integrate into CL-LibStefan Monnier2025-05-052-96/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/cl-extra.el (cl--type-unique, cl-types-of) (cl--type-dispatch-list, cl--type-generalizer): Move to `cl-extra.el`. (cl--type-generalizers): New function extracted from "cl-types-of" method of `cl-generic-generalizers`. * lisp/emacs-lisp/cl-lib.el (cl-generic-generalizers): New method to dispatch on derived types. Use `cl--type-generalizers`. * lisp/emacs-lisp/cl-macs.el (cl-deftype): Move from `cl-types.el` and rename from `cl-deftype2`. (extended-char): Tweak definition to fix bootstrapping issues. * lisp/emacs-lisp/cl-preloaded.el (cl--type-list, cl-type-class) (cl--type-deftype): Move from `cl-types.el`. * lisp/emacs-lisp/oclosure.el (oclosure): Don't abuse `cl-deftype` to register the predicate function. * test/lisp/emacs-lisp/cl-extra-tests.el: Move tests from `cl-type-tests.el`.
| * | cl-types: Simplify a bit furtherStefan Monnier2025-05-051-10/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mostly, get rid of `cl--type-flag` and rely only on the presence/absence of the type on `cl--types-list` to "flag" erroring-types. Also, don't try and catch errors during dispatch. * lisp/emacs-lisp/cl-types.el (cl--type-dispatch-list): Move to the relevant section. (cl--type-parents): Inline into sole caller. (cl--type-deftype): Add `arglist` argument. Don't signal an error if the type already existed but wasn't in `cl--type-list` since that's normal and we can fix it. Don't touch `cl--type-flag` any more. Don't add to `cl--type-list` if it can't be used without arguments. (cl-deftype2): Adjust call accordingly. (cl--type-error): Inline into sole caller. (cl-types-of): Be more careful to preserve ordering of types before passing them to `merge-ordered-lists`. Add `types` argument for use by dispatch. Don't bother skipping the `root-type` since that's a built-in type, so it should never happen anyway. Don't catch errors if called from dispatch. Don't bother with `cl--type-flag`. (cl--type-generalizer): Use new arg of `cl-types-of` instead of let-binding `cl--type-list`, in case `cl-types-of` ends up (auto)loading a file or some such thing which needs to use/modify `cl--type-list`. (cl--type-undefine): Move to end of file. * test/lisp/emacs-lisp/cl-types-tests.el (cl-types-test): Remove DAG test since we don't detect such errors any more. Relax ordering test when the order is not guaranteed by parent-relationships.
| * | lisp/emacs-lisp/cl-types.el: New fileStefan Monnier2025-04-281-0/+93
| | | | | | | | | | | | * test/lisp/emacs-lisp/cl-types-tests.el: Also, new file.
* | | ; More fixes for treesit testsEli Zaretskii2025-05-051-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | * test/src/treesit-tests.el (treesit-parse-string) (treesit-parser-tracking-line-column-p) (treesit-tracking-line-column-p, treesit--linecol-at) (treesit--linecol-cache-set, treesit--linecol-cache) (treesit-languages-require-line-column-tracking): Declare.
* | | ; Fix recently added treesit testsEli Zaretskii2025-05-051-0/+3
| | | | | | | | | | | | | | | | | | | | | * test/src/treesit-tests.el (treesit-linecol-basic) (treesit-linecol-search-back-across-newline) (treesit-linecol-col-same-line): Skip tests if tree-sitter is not available.
* | | Fix test-regressions in python-ts-modeJostein Kjønigsen2025-05-051-5/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/python.el (python--treesit-settings): Use more specific selectors for constants. * test/lisp/progmodes/python-tests.el (python-ts-mode-nested-types-face-1) (python-ts-mode-union-types-face-1) (python-ts-mode-union-types-face-2): None is now a constant.
* | | Avoid duplication in defining tree-sitter grammar sources.Juri Linkov2025-05-041-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/php-ts-mode.el: Require 'html-ts-mode'. (php-ts-mode--language-source-alist): Remove duplicate source info for html, css, javascript, jsdoc. (php-ts-mode-install-parsers): Install pre-defined grammars. (php-ts-mode): Move 'require' to the top. * lisp/textmodes/mhtml-ts-mode.el (mhtml-ts-mode--language-source-alist): Remove variable since 'treesit-language-source-alist' is pre-filled by requiring 'html-ts-mode', 'css-mode', 'js'. (mhtml-ts-mode-install-parsers): Install pre-defined grammars. * test/infra/Dockerfile.emba: Remove 'mhtml-ts-mode' that doesn't define own grammars.