aboutsummaryrefslogtreecommitdiffstats
path: root/test (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* | * test/lisp/progmodes/eglot-tests.el (eglot-test-basic-symlink): Skip on EMBA.Michael Albinus2024-04-231-0/+3
| |
* | Some EMBA integration fixesMichael Albinus2024-04-232-1/+2
| | | | | | | | | | | | | | * test/infra/Dockerfile.emba (emacs-native-comp-speed2): Fix typo. * test/infra/gitlab-ci.yml (.job-template): Add configure.log to artifacts.
* | Better format string compilation warningMattias Engdegård2024-04-221-1/+1
| | | | | | | | | | | | | | * lisp/emacs-lisp/bytecomp.el (byte-compile-format-warn): Speed up by eliminating the temporary buffer. Detect invalid format sequences. Use plurals properly. * test/lisp/emacs-lisp/bytecomp-tests.el: Update test.
* | ; Fix last commitMichael Albinus2024-04-223-41/+41
| | | | | | | | | | | | * test/infra/Makefile.in: * test/infra/gitlab-ci.yml: * test/infra/test-jobs.yml: Do not quote make_params.
* | Rework EMBA integrationMichael Albinus2024-04-224-52/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * test/infra/Dockerfile.emba (emacs-inotify, emacs-filenotify-gio) (emacs-eglot, emacs-tree-sitter, emacs-gnustep) (emacs-native-comp-speed0, emacs-native-comp-speed1) (emacs-native-comp-speed2): Use "-j `nproc`". (emacs-eglot): Add libxml2-dev and node-typescript. (emacs-tree-sitter) Add libxml2-dev and tree-sitter-rust. * test/infra/Makefile.in (subdir_template): Simplify make_params. * test/infra/gitlab-ci.yml (.job-template): Set environment variable NPROC. Use "-k -j \$NPROC". (test-filenotify-gio, test-eglot, test-tree-sitter) (test-native-comp-speed2): Simplify make_params. * test/infra/test-jobs.yml: Regenerate.
* | Add rust-ts-mode font-locking tests (bug#70464)Noah Peart2024-04-212-0/+59
| | | | | | | | | | | | | | | | | | * test/lisp/progmodes/rust-ts-mode-tests.el: New file for rust-ts-mode tests. * test/lisp/progmodes/rust-ts-mode-resources/font-lock.rs: New file with rust-ts-mode font-locking tests. New tests added for macro font-locking (bug#70464) and function signatures (bug#70465).
* | gitlab-ci.yml adaptionsMichael Albinus2024-04-201-3/+12
| | | | | | | | | | | | * test/infra/gitlab-ci.yml (test-filenotify-gio, test-eglot): Add TEST_HOME. (test-tree-sitter): Extend SELECTOR.
* | New command 'completion-preview-complete'Eshel Yaron2024-04-201-18/+129
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This command completes the symbol at point up to the longest common prefix of all completions candidates. We also add an indication of the longest common prefix in the completion preview by highlighting that part of the preview with the 'completion-preview-exact' face. To facilitate these features we change the way we store the completion candidates while the preview is visible, to explicitly keep the common prefix along with a list of its suffixes. * lisp/completion-preview.el (completion-preview--try-table): Return longest common prefix and list of suffixes instead of list of full candidates. Add illustrative comment. (completion-preview--capf-wrapper, completion-preview--update) (completion-preview--show, completion-preview-insert) (completion-preview-next-candidate): Adjust. (completion-preview-common): New face. (completion-preview-exact): Tweak to distinguish it from 'completion-preview-common'. (completion-preview-complete): New command. (completion-preview-active-mode-map): Bind it. (completion-preview-mode): Mention it in docstring. (completion-preview-commands): Add 'completion-preview-complete'. (completion-preview--make-overlay): Simplify. (completion-preview--internal-command-p): Remove. (completion-preview-require-certain-commands): Update. (completion-preview--inhibit-update): New inline function. (completion-preview--inhibit-update-p): New local variable. (completion-preview--post-command, completion-preview-hide): Reset it to nil. * test/lisp/completion-preview-tests.el (completion-preview-tests--check-preview): Check the 'face' property of both the first and last character. Update callers. (completion-preview-insert-calls-exit-function) (completion-preview-complete): New tests. (Bug#70381)
* | Kill process in files-tests before exitingMattias Engdegård2024-04-201-12/+15
| | | | | | | | | | | | * test/lisp/files-tests.el (files-tests-file-name-non-special-start-file-process): Make sure that the subprocess is killed before the test concludes.
* | Update gravatar-tests after URL escaping change (bug#70312)Mattias Engdegård2024-04-201-1/+1
| | | | | | | | | | * test/lisp/image/gravatar-tests.el (gravatar-default-image): It seems we now escape less.
* | * test/infra/Dockerfile.emba: Add libxml2-dev.Michael Albinus2024-04-201-1/+1
| |
* | Complete fix for eww-tests.elMichael Albinus2024-04-201-1/+3
| | | | | | | | | | * test/lisp/net/eww-tests.el (eww-test/readable/toggle-display) (eww-test/readable/default-readable): Check for libxml. (Bug#70472)
* | ; On MS-Windows, skip eglot test that creates symlinksEli Zaretskii2024-04-201-0/+2
| | | | | | | | | | * test/lisp/progmodes/eglot-tests.el (eglot-test-basic-symlink): Skip this test on MS-Windows.
* | Eglot: tweak previous change (bug#70036)João Távora2024-04-191-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/eglot.el (eglot--TextDocumentIdentifier-uri): Rename from eglot--cached-tdi. (eglot-handle-notification): Tweak comment. Use eglot--TextDocumentIdentifier-uri. (eglot--TextDocumentIdentifier) (eglot--signal-textDocument/didOpen): Use eglot--TextDocumentIdentifier-uri. * test/lisp/progmodes/eglot-tests.el (eglot-test-basic-symlink): Address compilation warning. Tweak comment slightly.
* | Fix regression involving erc-query-buffer-pF. Jason Park2024-04-191-0/+29
| | | | | | | | | | | | | | | | | | | | | | * lisp/erc/erc.el (erc-server-or-unjoined-channel-buffer-p): Doc. (erc-query-buffer-p): Don't return non-nil in non-ERC buffers and server buffers, and continue to honor string arguments. The regression was introduced by 3d87e343 "Use modern fallback for channel name detection in ERC". Thanks to Libera user mekeor for reporting this bug. * test/lisp/erc/erc-tests.el (erc-query-buffer-p): New test. (Bug#67220)
* | Add erc--skip message propertyF. Jason Park2024-04-192-3/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/erc/erc-backend.el (erc-server-connect): Add `erc--skip' property to `erc--msg-prop-overrides' so that timestamps only show up with the first server-sent message. (erc-server-PRIVMSG): Move `erc--msg-prop-overrides' declaration to top-level. * lisp/erc/erc-button.el (erc-button--display-error-notice-with-keys): Use `erc--skip' msg prop instead of `erc-stamp--skip' variable. * lisp/erc/erc-stamp.el (erc-stamp--skip): Remove variable. (erc-stamp--allow-unmanaged, erc-stamp--allow-unmanaged-p): Rename former to latter to remain consistent with convention used by other quasi-internal compatibility-related switches. (erc-add-timestamp): Check `erc--skip' property instead of deleted variable `erc-stamp--skip'. * lisp/erc/erc.el (erc--msg-props): Mention `erc--skip' in doc. (erc--check-msg-prop): Doc. (erc--memq-msg-prop): New function. (erc--ranked-properties): Add `erc--skip'. * test/lisp/erc/erc-scenarios-stamp.el (erc-scenarios-stamp--legacy-date-stamps): Revise to expect "opening connection.." to appear above first stamp. * test/lisp/erc/erc-tests.el (erc--memq-msg-prop): New test. (Bug#60936)
* | Don't nest date stamp insertions in erc-stampF. Jason Park2024-04-196-36/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * etc/ERC-NEWS: Don't mention certain insertion-adjacent hooks being suppressed for date stamps, which is no longer true. * lisp/erc/erc-common.el (erc--solo): New utility function. * lisp/erc/erc-fill.el (erc-fill-wrap): Don't move last-message marker when encountering a date stamp. * lisp/erc/erc-stamp.el (erc-stamp--recover-on-reconnect): Restore `erc-stamp--date-stamps' on reconnect and rejoin. (erc-stamp--insert-date-hook): Fix erroneous doc string. (erc-stamp--date): New struct type. (erc-stamp--deferred-date-stamp): New internal variable to pass state between hook members. (erc-stamp--date-stamps): New internal variable to store a reference to all inserted timestamps. (erc-stamp--propertize-left-date-stamp): Don't hide messages because this function runs on `erc-insert-modify-hook'. Prefer doing so later, in `erc-insert-post-hook'. (erc-stamp--find-insertion-point): New helper function. (erc-stamp--insert-date-stamp-as-phony-message): Remove. (erc-stamp--lr-date-on-pre-modify): Remove function. Portions of body now appear in `erc-stamp--defer-date-insertion-on-post-modify'. (erc-stamp--defer-date-insertion-on-post-modify) (erc-stamp--defer-date-insertion-on-post-insert) (erc-stamp--defer-date-insertion-on-post-send): New functions, although the first incorporates parts of the now defunct `erc-stamp--lr-date-on-pre-modify'. (erc-stamp--date-mode): Update hook-member functions. (erc-stamp-prepend-date-stamps-p): Revise doc. (erc-insert-timestamp-left-and-right): Remove code to initialize a date stamp in place through a nested call to `erc-display-message'. Instead, "pre-render" date stamp and stash it for retrieval by the function `erc-stamp--defer-date-insertion-on-post-modify'. (erc-stamp--setup): Kill variables `erc-stamp--deferred-date-stamp' and `erc-stamp--date-stamps'. (erc-stamp--reset-on-clear): Remove trimmed stamps from `erc-stamp--date-stamps'. * lisp/erc/erc.el (erc--msg-props): Document `erc--hide' in doc string. (erc--with-inserted-msg): Remove unused macro. (erc--insert-line-splice-function): New variable. (erc--with-spliced-insertion): New macro. (erc--insert-line-function): Expand doc string. (erc--remove-from-prop-value-list): Tweak doc string. (erc--insert-before-markers-transplanting-hidden): New function. (erc--hide-message): Remember managed `invisible' prop value. Do so by recording them in the `erc--hide' "msg prop". (erc--delete-inserted-message, erc--delete-inserted-message-naively): Rename former to latter to emphasize that it's largely impractical for general use. (erc--ranked-properties): Add `erc--hide'. * test/lisp/erc/erc-button-tests.el (erc-button-tests--erc-button-alist--function-as-form): Use `erc-display-message' helper. * test/lisp/erc/erc-fill-tests.el (erc-fill-tests--insert-privmsg) (erc-fill-tests--wrap-populate, erc-fill-wrap-tests--merge-action) (erc-fill-line-spacing): Use `erc-display-message' wrappers to intercept `erc-timer-hook' modifications. * test/lisp/erc/erc-scenarios-match.el (erc-scenarios-match--invisible-stamp): Add convenience commands to `extended-command-history' when running interactively. * test/lisp/erc/erc-tests.el (erc--insert-before-markers-transplanting-hidden): New test. (erc--delete-inserted-message, erc--delete-inserted-message-naively): Update test name as well as namesake function in body. * test/lisp/erc/resources/erc-scenarios-common.el (erc-scenarios-common-with-cleanup): Validate `erc-stamp--date-stamps' members after every scenario test. (erc-scenarios-common--assert-date-stamps): New function. * test/lisp/erc/resources/erc-tests-common.el: Require `erc-stamp' atop file when compiling. (erc-tests--common-display-message) (erc-tests-common-display-message) (erc-tests-common-with-date-aware-display-message): New functions and macro for running `erc-display-message' while intercepting additions to `erc-timer-hook' made by date-stamp-related post-insertion hooks. (erc-tests-common-snapshot-compare): Insert expected output into its own buffer for easier review during interactive sessions. This change is unrelated to the rest of this commit. (Bug#60936)
* | Improve erc-fill-wrap-merge refilling and movementF. Jason Park2024-04-195-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/erc/erc-fill.el (erc-fill--wrap-escape-hidden-speaker): Add parameter to suppress escaping of hidden prefixes. (erc-fill--wrap-beginning-of-line): Remember original value of point, and pass it to `erc-fill--wrap-escape-hidden-speaker'. (erc-fill--wrap-previous-line, erc-fill--wrap-next-line): Guard call to `erc-fill--wrap-escape-hidden-speaker' with conditional check for `erc-fill-wrap-merge'. (erc-fill--wrap-insert-merged-pre): Add additional text property, `erc-fill--wrap-merge', to help identify `display' regions servicing `erc-fill-wrap-merge'. This should make resolving inconsistencies easier when "splicing" new messages between existing ones. (erc-fill-wrap): Add `erc-fill--wrap-merge' text property to merged speaker region. (erc-fill--wrap-rejigger-region): Remove assertion disallowing a non-nil `erc-fill--wrap-rejigger-last-message'. Instead, adopt the existing value of that variable when shadowing it for the remaining extent of the function's execution. When removing the `display' property, also look for nonempty replacement text, such as values specified by the option `erc-fill-wrap-merge-indicator'. (erc-fill--wrap-merged-button-p): Look for `erc-fill--wrap-merge' property instead of `display'. * test/lisp/erc/resources/fill/snapshots/merge-01-start.eld: Update. * test/lisp/erc/resources/fill/snapshots/merge-02-right.eld: Update. * test/lisp/erc/resources/fill/snapshots/merge-wrap-01.eld: Update. * test/lisp/erc/resources/fill/snapshots/merge-wrap-indicator-pre-01.eld: Update. * test/lisp/erc/resources/fill/snapshots/spacing-01-mono.eld: Update. (Bug#60936)
* | Simplify option erc-merge-wrap-merge-indicatorF. Jason Park2024-04-192-10/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/erc/erc-fill.el (erc-fill-wrap-merge-indicator): Reduce offering of acceptable values by removing leading symbols and ditching the `post' variant entirely. The justification for the latter move hinges on it not being well suited to next-gen requirements involving the splicing and deletion of inserted messages. Meeting these would be overly burdensome and involve scanning the buffer in both directions for every such operation. This option is new in ERC 5.6, which is yet unreleased. (erc-fill--wrap-massage-legacy-indicator-type): New function to warn of obsolete `erc-fill-wrap-merge-indicator' value and perform a migration for the current session. (erc-fill-wrap, erc-fill-wrap-enable): Preform preflight compat check for obsolete `erc-fill-wrap-merge-indicator' value types. (erc-fill-wrap-disable): Don't bother killing nonexistent variable `erc-fill--wrap-merge-indicator-post'. (erc-fill--wrap-merge-indicator-post): Remove unused variable. (erc-fill--wrap-insert-merged-post): Remove unused function. (erc-fill--wrap-insert-merged-pre): Adapt to simplified format for option `erc-merge-wrap-merge-indicator'. (erc-fill-wrap): Remove conditional dispatch because there is only one path and only one indicator style. (erc-fill--wrap-rejigger-region): Remove reference to nonexistent variable `erc-fill--wrap-merge-indicator-post'. * test/lisp/erc/erc-fill-tests.el (erc-fill-wrap--merge-action/indicator-pre): Update format of value for option `erc-fill-wrap-merge-indicator'. (erc-fill-wrap--merge-action/indicator-post): Remove test focusing on obsolete and unsupported `post' variant of option `erc-fill-wrap-merge-indicator'. (erc-fill--wrap-massage-legacy-indicator-type): New test. * test/lisp/erc/resources/fill/snapshots/merge-wrap-indicator-post-01.eld: Delete file. (Bug#60936)
* | ; Improve erc-services and upgrade documentationF. Jason Park2024-04-191-1/+1
| | | | | | | | | | | | | | | | | | | | * doc/misc/erc.texi (Getting Help and Reporting Bugs): Describe alternate method for upgrading from GNU ELPA. This is a partial workaround for bug#68660 discovered by ERC contributor Alcor. * lisp/erc/erc-backend.el (erc-call-hooks): Add comment. * lisp/erc/erc-services.el (erc-nickserv-alist): Doc. * test/lisp/erc/erc-scenarios-base-renick.el (erc-scenarios-base-renick-queries-bouncer): Adjust timeout.
* | Make publishDiagnostics faster by using cached variableTheodor Thornhill2024-04-191-0/+22
| | | | | | | | | | | | | | | | | | * lisp/progmodes/eglot.el (eglot--cached-tdi): Move variable. (eglot-handle-notification): Expose 'server' and search through managed buffers for a cached textDocumentIdentifier, which has a file-truename resolved path. * test/lisp/progmodes/eglot-tests.el (eglot-test-basic-symlink): Add regression test for symlink behavior
* | ; * test/lisp/net/eww-tests.el (eww-test/display/html): Check for libxml.Jim Porter2024-04-191-0/+1
| |
* | (eglot--signal-textDocument/didChange): Fix testsStefan Monnier2024-04-181-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The tests call `eglot--signal-textDocument/didChange` eagerly, which means in the case where we use `track-changes` that they call it before the tracker's signal has been called. So make sure we fetch pending changes even if we haven't yet been notified of them, and make sure `eglot--versioned-identifier` is incremented even when the signal is not called. * lisp/progmodes/eglot.el (eglot--track-changes-fetch) (eglot--after-change): Increment `eglot--versioned-identifier` here... (eglot--track-changes-signal): ...instead of here. (eglot--signal-textDocument/didChange): Try and fetch changes even if the tracker's signal wasn't called yet. * test/lisp/progmodes/eglot-tests.el (eglot-tests--get): New function. (eglot-tests--lsp-abiding-column-1): Use it.
* | Don't error on tabbing to a widget at BOB (bug#69943)Stephen Berman2024-04-181-1/+7
| | | | | | | | | | | | | | | | | | * lisp/wid-edit.el (widget-move): Don't move backward when at beginning of buffer, and keep point on widget's left side. * test/lisp/wid-edit-tests.el (widget-test-widget-move): Test that moving to a widget at beginning of buffer does not signal a beginning-of-buffer error.
* | Avoid unnecessary escaping in 'url-build-query-string'Dagfinn Ilmari Mannsåker2024-04-181-1/+5
| | | | | | | | | | | | | | | | | | * lisp/url/url-util.el (url-query-key-value-allowed-chars): New defconst. (url-build-query-string): Use it to escape only those characters that need it in keys and values. * test/lisp/url/url-util-tests.el (url-util-tests): Add new test cases. (Bug#70312)
* | Adapt tree-sitter job on EMBAMichael Albinus2024-04-161-1/+7
| | | | | | | | | | * test/infra/gitlab-ci.yml (.tree-sitter-template) (test-tree-sitter): Adapt tree-sitter job.
* | ; Fix last change to secrets-tests.el.Basil L. Contovounesios2024-04-151-1/+1
| |
* | GC-mark temporary key values created when sorting (bug#69709)Mattias Engdegård2024-04-141-0/+21
| | | | | | | | | | | | | | | | | | Bug reported and fix proposed by Aris Spathis. * src/sort.c (merge_markmem): Mark heap-allocated temporary key values. (tim_sort): Delay key function calls to after marking function has been registered. * test/src/fns-tests.el (fns-tests-sort-gc): New test.
* | Recognize multicite macros from biblatexArash Esbati2024-04-131-0/+22
| | | | | | | | | | | | | | | | | | * lisp/textmodes/reftex-cite.el (reftex-all-used-citation-keys): Match the citation keys used with multicite macros provided by biblatex. (bug#38249) * test/lisp/textmodes/reftex-tests.el (reftex-all-used-citation-keys): Adjust test accordingly.
* | peg-tests.el: Fix test failuresStefan Monnier2024-04-131-8/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/peg.el (peg-parse): Refine heuristic since unknown terminals are resolved at run-time rather than compile-time now. (peg--macroexpand) <stack-action>: Avoid generating a `let` with an empty body. (peg--translate-rule-body): Adjust to name change of `macroexp-warn-and-return` and the fact that it's always available. * test/lisp/progmodes/peg-tests.el (peg-parse-string): Add `indent` declaration. (peg-test): Check that the compiler emits the warnings we expect.
* | Merge branch 'track-changes'Stefan Monnier2024-04-131-0/+156
|\ \
| * | lisp/emacs-lisp/track-changes.el: New file (bug#70077)Stefan Monnier2024-04-131-0/+156
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This new package provides an API that is easier to use right than our `*-change-functions` hooks. The patch includes changes to `diff-mode.el` and `eglot.el` to make use of this new package. * lisp/emacs-lisp/track-changes.el: New file. * test/lisp/emacs-lisp/track-changes-tests.el: New file. * doc/lispref/text.texi (Tracking changes): New subsection. * lisp/progmodes/eglot.el: Require `track-changes`. (eglot--virtual-pos-to-lsp-position): New function. (eglot--track-changes): New var. (eglot--managed-mode): Use `track-changes-register` i.s.o `after/before-change-functions` when available. (eglot--track-changes-signal): New function, partly extracted from `eglot--after-change`. (eglot--after-change): Use it. (eglot--track-changes-fetch): New function. (eglot--signal-textDocument/didChange): Use it. * lisp/vc/diff-mode.el: Require `track-changes`. Also require `easy-mmode` before the `eval-when-compile`s. (diff-unhandled-changes): Delete variable. (diff-after-change-function): Delete function. (diff--track-changes-function): Rename from `diff-post-command-hook` and adjust to new calling convention. (diff--track-changes): New variable. (diff--track-changes-signal): New function. (diff-mode, diff-minor-mode): Use it with `track-changes-register`.
* | | Fix Icalendar export with ISO datesEli Zaretskii2024-04-131-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/calendar/icalendar.el (icalendar--datestring-to-isodate): Accept dashes in ISO-style numeric dates. Patch by Erwan Hingant <erwan.hingant@mailo.com>. (Bug#69894) * test/lisp/calendar/icalendar-tests.el (icalendar--datestring-to-isodate): Add a test for dashes in ISO-style numeric dates.
* | | (elisp-tests-syntax-propertize): New test for bug#24542Stefan Monnier2024-04-121-0/+9
| | | | | | | | | | | | | | | * test/lisp/progmodes/elisp-mode-tests.el (elisp-tests-syntax-propertize): New test.
* | | Improve D-Bus byte-array conversionMichael Albinus2024-04-122-12/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/misc/dbus.texi (Type Conversion): Adapt dbus-byte-array-to-string. * etc/NEWS: D-Bus byte array conversion works over raw UTF-8 bytes. Fix typos. * lisp/net/dbus.el (dbus-string-to-byte-array) (dbus-byte-array-to-string): BYTE-ARRAY must be an UTF-8 raw bytes sequence. Make optional argument MULTIBYTE obsolete. (Bug#70301) (dbus-call-method-handler, dbus-register-signal) (dbus-escape-as-identifier): Use `length=' and `length>'. * test/lisp/net/dbus-tests.el (dbus--test-method-handler) (dbus-test09-get-managed-objects): Use `length='. (dbus-test01-type-conversion): Extend test. * test/lisp/net/secrets-tests.el (secrets-test03-items): Extend test.
* | | ; Fix whitespace in editfns-tests.elEli Zaretskii2024-04-111-1/+1
| | | | | | | | | | | | | | | * test/src/editfns-tests.el (editfns-tests--before/after-change-functions): Fix whitespace.
* | | (en/decode_coding_object): Fix `after-change-functions`Stefan Monnier2024-04-101-5/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For `en/decode-coding-string/region`, `after-change-functions` were either not run at all, or run only after deleting the text but not after inserting it. * src/coding.c (decode_coding_object, encode_coding_object): Run the after-change-functions after inserting the result. * test/src/editfns-tests.el (sanity-check-change-functions-with-op): New macro. (sanity-check-change-functions-errors): New function. (editfns-tests--before/after-change-functions): Use them to add cases for `en/decode-coding-string/region`.
* | | Fix 'format-seconds' when all values are zero and %z is usedEli Zaretskii2024-04-101-1/+4
|/ / | | | | | | | | | | | | * lisp/calendar/time-date.el (format-seconds): Fix all-zero time. * test/lisp/calendar/time-date-tests.el (test-format-seconds): Add two new tests. (Bug#70322)
* | (test-replace-match-modification-hooks): Delete testStefan Monnier2024-04-091-17/+19
| | | | | | | | | | * test/src/search-tests.el (test-replace-match-modification-hooks): Delete, this is testing a functionality we can't really support.
* | ; Avoid byte-compiler warnings in 'ls-lisp-test-bug70271'.Eli Zaretskii2024-04-091-1/+2
| |
* | ; Fix the test in last change.Eli Zaretskii2024-04-091-0/+3
| |
* | Support more long time options in 'ls-lisp'Lin Sun2024-04-091-0/+36
| | | | | | | | | | | | | | | | * lisp/ls-lisp.el (ls-lisp--sanitize-switches): Support '--time' and '--sort=time'. (Bug#70271) * test/lisp/ls-lisp-tests.el (ls-lisp-test-bug70271): New test case.
* | * Fix out of date comp pass names in comp-tests.elAndrea Corallo2024-04-081-5/+5
| | | | | | | | | | * test/src/comp-tests.el (comp-tests-tco, comp-tests-fw-prop-1) (comp-tests-pure): Update out of date pass names.
* | Make tree-sitter thing feature public and remove obsolete functionsYuan Fu2024-04-071-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/treesit.el (treesit--things-around): Remove function. (treesit-forward-sexp): (treesit-beginning-of-thing): (treesit-end-of-thing): (treesit-navigate-thing): (treesit-thing-at-point): (treesit-outline-search): Use public version of thing-functions. (treesit--thing-prev): (treesit--thing-next): (treesit--thing-at): (treesit--navigate-thing): Make public. * test/src/treesit-tests.el (treesit--ert-test-defun-navigation): Use public version of thing-functions.
* | Allow updating of /IGNORE timeouts in ERCF. Jason Park2024-04-072-0/+107
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/erc/erc.el (erc--read-time-period, erc--decode-time-period): Move body of former, now a superficial wrapper, to latter, a new function. (erc--format-time-period): New function. (erc--get-ignore-timer-args): New function. (erc--find-ignore-timer): New function to search through `timer-list' to find matching ignore timer. (erc-cmd-IGNORE): Refactor and redo doc string. Add new optional `timespec' parameter, primarily to aid in testing. Update an existing timer instead of always creating one, and display time remaining in "ignore list" output. Pass server buffer instead of current buffer to timer callbacks because `erc--unignore-user' displays its messages in the `active' buffer, not necessarily the issuing one. Note that doing this does discard potentially useful information, so if ever reverting, we can change the `cl-find' :test in `erc--find-ignore-timer' to something that compares the `erc-server-process' of both buffers. ;; ;; Something like: ;; ;; (defun erc--ignore-timers-equal-p (a b) ;; (and (equal (car a) (car b)) ;; (eq (buffer-local-value 'erc-server-process (cadr a)) ;; (buffer-local-value 'erc-server-process (cadr b))))) ;; (erc-cmd-UNIGNORE): Pass `erc-ignore-list' member matching `user' parameter to `erc--unignore-user' instead of original, raw parameter, along with the server buffer. (erc--unignore-user): Cancel existing timer and don't bother switching to server buffer since we're already there. (erc-message-english-ignore-list): New variable. * test/lisp/erc/erc-scenarios-ignore.el: New file. * test/lisp/erc/erc-tests.el (erc--read-time-period): New test. (erc-cmd-UNIGNORE): New test. (Bug#70127)
* | (Freplace_match): Fix bug#65451Stefan Monnier2024-04-071-0/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/search.c (Freplace_match): For ordering of *-change-functions. * test/src/editfns-tests.el (editfns-tests--before/after-change-functions): New test. (sanity-check--message, sanity-check-change-functions-error) (sanity-check-change-functions-check-size) (sanity-check-change-functions-before) (sanity-check-change-functions-after): New functions. (sanity-check--verbose, sanity-check-change-functions-beg) (sanity-check-change-functions-end) (sanity-check-change-functions-buffer-size) (sanity-check-change-functions-errors): New vars.
* | Merge from origin/emacs-29Eli Zaretskii2024-04-061-0/+78
|\ \ | |/ | | | | | | 46b8746b38e Fix warning-suppress for list type "warning type" 910ea5f1e55 Make object init more robust (bug#69571)
| * Make object init more robust (bug#69571)Theodor Thornhill2024-03-311-0/+78
| | | | | | | | | | | | * lisp/progmodes/csharp-mode.el (csharp-guess-basic-syntax): Make the regex same as before, but conditionally check other heuristics rather than crazy regex shenanigans.
* | Make sh-script-tests.el more robustMichael Albinus2024-04-052-0/+7
| | | | | | | | | | | | | | * test/lisp/progmodes/sh-script-tests.el (test-sh-script-indentation) (test-basic-sh-indentation, test-indent-after-continuation): * test/lisp/progmodes/sh-script-resources/sh-indents.erts (Code): Skip if `sh-indent-supported-here' is nil. (Bug#70196)
* | Adapt treesitter tests for EMBAMichael Albinus2024-04-042-1/+7
| | | | | | | | | | | | | | * test/infra/Makefile.in (TREE-SITTER-FILES): Add js-tests.el and python-tests.el, which don't follow test file name convention. * test/infra/test-jobs.yml: Regenerate.