aboutsummaryrefslogtreecommitdiffstats
path: root/test (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge from savannah/emacs-30Po Lu2024-06-304-9/+12
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 72cf9964f3c Inaccuracy in efaq.texi fc48e9e8ed5 ; Fix typos in DOS Makefile scripts 9b8d754579f ; * etc/NEWS: Explain Nextstep. 8819e5a45d5 Fix treesit crash (bug#71681) eaf2dc96c1f ; Fix SHR test on MS-Windows 57880f597c5 Delete redundant mention of `with-eval-after-load' ea8ce984342 * doc/misc/efaq.texi (New in Emacs 30): Fix typos. 45a20d781a9 ; Fix typos in symbols d95f039af43 Document security fixes in FAQ d063af203c8 Add "New in Emacs 30" to FAQ ca6b484162b ; * etc/NEWS: Move "Minibuffer and Completions" 35c46663e49 ; * etc/NEWS: Move item to "Lisp Changes". 0515b38d289 ; * etc/NEWS: Move keyboard macro items closer together. 22af3a71039 ; * etc/NEWS: More copy-edits. 000ef8876ae ; * etc/NEWS: Move items to "Incompatible Lisp Changes". 4088dc8e4ce ; * etc/NEWS: Rearrange "Incompatible Lisp Changes". 179800f36bb ; * lisp/epg.el (epg--start): Add commentary about encoding. 73898f0214c Fix non-ASCII filename operatiion on EasyPG (bug#71500) a65b6aac6b5 Silence warning with global minor mode :predicate f5f7343ac41 ; * etc/NEWS: Move an item to "Startup Changes" c95066bf188 ; * etc/NEWS: Move some Lisp items to better place. bf7db88ce1f ; * etc/NEWS: Rearrange "Editing Changes in Emacs 30.1" 000424eb9eb ; * etc/NEWS: Make touch screen support more prominent. 5b5671587fb ; * etc/NEWS: Rearrange "Changes in Emacs 30.1". 31124abdefe ; * lisp/thingatpt.el (sexp-at-point): Doc fix (bug#71777). 44f269d6e60 Fix: make 'xwidget-webkit-scroll-backward' scroll backwards 358085997c6 Merge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/... 736b7cad406 Add jsdoc support to php-ts-mode in <script> element 5f3d964e397 Update to Transient v0.7.2-4-gf75bc48d # Conflicts: # etc/NEWS
| * ; Fix SHR test on MS-WindowsJim Porter2024-06-291-5/+9
| | | | | | | | | | * test/lisp/net/shr-tests.el (shr-test/zoom-image): Ensure the image URL is properly formatted: it should always have 3 slashes after "file:".
| * ; Fix typos in symbolsStefan Kangas2024-06-293-4/+3
| |
* | Inherit text props in Completion Preview insertion commandsEshel Yaron2024-06-291-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When completing with Completion Preview mode commands, inherit text properties from surrounding text similarly to other completion commands, such as 'completion-at-point'. * lisp/completion-preview.el (completion-preview-insert) (completion-preview-partial-insert) (completion-preview-complete): Use 'insert-and-inherit' instead of 'insert' to insert text for completion. * test/lisp/completion-preview-tests.el (completion-preview-insert-inherits-text-properties): New test.
* | Make whitespace.el's cleanup add missing final newlineBjörn Lindström2024-06-291-1/+14
| | | | | | | | | | | | | | | | * lisp/whitespace.el (whitespace-cleanup-region): If cleaning up at end of file, add missing newline if indicated by 'whitespace-style'. (Bug#71499) * etc/NEWS: Announce the change in behavior.
* | Merge from origin/emacs-30Po Lu2024-06-291-3/+45
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2d8881d5267 Fix typo incurring leaks of face structures 219501dd629 ; Fix use of @footnote in cc-mode.texi c7be2dcac44 Merge branch 'emacs-30' of git.sv.gnu.org:/srv/git/emacs ... f0a48799756 Sync with Tramp 2.7.1 53dcf2b9492 ; * etc/NEWS: Move the mwheel entry to a better place. a5726782d03 ; Sort tree-sitter modes in NEWS daa89dc939e ; * etc/NEWS: Rearrange "New Modes and Packages in Emacs ... 4ddbf4f70ef ; * etc/NEWS: Move many items. 437b1ced268 ; * etc/NEWS: Copy-edits. 7372b2eb302 Expand docstring of which-key-mode df0eb5be1ea Improve documentation of 'remove-overlays' in ELisp manual 73c1252bb6b Fix link to major mode variable in docstring c4ad54812ac Make `shell-mode' more robust # Conflicts: # etc/NEWS
| * Sync with Tramp 2.7.1Michael Albinus2024-06-291-3/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/misc/trampver.texi: * lisp/net/trampver.el (tramp-version): Adapt Tramp versions. (customize-package-emacs-version-alist): Add Tramp version integrated in Emacs 30.1. * lisp/net/tramp-compat.el: * lisp/net/tramp-message.el (tramp-warning): Use `lwarn'. * test/lisp/net/tramp-tests.el (tramp--test-deftest-without-file-attributes): New defmacro. (tramp-test18-file-attributes-without-file-attributes) (tramp-test19-directory-files-and-attributes-without-file-attributes) (tramp-test18-file-attributes-without-file-attributes) (tramp-test42-utf8-without-file-attributes): New tests.
* | Merge from savannah/emacs-30Po Lu2024-06-281-2/+2
|\ \ | |/ | | | | 6f9f9a21555 Fix two tests for --without-all build
| * Fix two tests for --without-all buildAndrea Corallo2024-06-271-2/+2
| | | | | | | | | | | | | | | | * test/src/image-tests.el (image-tests-image-mask-p/error-on-nongraphical-display) (image-tests-image-metadata/error-on-nongraphical-display): xpm images are not supported in all configurations so use xbm for non graphical display tests.
* | Merge from savannah/emacs-30Po Lu2024-06-271-1/+234
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 98daa10f065 ; * etc/PROBLEMS (PGTK): Remove redundant 2nd PGTK section. ced33bc2397 Fix handling of non-nil 'dired-movement-style' b1e9b6fd67d ; * lisp/gnus/message.el (message-idna-to-ascii-rhs): Doc... 5eb9a0d2c79 ; * etc/NEWS: Fix last change (bug#71720). 6ec77f580dd Do not prematurely truncate python eldoc string f475a1a2544 ; Fix simple-tests as fallout of last change aa10d0c5ac1 Add tests for `kill-whole-line' (bug#65734) 058bb4ca25a kill-whole-line: Honor visibility; fix kill-ring when rea... e45173d114e * lisp/hi-lock.el (hi-lock-file-patterns-policy): Add val... d6afb017deb * lisp/progmodes/xref.el (xref-revert-buffer-restore-poin... 82125b1a661 Use 'revert-function' in *xref* buffer # Conflicts: # etc/NEWS
| * ; Fix simple-tests as fallout of last changeEli Zaretskii2024-06-271-1/+7
| | | | | | | | | | | | * test/lisp/simple-tests.el (simple-execute-extended-command--shorter): Fix test broken by new kill-whole-line tests. (Bug#65734)
| * Add tests for `kill-whole-line' (bug#65734)Sebastian Miele2024-06-271-0/+227
| | | | | | | | | | | | | | | | | | | | | | | | | | * test/lisp/simple-tests.el (simple-test-point-tag): (simple-test-mark-tag): (simple-test--set-buffer-text-point-mark): (simple-test--get-buffer-text-point-mark): Add helper functions used by the tests. (kill-whole-line-invisible): (kill-whole-line-read-only): (kill-whole-line-after-other-kill): (kill-whole-line-buffer-boundaries): (kill-whole-line-line-boundaries): Add tests for `kill-whole-line'.
| * Always perform Eshell process cleanup runs in the Eshell bufferJim Porter2024-06-251-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | Previously, some code executed in a timer, which could execute in the wrong buffer, leading to a hang. * lisp/eshell/esh-proc.el (eshell-sentinel): Use 'with-current-buffer' in the timer function. * test/lisp/eshell/esh-proc-tests.el (eshell-test-value): New variable. (esh-proc-test/sentinel/change-buffer): New test. (cherry picked from commit da4bc5c9274a6705501e24fb8f2984f5bf5fe099)
| * Extend treesitter tests on embaMichael Albinus2024-06-244-10/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | * test/infra/Dockerfile.emba (emacs-tree-sitter): Install c-ashrp grammar. * test/infra/Makefile.in (TREE-SITTER-FILES): Add csharp-mode-tests.el. (tree-sitter-files): Rename from tree-sitter-files-template. Generate .tree-sitter-files. * test/infra/gitlab-ci.yml (test-tree-sitter): Extend .tree-sitter-files. * test/infra/test-jobs.yml: Regenerate.
* | Minor improvements to new Completion Preview commandsEshel Yaron2024-06-261-8/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/completion-preview.el (Commentary): Mention `completion-preview-partial-insert' and elaborate about `completion-preview-insert-sexp'. (completion-preview--barf-if-no-preview): New function. (completion-preview-insert, completion-preview-complete): Use it. (completion-preview-partial-insert): Rename arg to FUN; only compute (+ end (length aft)) once; bind 'deactivate-mark' to nil while inserting/deleting to allow commands that use this function to work as expected with 'shift-select-mode'; improve behavior when called with point not at the start of the completion preview overlay (e.g. when point is in the middle of a multi-word symbol and this function is called via 'completion-preview-insert-word'); add the base part of the completion candidate to when calling exit-function. (completion-preview-insert-word): Improve docsting, rename argument ARG to N. (completion-preview-insert-sexp): Likewise, and also remove second argument INTERACTIVE. (completion-preview--active-p): Rename to... (completion-preview-active-p): ...this. Make this function public so users can leverage it for their own commands. Extend docstring to explain how to do that. * test/lisp/completion-preview-tests.el (completion-preview-insert-calls-exit-function) (completion-preview-insert-word): Break long lines. (completion-preview-insert-sexp) (completion-preview-insert-nonsubword) (completion-preview-insert-subword): Fix docstrings. (completion-preview-insert-mid-symbol): New test.
* | New commands 'completion-preview-insert-{word,sexp}'Jules Tamagnan2024-06-261-3/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/completion-preview.el (completion-preview-partial-insert): New function. (completion-preview-insert-word) (completion-preview-insert-sexp): New commands. (completion-preview-commands): Add them. (Commentary): Document them. (completion-preview-active-mode-map): Add comment. * test/lisp/completion-preview-tests.el (completion-preview-insert-calls-exit-function): Update. (completion-preview-insert-nonsubword) (completion-preview-insert-subword) (completion-preview-insert-sexp): New tests. (Bug#71716)
* | Always perform Eshell process cleanup runs in the Eshell bufferJim Porter2024-06-251-0/+16
|/ | | | | | | | | | | Previously, some code executed in a timer, which could execute in the wrong buffer, leading to a hang. * lisp/eshell/esh-proc.el (eshell-sentinel): Use 'with-current-buffer' in the timer function. * test/lisp/eshell/esh-proc-tests.el (eshell-test-value): New variable. (esh-proc-test/sentinel/change-buffer): New test.
* ; Fix flymake tests with GCC 14.Ulrich Müller2024-06-241-1/+2
| | | | | * test/lisp/progmodes/flymake-tests.el (included-c-header-files): Fix test failure with GCC 14. (Bug#71749)
* ; Remove debugging message in Completion Preview testEshel Yaron2024-06-241-1/+0
| | | | | * test/lisp/completion-preview-tests.el (completion-preview-complete): Remove leftover debug message.
* ; Restore inadvertently removed line.Eli Zaretskii2024-06-231-0/+1
|
* ; * test/lisp/net/shr-tests.el (shr-test--rendering-check): Use UTF-8.Eli Zaretskii2024-06-231-2/+2
|
* ; Don't run new 'shr-test/zoom-image' when built without image supportJim Porter2024-06-231-0/+1
| | | | | * test/lisp/net/shr-tests.el (shr-test/zoom-image): Skip when 'image-types' is unbound.
* ; Fix typosStefan Kangas2024-06-232-3/+3
|
* Backport: Minor changes in tramp-tests.elMichael Albinus2024-06-231-25/+31
| | | | | | | | | | | | | | | * test/lisp/net/tramp-tests.el (tramp--test-shell-file-name): Use connection-local value. (tramp--test-shell-command-switch): New defun. (tramp-test28-process-file) (tramp-test34-explicit-shell-file-name): Use it. (tramp--test-supports-processes-p): Simplify. (tramp--test-check-files): Use `tramp-compat-seq-keep'. (tramp-test45-asynchronous-requests): Don't let-bind `shell-file-name'. (tramp-test45-asynchronous-requests): Adjust timer. (tramp-test45-asynchronous-requests): Add another test message. (cherry picked from commit c95caade15d295fa6cc31d337028faa15142b388)
* Fix zooming images in SHRJim Porter2024-06-221-0/+64
| | | | | | | | | | | | | | | | | | | | | | Previously, for images with no alt-text, the zoomed image wouldn't get properly inserted. For images with alt-text, both the zoomed and unzoomed image would be displayed at once (bug#71666). * lisp/net/shr.el (shr-sliced-image): New face. (shr-zoom-image): Reimplement using 'next/previous-single-property-change', and don't bother deleting any of the text. (shr-image-fetched): Clean up any overlays when deleting the old region. (shr-put-image): Ensure we always have a non-empty string to put the image on. For sliced images, just use "*", since we'll repeat it, so we can't preserve the original buffer text exactly anyway. Apply an overlay to sliced images to prevent unsightly text decorations. (shr-tag-img): Move the placeholder space insertion where it should be and explain what it's doing. * test/lisp/net/shr-tests.el (shr-test--max-wait-time) (shr-test-wait-for): New helper functions. (shr-test/zoom-image): New test.
* Replace literal whitespace with `\s`Stefan Kangas2024-06-221-5/+3
| | | | | | | * test/lisp/vc/log-edit-tests.el (log-edit-fill-entry-confinement) (log-edit-fill-entry-space-substitution) (log-edit-fill-entry-initial-wrapping): Replace literal space character with '\s', to avoid tripping up merge scripts.
* Make Compilation mode recognize non-legacy Kotlin/Gradle errorsRudolf Adamkovič2024-06-221-8/+12
| | | | | | | | | | | | | | | | | The Compilation mode recognizes Kotlin/Gradle errors but only in the now legacy format. The current format, which has been in wide use for about a year, is not supported. This change adds support for the current format. * etc/compilation.txt: (symbols): Add examples of non-legacy Kotlin/Gradle warnings and errors. * lisp/progmodes/compile.el: (compilation-error-regexp-alist-alist): Rename 'gradle-kotlin' to 'gradle-kotlin-legacy' and add 'grade-kotlin' that matches the errors and warnings outputted by the current (non-legacy) Kotlin/Gradle. (Bug#70797) * test/lisp/progmodes/compile-tests.el (compile-tests--test-regexps-data): Rename 'gradle-kotlin' to 'gradle-kotlin-legacy' and add two test cases for the newly added, non-legacy Kotlin/Gradle warnings and errors.
* Ensure navigating by paragraphs in Eshell stops at prompts and paragraphsJim Porter2024-06-201-1/+48
| | | | | | | | | | | | | | | The previous implementation in 6ae2b74ed20 only stopped at prompts, which isn't the right behavior (bug#61545). * lisp/eshell/em-prompt.el (eshell-forward-paragraph) (eshell-backward-paragraph): Reimplement to handle prompts and paragraphs (the latter by calling the original 'forward-paragraph'). * test/lisp/eshell/em-prompt-tests.el (em-prompt-test/next-previous-prompt/multiline): Rename. (em-prompt-test/forward-backward-paragraph-1): New function. (em-prompt-test/forward-backward-paragraph) (em-prompt-test/forward-backward-paragraph/multiline): New tests.
* Merge remote-tracking branch 'origin/feature/which-key-in-core'Philip Kaludercic2024-06-181-0/+267
|\
| * Merge remote-tracking branch 'github-which-key/master'Philip Kaludercic2024-06-151-0/+267
| |
* | Fix Eshell "which" test on MS-WindowsJim Porter2024-06-152-8/+11
| | | | | | | | | | | | | | | | | | * test/lisp/eshell/esh-cmd-tests.el (esh-cmd-test/which/plain/external-program): Compare the file name case-insensitively on case-insensitive file systems. * test/lisp/eshell/eshell-tests-helpers.el (eshell-command-result--equal): Revert to the previous implementation.
* | Fix em-extpipe-tests on MS-WindowsEli Zaretskii2024-06-151-1/+5
| | | | | | | | | | * test/lisp/eshell/em-extpipe-tests.el (em-extpipe-test-14): Fix test on MS-Windows (bug#71446).
* | ; Improve last changeJim Porter2024-06-151-3/+10
| | | | | | | | | | * test/lisp/eshell/esh-proc-tests.el (esh-proc-test/kill-pipeline): Fix check of exit message and ensure we have only one prompt.
* | ; Add command logging to some more Eshell testsJim Porter2024-06-151-20/+22
| | | | | | | | | | * test/lisp/eshell/esh-proc-tests.el (esh-proc-test/kill-pipeline) (esh-proc-test/kill-pipeline-head): Write debug logs on failure.
* | Allow escape sequences in Python promptskobarity2024-06-151-0/+28
| | | | | | | | | | | | | | | | | | | | * lisp/progmodes/python.el (python-shell-prompt-detect): Use Python's json package if available, and remove escape sequences in prompts. * test/lisp/progmodes/python-tests.el (python-tests-interpreter-2-6-higher-p): New predicate function. (python-shell-prompt-detect-7): New test. (Bug#71440)
* | ; Minor editorial fixes to some Eshell testsJim Porter2024-06-131-10/+10
| | | | | | | | | | | | | | * test/lisp/eshell/esh-proc-tests.el (esh-proc-test/kill-process/redirect-message): Move next to its sibling tests. (esh-proc-test/remote/remote-path): Rename from 'esh-var-test/...'.
* | ;cperl-mode.el: Avoid false positives when parsing new Perl syntaxHarald Jörg2024-06-132-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/cperl-mode.el (cperl--package-for-imenu-rx) (cperl--class-for-imenu-rx): avoid false positives when collecting imenu entries * lisp/progmodes/cperl-mode.el (cperl-init-faces): avoid false positives when detecting package names * test/lisp/progmodes/cperl-mode-tests.el (cperl-test-imenu-index): Add test verifying that $class_false is not shown as a class _false * test/lisp/progmodes/cperl-mode-resources/grammar.pl: Add a line containing a false positive "$class_false"
* | Fix recently added eshell testStefan Kangas2024-06-101-7/+8
| | | | | | | | | | * test/lisp/eshell/esh-cmd-tests.el (esh-cmd-test/empty-background-command): Fix failing test.
* | Fix treesit-testsEli Zaretskii2024-06-101-1/+2
| | | | | | | | | | * test/src/treesit-tests.el (treesit-node-api): Adapt the test to changes in 'treesit_check_node'. (Bug#71012)
* | ; Fix recent change to python-tests.elkobarity2024-06-101-1/+1
| | | | | | | | | | | | * test/lisp/progmodes/python-tests.el (python-tests--pythonstartup-file): Use already bound 'python-shell-interpreter'. (Bug#70815)
* | Extend auto-revert-test07-auto-revert-several-buffersMichael Albinus2024-06-101-11/+38
| | | | | | | | | | | | | | * test/lisp/autorevert-tests.el (auto-revert-test05-global-notify): Make cleanup robust. (auto-revert-test07-auto-revert-several-buffers): Extend test. (Bug#71424)
* | cperl-mode.el: Update for the current Perl version 5.040Harald Jörg2024-06-104-4/+165
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * etc/NEWS: Announce new features of cperl-mode. * lisp/progmodes/cperl-mode.el (cperl-menu): Add toggle for extra paired delimiters. (defconst): new rx expressions `cperl--sub-name-generated-rx' and `cperl--field-declaration-rx' (cperl--imenu-entries-rx): Use the new expressions (cperl--extra-paired-delimiters): New variable holding the paired delimiters for Perl 5.36 and newer (cperl-imenu-sub-keywords): Add autogenerated methods to imenu (cperl-init-faces): Add the __CLASS__ token, builtin constants, and attributes for field declarations. (cperl-short-docs): Add __CLASS__ to one-line docs. (cperl-extra-paired-delimiters-mode): new minor mode to handle non-ASCII paired delimiters. * test/lisp/progmodes/cperl-mode-tests.el (cperl-test-fontify-builtin-constants): new test. (cperl-test-fontify-class): New test clauses for attributes. (cperl-test-field-declaration-rx): new test. (cperl-test-autogenerated-reader-rx): new unit test for the rx expression. (cperl-test-extra-delimiters): new test. (cperl-test-imenu-index): new clauses for imenu capture of autogenerated methods. * test/lisp/progmodes/cperl-mode-resources/grammar.pl: Add examples for Perl 5.40 syntax. * test/lisp/progmodes/cperl-mode-resources/extra-delimiters.pl: New resource for non-ASCII paired delimiters.
* | Improve correctness of 'eshell-quote-argument'Jim Porter2024-06-093-25/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/eshell/esh-arg.el (eshell-quote-argument): Mention that this function is for use within Eshell buffers. (eshell-quote-backslash): Properly quote newlines. * lisp/eshell/em-unix.el (eshell/cat, eshell/du): Throw 'eshell-external' instead; that's what it's here for. * test/lisp/eshell/esh-proc-tests.el (esh-proc-test-quote-argument): Remove. (esh-proc-test/emacs-command): * test/lisp/eshell/esh-var-tests.el (esh-var-test/path-var/set) (esh-var-test/path-var/set-locally): Use 'eshell-quote-argument'. * test/lisp/eshell/em-unix-tests.el (em-unix-test/compile/interactive): Use 'shell-quote-argument' (Note: *not* 'eshell-...').
* | Remove empty Eshell commands when parsingJim Porter2024-06-091-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This improves the logic for copying/stealing handles when constructing the command form: now, we should always steal the handles for the last real command, even if there were some trailing semicolons. * lisp/eshell/esh-arg.el (eshell-parse-delimiter): Be stricter about parsing so that things like "& &" aren't parsed as a single "&&" token. * lisp/eshell/esh-cmd.el (eshell-parse-command): Get the commands in reverse, and remove any nil commands. (eshell-split-commands): Always return the trailing terms (except when there were no terms to begin with). * test/lisp/eshell/esh-cmd-tests.el (esh-cmd-test/empty-background-command): New test.
* | ; Allow batch-file Eshell test on MS-WindowsEli Zaretskii2024-06-091-1/+0
| | | | | | | | | | * test/lisp/eshell/em-script-tests.el (em-script-test/batch-file): Don't skip on MS-Windows, as the test was fixed.
* | ; Add another test for 'eshell-batch-script'Jim Porter2024-06-091-0/+12
| | | | | | | | | | | | | | | | * lisp/eshell/em-script.el (eshell-close-target): New function. * test/lisp/eshell/em-script-tests.el (em-script-test/batch-file): New test; rename old one to... (em-script-test/batch-file/shebang): ... this.
* | Specify Python 3 in some ERTs on Mackobarity2024-06-091-308/+352
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * test/lisp/progmodes/python-tests.el (python-tests-with-temp-buffer-with-shell): Remove setting 'python-shell-interpreter'. (python-tests-shell-interpreter): Removed. (python-tests-shell-interpreters): New variable. (python-tests-with-shell-interpreter) (python-tests-with-temp-buffer-with-shell-interpreter): New macros. (python-tests-get-shell-interpreter): Add an optional PRED argument to allow ERts to specify Python interpreter version. (python-tests--get-interpreter-info): New function. (python-tests-interpreter-3-p): New function to be used as the PRED argument of 'python-tests-get-shell-interpreter'. (python-shell-make-comint-1) (python-shell-make-comint-2) (python-shell-make-comint-4) (python-shell-get-process-1) (python-shell-internal-get-or-create-process-1) (python-shell-prompt-detect-1) (python-shell-prompt-detect-2) (python-shell-prompt-detect-3) (python-shell-prompt-detect-4) (python-shell-prompt-detect-5) (python-shell-prompt-detect-6) (python-shell-prompt-set-calculated-regexps-6) (python-shell-completion-at-point-jedi-completer) (python-completion-at-point-pdb-1) (python-completion-at-point-while-running-1) (python-ffap-module-path-1) (python-ffap-module-path-while-running-1) (python-eldoc--get-doc-at-point-1) (python-eldoc--get-doc-at-point-while-running-1) (python-tests--run-python-selects-window) (python-test--shell-send-block): Use the new macro. (python-shell-completion-at-point-ipython): Remove setting 'python-tests-shell-interpreter'. (python-shell-completion-at-point-1) (python-completion-at-point-1) (python-completion-at-point-2) (python-completion-at-point-native-1) (python-completion-at-point-native-2) (python-completion-at-point-native-with-ffap-1) (python-completion-at-point-native-with-eldoc-1): Use the new macro and specify Python 3 on Mac to avoid errors. (Bug#70815)
* | Fix hiding a Python block ending with a commentkobarity2024-06-091-0/+18
| | | | | | | | | | | | | | * lisp/progmodes/python.el (python-hideshow-forward-sexp-function): Move point to the end of the line. * test/lisp/progmodes/python-tests.el (python-hideshow-hide-block-2): New test. (Bug#71170)
* | A better fix for esh-proc-tests on MS-WindowsEli Zaretskii2024-06-091-14/+10
| | | | | | | | | | | | | | | | * test/lisp/eshell/esh-proc-tests.el (esh-proc-test-quote-argument): New function. (esh-proc-test/emacs-command): Use it instead of 'shell-quote-argument', which allows to go back to system-independent code.
* | Fix Eshell tests on MS-WindowsEli Zaretskii2024-06-096-14/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/eshell/esh-util.el (eshell-get-path): Don't add "." if it is already there. * test/lisp/eshell/esh-var-tests.el (esh-var-test/path-var/preserve-across-hosts): Skip on MS-Windows. (esh-var-test/path-var/set, esh-var-test/path-var/set-locally): Quote the PATH value, for MS-Windows. * test/lisp/eshell/esh-util-tests.el (esh-util-test/path/get): No need to add ".": it is already done by 'eshell-get-path'. * test/lisp/eshell/esh-proc-tests.el (esh-proc-test/kill-pipeline): Accept empty string as valid output. (esh-proc-test/sigpipe-exits-process): Skip on MS-Windows: no SIGPIPE. (esh-proc-test/emacs-command): Quote correctly for MS-Windows. * test/lisp/eshell/em-unix-tests.el (em-unix-test/compile/interactive): Fix test on MS-Windows. * test/lisp/eshell/em-script-tests.el (em-script-test/batch-file): Skip on MS-Windows. * test/lisp/eshell/eshell-tests-helpers.el (eshell-command-result--equal): Compare strings (file names) case-insensitively on MS-Windows.