aboutsummaryrefslogtreecommitdiffstats
path: root/test (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Comp: Fix limplification pass (bug#62537)Andrea Corallo2023-04-051-0/+13
| | | | | | | | * test/src/comp-resources/comp-test-funcs.el (comp-test-62537-1-f) (comp-test-62537-2-f): New functions. * lisp/emacs-lisp/comp.el (comp-jump-table-optimizable): Make it stricter add a comment.
* Improve list indentation for elixir-ts-modeWilhelm H Kirschbaum2023-04-041-1/+19
| | | | | | | | * lisp/progmodes/elixir-ts-mode.el: (elixir-ts--argument-indent-offset): Add empty line check. (elixir-ts--argument-indent-anchor): Change ERROR offset. * test/lisp/progmodes/elixir-ts-mode-resources/indent.erts: Add test.
* ; Fix last changeMichael Albinus2023-04-031-2/+2
|
* Fix some `unwind-protect' formsMichael Albinus2023-04-032-8/+12
| | | | | | | | | | | * lisp/net/tramp-smb.el (tramp-smb-handle-file-acl) (tramp-smb-handle-set-file-acl): Remove superfluous `unwind-protect'. * test/lisp/auth-source-tests.el (auth-source-test-secrets-create-secret): Fix `unwind-protect' handler. * test/lisp/net/tramp-tests.el (tramp-test38-find-backup-file-name): Add dummy cleanup form.
* Merge from origin/emacs-29João Távora2023-04-031-1/+17
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3bdbb66efb9 ; CONTRIBUTE: Minor stylistic changes. d0eb12e8d3c Fix typo in section 14.1 of Emacs Manual b2fbec37f39 ; * etc/EGLOT-NEWS: Clarify scope of topmost section 131ec049db0 Eglot: unbreak eglot-extend-to-xref on w32 0622e1f29f6 Eglot: ensure server shutdown turns off eglot-inlay-hints... 59f66ea3027 ; * lisp/emacs-lisp/package-vc.el: Remove completed item ... d23dc3dd7e3 ; * lisp/emacs-lisp/package-vc.el (package-vc): Fix manua... 4508a024e81 ; Clarify documentation of 'cursor' text property d2e82817a3f Add two typescript-ts-mode faces (bug#62429) 10918fc9d24 Fix scrolling window when point moves up 9b32bc134c4 Improve documentation of 'defcustom's :set keyword ab4273056e0 Comp fix calls to redefined primtives with op-bytecode (b... c98929c7e18 ; Fix last change a14c3f62a67 ; Fix last change 09fece5722f Fix duplicate defcustom in eww.el e45bd10a3d9 Fix indentation regression in 'C-h l' 46fd10a7600 * doc/misc/tramp.texi (Remote shell setup): Clarify use o...
| * Comp fix calls to redefined primtives with op-bytecode (bug#61917)Andrea Corallo2023-03-291-1/+17
| | | | | | | | | | | | | | | | * test/src/comp-tests.el (61917-1): New test. * src/comp.c (syms_of_comp): New variable. * lisp/loadup.el: Store primitive arities before dumping. * lisp/emacs-lisp/comp.el (comp--func-arity): New function. (comp-emit-set-call-subr): Make use of `comp--func-arity'.
* | Fix using background commands in 'eshell-command'Jim Porter2023-04-021-0/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This regressed due to the patch for bug#53715, which changed how Eshell pipelines return the processes in the pipeline (bug#62556). * lisp/eshell/esh-cmd.el (eshell-parse-command): When creating background commands, wrap the process(es) in a cons cell whose CAR is ':eshell-background'. This lets us use fewer heuristics... (eshell-eval-command): ... here. Additionally, keep the result and the incomplete delimiter separate. * lisp/eshell/eshell.el (eshell-command): Check ':eshell-background' and use a more-robust method for setting the output target. * test/lisp/eshell/eshell-tests.el (eshell-test/eshell-command/simple) (eshell-test/eshell-command/pipeline) (eshell-test/eshell-command/background) (eshell-test/eshell-command/background-pipeline): New tests.
* | src/eval.c: Fix bug#62419Stefan Monnier2023-04-021-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Yup, almost 40 years after ELisp first combined them, buffer-local and let bindings still don't work quite right :-( The "automatically buffer-local if set" semantics should follow the principle that it becomes buffer-local iff the var's current binding refers to the top-level/global/non-let binding. * src/eval.c (let_shadows_buffer_binding_p): Disregard non-global let-bindings. * test/src/eval-tests.el (eval-test--bug62419): New test.
* | ; Add tests for synchronous processes in EshellJim Porter2023-04-021-0/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Normally, Eshell only uses synchronous processes on MS-DOS, so this is hard to test. To get around this, let the tests explicitly request synchronous processes. * lisp/eshell/esh-proc.el (eshell-supports-asynchronous-processes): New variable... (eshell-gather-process-output): ... use it, and remove some incorrect code updating Eshell's internal markers (the async code path doesn't do this, so neither should the sync path). * lisp/eshell/esh-cmd.el (eshell-execute-pipeline): Use 'eshell-supports-asynchronous-processes'. * test/lisp/eshell/esh-proc-tests.el (esh-proc-test/emacs-command): New function. (esh-proc-test/emacs-echo, esh-proc-test/emacs-upcase): New variables. (esh-proc-test/synchronous-proc/simple/interactive) (esh-proc-test/synchronous-proc/simple/command-result) (esh-proc-test/synchronous-proc/pipeline/interactive) (esh-proc-test/synchronous-proc/pipeline/command-result): New tests.
* | Avoid shadowing variables in some Eshell command formsJim Porter2023-04-011-2/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/eshell/esh-cmd.el (eshell-rewrite-for-command): Make 'for-items' an uninterned symbol. (eshell-as-subcommand): Correct docstring. (eshell-do-command-to-value): Mark obsolete. (eshell-command-to-value): Move binding of 'value' outside of the macro's result, and remove call to 'eshell-do-command-to-value'. * test/lisp/eshell/esh-cmd-tests.el (esh-cmd-test/subcommand-shadow-value) (esh-cmd-test/for-loop-for-items-shadow): New tests. (esh-cmd-test/for-name-loop, esh-cmd-test/for-name-shadow-loop): Rename to... (esh-cmd-test/for-loop-name, esh-cmd-test/for-loop-name-shadow): ... these.
* | * test/infra/Dockerfile.emba (emacs-eglot): Adapt software selection.Michael Albinus2023-03-311-9/+0
| |
* | ; * test/lisp/dired-aux-tests.el: remove mistaken unwind-protectMattias Engdegård2023-03-291-6/+5
| |
* | Warn about unwind-protect without unwind formsMattias Engdegård2023-03-291-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `unwind-protect` without unwind forms is not just pointless but often indicates a mistake where the intended unwind part is misplaced, as in (unwind-protect (progn PROT-FORMS UNWIND-FORMS)) ; oops or (unwind-protect PROT-FORM) UNWIND-FORMS ; also oops or entirely forgotten for that matter. Warning about this makes sense, and the warning can always be silenced by removing the `unwind-protect` altogether if it shouldn't be there in the first place. * lisp/emacs-lisp/macroexp.el (macroexp--expand-all): Implement warning. * etc/NEWS: Announce. * test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-test--with-suppressed-warnings): Add test case.
* | * test/infra/Dockerfile.emba (emacs-eglot): Adapt software selection.Michael Albinus2023-03-291-4/+9
| |
* | Merge from origin/emacs-29Stefan Kangas2023-03-294-14/+3
|\ \ | |/ | | | | | | | | | | | | | | | | | | 3965c65d5e2 ; * lisp/subr.el (read-char-choice): Fix last change. c1eac5b6586 Improve documentation of 'read-choice' and related symbols a8c9283e170 Revert "Comp fix calls to redefined primtives with op-byt... 8b66d8abd01 Revert "* lisp/emacs-lisp/comp.el (comp-emit-set-call-sub... 4ec4f614c71 ; Fix incompatibility in 'display-buffer-assq-regexp' ba3ade58f3b Skip ruby-ts-imenu-index test if needed 9133446db87 Fix Eglot Tramp tests on EMBA 5b351bc7fa9 * test/infra/Dockerfile.emba (emacs-gnustep): Instrument ...
| * Revert "Comp fix calls to redefined primtives with op-bytecode (bug#61917)"Andrea Corallo2023-03-281-13/+0
| | | | | | | | | | | | | | This reverts commit 263d6c38539691c954f4c3057cbe8d5468499b91. These patch series caused a number of regression and more analysis is required.
| * Skip ruby-ts-imenu-index test if neededMichael Albinus2023-03-281-0/+1
| | | | | | | | | | * test/lisp/progmodes/ruby-ts-mode-tests.el (ruby-ts-imenu-index): Add check for treesitter.
| * Fix Eglot Tramp tests on EMBAMichael Albinus2023-03-281-0/+1
| | | | | | | | | | * test/lisp/progmodes/eglot-tests.el (eglot--call-with-tramp-test): Bind `tramp-allow-unsafe-temporary-files' with t. (Bug#62289)
| * * test/infra/Dockerfile.emba (emacs-gnustep): Instrument "make V=1 ...".Michael Albinus2023-03-281-1/+1
| |
* | Avoid parsing some Eshell forms when performing completionJim Porter2023-03-281-10/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | During completion, we want to evaluate most Eshell forms (e.g. variable references), but skip others (e.g. globbing, subcommands). For globbing, we want to pass the literal glob to Pcomplete so it can use the glob for selecting completion candidates. For subcommands (including Lisp forms), we especially want to avoid evaluation, since they can produce arbitary side effects! (Bug#50470) * lisp/eshell/esh-cmd.el (eshell-allow-commands): New variable... (eshell-commands-forbidden): New error... (eshell-named-command, eshell-lisp-command): ... use them. * lisp/eshell/em-cmpl.el (eshell-complete--eval-argument-form): Disallow command forms and handle errors ourselves. (eshell-complete-parse-arguments): Don't parse glob characters. * test/lisp/eshell/em-cmpl-tests.el (em-cmpl-test/parse-arguments/unevaluated-subcommand) (em-cmpl-test/parse-arguments/unevaluated-lisp-form) (em-cmpl-test/parse-arguments/unevaluated-inner-subcommand) (em-cmpl-test/file-completion/glob, em-cmpl-test/command-completion) (em-cmpl-test/subcommand-completion): New tests. (em-cmpl-test/parse-arguments/pipeline): Remove superfluous let-binding. (em-cmpl-test/file-completion/after-list): Use a list variable rather than a subexpression; the latter is no longer evaluated during completion. (em-cmpl-test/lisp-function-completion): Check "$(func)" syntax.
* | Simplify parsing subcommands slightlyJim Porter2023-03-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This mainly reduces some overly-deep indentation, but also fixes some minor issues with the "$<subcmd>" form: it unnecessarily added " > TEMP" (we already set this later via 'eshell-create-handles'), and it didn't properly unescape inner double quotes. * lisp/eshell/esh-cmd.el (eshell-parse-subcommand-argument): Simplify. * lisp/eshell/esh-var.el (eshell-parse-variable-ref): Simplify and fix edge cases in "$<subcmd>". * test/lisp/eshell/esh-var-tests.el (esh-var-test/quoted-interp-temp-cmd): Adjust test to check behavior of inner double quotes.
* | Merge from origin/emacs-29Stefan Monnier2023-03-271-0/+25
|\ \ | |/ | | | | | | | | edc460e3b6c Fix accidental backward-incompatible change (bug#62417) cbef1422fe3 ruby-ts-mode: Fix/simplify Imenu index generation a0d5fba74a6 (ruby-ts--align-chain): Use 'equal' to check for an exact...
| * ruby-ts-mode: Fix/simplify Imenu index generationDmitry Gutov2023-03-271-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/ruby-ts-mode.el (ruby-ts--full-name): Drop '#' from the end of resulting string when the node is not a method. Support 'singleton_method' nodes. (ruby-ts--imenu-helper): Simplify, to create a "flat" list of entries, rather than a nested one. The previous implementation had problems (like producing a nested structure of full-qualified names, thus creating a lot of textual repetition), seems easier to just follow ruby-mode's example here, at least for Emacs 29's release. * test/lisp/progmodes/ruby-ts-mode-tests.el (ruby-ts-imenu-index): New test.
* | Merge from origin/emacs-29Stefan Monnier2023-03-273-18/+27
|\ \ | |/ | | | | | | | | | | | | | | | | 0337131bfa1 Update to Transient v0.3.7-218-g3dbb22a a8c23677d39 Update to Org 9.6.2 45b16bfb496 Skip failing tests on Cygwin with native compilation (bug... 8b4a494d8d4 Fix GNUSTEP tests on EMBA # Conflicts: # test/infra/gitlab-ci.yml
| * Skip failing tests on Cygwin with native compilation (bug#62450)Ken Brown2023-03-262-1/+12
| | | | | | | | | | | | | | | | | | * test/Makefile.in (TEST_NATIVE_COMP): New variable, used to determine whether to run tests tagged with :nativecomp. Set it to "no" on Cygwin and to $(HAVE_NATIVE_COMP) otherwise. * test/lisp/emacs-lisp/benchmark-tests.el (benchmark-tests): Skip on Cygwin with native-compilation.
| * Fix GNUSTEP tests on EMBAMichael Albinus2023-03-261-17/+15
| | | | | | | | | | | | | | | | * configure.ac (LIBS_GNUSTEP): Adapt CPPFLAGS and CFLAGS. (Bug#62210) Proposed by Po Lu <luangruo@yahoo.com>. * test/infra/gitlab-ci.yml (build-image-gnustep) (test-gnustep): Uncomment jobs.
* | Merge from origin/emacs-29Stefan Monnier2023-03-273-2/+40
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | 8f42db010d1 Improve indenting "case" in Python c4d490490dc ; * test/src/fns-tests.el: Fix last change 875e77a66a6 * test/infra/Dockerfile.emba (emacs-native-comp): Add zli... 64a2b0d36fe Fix failure of fns-tests-collate-strings on Cygwin 90fc6b987ad * lisp/savehist.el (savehist-save): Preserve shared struc... 08fbc133756 Adapt Tramp manual accb3871668 Fix system time sampling on MS-Windows 33d436eefa1 Fix treesit_ensure_parsed (bug#62333) d93a439846f * lisp/help-fns.el (find-lisp-object-file-name): Fix bug#... be8147c53f9 Improve "Bugs" in the Emacs manual
| * Improve indenting "case" in Pythonkobarity2023-03-261-0/+38
| | | | | | | | | | | | | | | | * lisp/progmodes/python.el (python-info-dedenter-statement-p): Do not consider the first "case" in the block as dedenter. * test/lisp/progmodes/python-tests.el (python-info-dedenter-opening-block-positions-7) (python-info-dedenter-statement-p-6): New tests. (Bug#62092)
| * ; * test/src/fns-tests.el: Fix last changeKen Brown2023-03-251-1/+1
| |
| * * test/infra/Dockerfile.emba (emacs-native-comp): Add zlib1g-dev.Michael Albinus2023-03-251-1/+1
| |
| * Fix failure of fns-tests-collate-strings on CygwinKen Brown2023-03-251-2/+2
| | | | | | | | | | | | | | | | * test/src/fns-tests.el (fns-tests-collate-strings): Use en_XY.UTF-8 instead of en_DE.UTF-8 as an example of an invalid locale; en_DE.UTF-8 is actually a valid locale on Cygwin. Note: The test will still fail on Cygwin releases < 3.5 because of a Cygwin bug. (Bug#62420)
* | * test/infra/Dockerfile.emba (emacs-eglot): Adapt software selection.Michael Albinus2023-03-271-3/+3
| |
* | * test/infra/Dockerfile.emba (emacs-eglot): Adapt software selection.Michael Albinus2023-03-261-1/+1
| |
* | * test/infra/Dockerfile.emba (emacs-eglot): Adapt software selection.Michael Albinus2023-03-251-3/+9
| |
* | Connection-local variables are applied in buffers visiting a remote fileMichael Albinus2023-03-251-9/+29
| | | | | | | | | | | | | | | | * etc/NEWS: Connection-local variables are applied in buffers visiting a remote file. * test/lisp/net/tramp-tests.el (tramp-test34-connection-local-variables): Fix test.
* | Fix shortdoc-tests when Unicode arrows can be displayedMattias Engdegård2023-03-251-6/+24
| | | | | | | | | | | | | | | | | | | | New shortdoc functions use Unicode arrows when possible, which caused some tests to fail if run under such circumstances. * test/lisp/emacs-lisp/shortdoc-tests.el (shortdoc-tests--to-ascii): New function. (shortdoc-function-examples-test) (shortdoc-help-fns-examples-function-test): Call it.
* | * test/infra/Dockerfile.emba (emacs-eglot): Install wget.Michael Albinus2023-03-231-0/+5
| |
* | ; Add test for embedded HEEx to elixir-ts-mode-testsWilhelm H Kirschbaum2023-03-231-0/+24
| | | | | | | | | | * test/lisp/progmodes/elixir-ts-mode-resources/indent.erts: Add test. (Bug#62327)
* | Merge from origin/emacs-29Stefan Kangas2023-03-233-17/+46
|\ \ | |/ | | | | | | | | | | | | | | 6de00e4df99 ; Fix xref-match's :version since the default value did c... db355b420b6 Use libgccjit-10-dev on EMBA 84963956535 * lisp/outline.el (outline--fix-buttons-after-change): Ad... 3d3bbaace69 Align concatenated strings to the first sibling in c-ts-mode f856468e457 Only fill the current paragraph in c-ts-common--fill-bloc... df669c5a11f Add missing indent rule for c-ts-mode
| * Use libgccjit-10-dev on EMBAMichael Albinus2023-03-222-17/+16
| | | | | | | | | | | | | | | | * test/infra/Dockerfile.emba (emacs-native-comp): Use libgccjit-10-dev. (Bug#62211) * test/infra/gitlab-ci.yml (build-native-comp-speed2) (test-native-comp-speed2): Uncomment jobs.
| * Add missing indent rule for c-ts-modeYuan Fu2023-03-211-0/+30
| | | | | | | | | | * lisp/progmodes/c-ts-mode.el (c-ts-mode--indent-styles): New rule for case. * test/lisp/progmodes/c-ts-mode-resources/indent.erts: New test.
* | Add platform for Eglot tests on EMBAMichael Albinus2023-03-222-0/+38
| | | | | | | | | | | | | | * test/infra/Dockerfile.emba (emacs-eglot): New image. * test/infra/gitlab-ci.yml (.eglot-template): New template. (build-image-eglot, test-eglot): New jobs.
* | Make eglot--clangd-version more robustRobert Pluim2023-03-221-3/+4
| | | | | | | | | | | | * test/lisp/progmodes/eglot-tests.el (eglot--clangd-version): Check for 'version ' followed by a combination of numbers and dots to extract the clangd version.
* | Merge from origin/emacs-29Stefan Kangas2023-03-222-29/+49
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | 8b6a0de964d Improve docstring of treesit-parent-while (bug#62301) 35648a86730 ; Delete accidental leftover '()' Eglot function 47d8e4b0d38 Eglot: report window/workDoneProgress capability to langu... 4a7a0c9a9f5 * lisp/emacs-lisp/comp.el (comp-emit-set-call-subr): Impr... 4a6eefb93a5 Expand defvar-keymap documentation 7a1272168af * lisp/treesit.el (treesit-end-of-defun): Guard arg again... 263d6c38539 Comp fix calls to redefined primtives with op-bytecode (b... 6bf441ff115 Warn package authors away from keymap-unset with REMOVE 786de66ec3c Comment out jobs on EMBA eed240bc022 Improve defvar-keymap docstring.
| * Comp fix calls to redefined primtives with op-bytecode (bug#61917)Andrea Corallo2023-03-201-0/+13
| | | | | | | | | | | | * lisp/emacs-lisp/comp.el (comp-emit-set-call-subr): Fix compilation of calls to redefined primtives with dedicated op-bytecode. * test/src/comp-tests.el (61917-1): New test.
| * Comment out jobs on EMBAMichael Albinus2023-03-201-29/+36
| | | | | | | | | | * test/infra/gitlab-ci.yml: Comment out jobs due to bug#62210 and bug#62211.
* | Skip Eglot test if using very old clangdJoão Távora2023-03-211-0/+7
| | | | | | | | | | | | * test/lisp/progmodes/eglot-tests.el (eglot--clangd-version): New helper. (eglot-test-diagnostic-tags-unnecessary-code): Use it.
* | Merge from origin/emacs-29Stefan Kangas2023-03-201-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b7f03333551 Improve warning about changing the string returned by sym... e62f8b0239d Fix visiting XBM/XPM files when 'c-ts-mode' is active 94d1c81cf07 * lisp/mpc.el (mpc-format): Fix oversight in commit 48b6c... a4d97811ed4 Bail early from eglot--apply-text-edits if nothing to do 61d571760b3 ; Clarify in-code commentary of eglot--after-change 5bbbd70f56e Improve ergonomics of Eglot's inlay hints c3a543123ab Protect against too large size of 'recent-keys' vector 231190b37f8 * lisp/net/tramp.el (tramp-yn-prompt-regexp): Fix regexp. 0bebd0e5f09 ; Remove 'build-module' and 'html-manual' directories fro... 6674c362ad9 Merge branch 'emacs-29' of git.savannah.gnu.org:/srv/git/... 829e5dfabea Update to Org 9.6.1-48-g92471e e84f878e19a ; * admin/notes/tree-sitter/starter-guide: Update starter... ea0949853f8 Merge branch 'emacs-29' of git.savannah.gnu.org:/srv/git/... 11592bcfda6 ; * lisp/nxml/xmltok.el (xmltok-scan-attributes): Fix las... e388a77cf0b ; Minor copyedits of recent changes in ELisp reference ma... 33a26703689 ; Minor fixes in recent Eglot changes d2cf1386fa4 ; * doc/misc/eglot.texi (Eglot Commands): Improve indexing. b75e489362b ; Again correct node reference casing in doc/misc/eglot.texi a55d2edc5a9 ; Remove overly verbose commentary 22a70451f34 Merge confusing duplicate sections on commands in Eglot m... 3293f939882 Don't take over mouse-1 binding on Eglot diagnostics (bug... 013057e3512 ; Prefer "language server" to "LSP server" in Eglot manual 94a21c88647 * lisp/progmodes/eglot.el (eglot--connect): Improve Tramp... 0eddfa28ebd Avoid slowdowns in xmltok-scan-attributes 647c6bf2a6c ; * test/lisp/abbrev-tests.el (abbrev--possibly-save-test... 531f8f7103a ; * admin/git-bisect-start: Update failing commits # Conflicts: # admin/notes/tree-sitter/build-module/batch.sh # admin/notes/tree-sitter/build-module/build.sh
| * ; * test/lisp/abbrev-tests.el (abbrev--possibly-save-test): Fix test.Eli Zaretskii2023-03-181-1/+1
| |
* | Merge from origin/emacs-29Stefan Kangas2023-03-201-0/+18
|\ \ | |/ | | | | | | aedb9e3ec37 Add tests for Bug#62207 faee8d50738 ; Fix 'make-obsolete-variable' forms