aboutsummaryrefslogtreecommitdiffstats
path: root/test/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Test 'network-lookup-address-info' argument type checkingRobert Pluim2024-09-251-1/+5
| | | | | * test/src/process-tests.el (lookup-hints-values): Pass in non-string values, which should result in type errors.
* Merge from origin/emacs-30Eli Zaretskii2024-09-211-0/+5
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | b7f6cde419f Disable xwidgets with recent webkitgtk versions (Bug#66068) a6dafbc2bc5 ; * lisp/editorconfig.el (editorconfig-indentation-alist)... 0834106a620 Fix treesit--merge-ranges (bug#73324) 76c6b4d2799 Fix midnight-mode documentation f7782522207 ; Fix my email address db22efca8d4 editorconfig.el: Fix too naive sync from upstream 0f12d6dd23c ; * etc/NEWS: Announce 'doc-view-mpdf--use-svg'. 29d50e245f8 * lisp/progmodes/eglot.el (eglot--signal-textDocument/did... # Conflicts: # etc/NEWS # lisp/treesit.el
| * Fix treesit--merge-ranges (bug#73324)Yuan Fu2024-09-201-0/+5
| | | | | | | | | | | | * lisp/treesit.el (treesit--merge-ranges): Make sure that old ranges that intersects with START-END are actually discarded. * test/src/treesit-tests.el (treesit-range-merge): New test.
* | Merge from origin/emacs-30Eli Zaretskii2024-09-211-1/+33
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4b9a8fd6074 etags-regen-file-extensions: Add .pm 956f14ae5e9 * src/treesit.c (treesit_debug_print_parser_list): Fix co... 300d05ecb4c Type-check argument to network-lookup-address-info 0f0f21b7f27 ; Improve doc strings of options related to numbered backups f0daa2f2153 Conservative heuristic for tree-sitter parser ranges (bug... 035024b4e5a ; Fix treesit.c printing 8771310a10d ; * admin/notes/unicode: Need to run textsec-tests (bug#7... 4c6f45fa8ee Re-enable GC mark trace buffer by default c6077015894 ; * src/haiku_support.cc: Correct last change. ae22ad7f624 ; Add even more tests for previous commit 460b9d705ab Fix treesit_sync_visible_region's range fixup code (bug#7... 81347c1aaf2 ; * etc/PROBLEMS: Fix last change (bug#73207). a82b7f3e823 Document unavailability of frame geometry on Wayland
| * Conservative heuristic for tree-sitter parser ranges (bug#73324)Yuan Fu2024-09-171-1/+1
| | | | | | | | | | | | | | | | * src/treesit.c (treesit_sync_visible_region): If the parser's original ranges don't overlap with visible region, give it a zero range, rather than don't set any range. * test/src/treesit-tests.el (treesit-range-fixup-after-edit): Test new behavior.
| * ; Add even more tests for previous commitYuan Fu2024-09-151-6/+8
| | | | | | | | | | * test/src/treesit-tests.el: (treesit-range-fixup-after-edit): Make the tests trickier.
| * Fix treesit_sync_visible_region's range fixup code (bug#73264)Yuan Fu2024-09-151-1/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | new_ranges_head | v ( )->( )->( )->( )->( ) ^ ^ | | | lisp_ranges (loop head) | prev_cons -> set cdr to nil to cut of the rest result: ( )->( ) * src/treesit.c (treesit_sync_visible_region): Cut off this cons and the rest, not set the current range's end to nil. * test/src/treesit-tests.el: (treesit-range-fixup-after-edit): Add tests for all cases.
* | Merge from origin/emacs-30Eli Zaretskii2024-09-141-0/+27
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d509a356997 Fix regression in widget-move (bug#72995) ef0276de82b ; * lisp/cus-edit.el (setopt): Doc fix. (Bug#73098) b115c2d5eba ; * lisp/minibuffer.el (completion-pcm--merge-completions... 3cda1fdc3b7 Correctly include fixed strings before a prefix wildcard ... 57d93d0259a ; * lisp/treesit.el (treesit-major-mode-setup): Doc fix. ad289f364e5 ; Improve documentation of 'easy-menu-define' 3cad7cc8dc8 Set treesit-primary-parser for c and elixir ts mode 2f243fb91d6 ; Minor doc fix in treesit.el 6a6d7925c9d Fix range handling so it works for multibyte buffer (bug#... 76faf7e6091 Revert "Read more on each call to treesit's buffer reader" c70bd0e3fe9 Fix tree-sitter indent preset prev-adaptive-prefix 272df33fb8b ; * CONTRIBUTE: Minor copyedits. 8e1187e336f Improve NEWS entries ca3932121a8 Don't fail uniquify-tests in non-version-controlled sourc... 79f68597aba ; * etc/ORG-NEWS: Fix typo. d66b70f3607 * doc/misc/auth.texi: Minor copy edits. 2c6b7b2da9f ; * admin/MAINTAINERS: Remove some entries for Artur Mala... 11e7ae3964e Fix bug#72254 # Conflicts: # etc/NEWS
| * Fix range handling so it works for multibyte buffer (bug#73204)Yuan Fu2024-09-141-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Here by multibyte buffer I mean buffer that includes non-ASCII characters. The problem is illustrated by this comment, which I copied from the source: ====================================================================== (ref:bytepos-range-pitfall) Suppose we have the following buffer content ([ ] is a unibyte char, [ ] is a multibyte char): [a][b][c][d][e][ f ] and the following ranges (denoted by braces): [a][b][c][d][e][ f ] { }{ } So far so good, now user deletes a unibyte char at the beginning: [b][c][d][e][ f ] { }{ } Oops, now our range cuts into the multibyte char, bad! ====================================================================== * src/treesit.c (treesit_debug_print_parser_list): Minor fix. (treesit_sync_visible_region): Change the way we fixup ranges, instead of using the bytepos ranges from tree-sitter, we use the cached lisp charpos ranges. (treesit_make_ts_ranges): New function. (Ftreesit_parser_set_included_ranges): Refactor out the new function treesit_make_ts_ranges. (Ftreesit_parser_included_ranges): Rather than getting the ranges from tree-sitter, just return the cached lisp ranges. * src/treesit.h (Lisp_TS_Parser): Add some comment. * test/src/treesit-tests.el (treesit-range-fixup-after-edit): New test.
* | Merge from savannah/emacs-30Po Lu2024-09-111-24/+26
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ee3e3a63111 ; Update version number of exec/configure.ac c5925b6ba5f Fix heex-ts-mode indentation following previews elixir-mo... c3383be5f04 ; * admin/make-tarball.txt: Improve last change. 8ddb54117f1 ; * admin/make-tarball.txt: Remove now unnecessary config... 7e194d33f90 * lisp/ldefs-boot.el: Update. 9019536ea66 Fix use of Uniscribe font driver in MinGW build 5c55c860db7 Avoid crashes in redisplay in batch-mode testing ba2190e1ae7 ; * etc/NEWS: Fix indentation. 818c0cc9a51 eglot-test-rust-completion-exit-function: Fix failure in ... f47297782bd ; * doc/lispref/searching.texi (Rx Notation): Simplify rx... 03e56981675 Clarify the semantics of 'string-pixel-width' 9f0603207b1 ; * src/treesit.c: Minor cleanups of recent changes. e0d3f743957 * src/treesit.c (treesit_debug_print_parser_list): Fix fo... bed38ded730 ; * src/treesit.c (treesit_debug_print_parser_list): Fix ... 18c6487dbd0 ; * src/treesit.c: Add a prototype so there's no warning ... bf23382f1f2 Read more on each call to treesit's buffer reader 3435464452b Fix the range handling in treesit.c 3fcec09f754 Add debugging function for treesit.c 0fd259d166c Fix elixir-ts-mode's range query 2329b36b1fb ; project-files-relative-names: Update docstring (bug#72701) e55e2e1c6ba Make json-serialize always return a unibyte string (bug#7... 89c99891b2b ; * doc/lispref/os.texi (Suspending Emacs): Fix last change. 4f044d0d3df ; Improve documentation of 'suspend-emacs'
| * Make json-serialize always return a unibyte string (bug#70007)Mattias Engdegård2024-09-081-24/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | The JSON format is defined as a byte sequence and will always be used as such, so returning a multibyte string makes little sense. * src/json.c (json_out_to_string): Remove. (Fjson_serialize): Return unibyte string. * test/src/json-tests.el (json-serialize/roundtrip) (json-serialize/roundtrip-scalars, json-serialize/string): Update tests. * doc/lispref/text.texi (Parsing JSON): Document. * etc/NEWS: Announce.
* | ; * test/src/treesit-tests.el (treesit-indirect-buffer): Untag.Yuan Fu2024-08-251-1/+0
| |
* | Fix tree-sitter test for indirect parser listYuan Fu2024-08-241-4/+6
| | | | | | | | | | * test/src/treesit-tests.el (treesit-indirect-buffer): Now the base buffer shouldn't contain indirect buffer's parsers.
* | Tag treesit-indirect-buffer as :unstableMichael Albinus2024-08-141-0/+1
| | | | | | | | | | * test/src/treesit-tests.el (treesit-indirect-buffer): Tag it as :unstable on emba.
* | Merge from savannah/emacs-30Po Lu2024-08-071-0/+8
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 679f7ccc49f Prevent accesses to /content files without a GUI connection f0a7eec5a7d * lisp/net/tramp-integration.el (shortdoc): Use `tramp--w... fb642d9cf54 Merge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/... f1e37ae423f Avoid crashes in very large buffers with long lines 4dc9e99349d Update description of string comparison functions 3817355aed5 Add sanity check when adding Tramp functions to shortdoc 1bbb3220179 ; * lisp/erc/erc-fill.el (erc-fill-wrap-mode): Doc fix. 3f6e7e1da68 js-ts-mode: Make jsdoc's "description" block a comment (b... 1c7e00f4f65 Also condition cjk-misc font-spec on Android b89d65df5fa ; * etc/PROBLEMS: How to install sources on SUSE Linux (b... 729b17c2026 ; * src/lread.c (Fload): Add comment. (Bug#72433) bfb1aee9989 Fix ':defer nil' in 'use-package' d787817076e Document unsupported color Emoji on OpenBSD db1f749db55 Fix regressions in Customize caused by 'widget-unselected... f94d58008eb Avoid inserting extra space in SVG data 292fcd20099 Fix c-ts-common filling function (bug#71760) e50d597f450 Fix missing type checks before specbind # Conflicts: # lisp/progmodes/c-ts-common.el
| * Fix missing type checks before specbindMattias Engdegård2024-08-031-0/+8
| | | | | | | | | | | | | | | | | | | | | | This fixes bugs that crashed Emacs when the Lisp interpreter was fed bad code. * src/eval.c (FletX, Flet, internal_lisp_condition_case) (funcall_lambda): Hoist symbol-with-pos elimination and type checks to a dominating position for efficiency. This also plugs at least two typing holes. (Mea culpa.) * test/src/eval-tests.el (eval-bad-specbind): New regression test.
* | Merge from origin/emacs-30Eli Zaretskii2024-07-273-3/+3
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 88e1ec22f27 Update to Org 9.7.9 1ae2f004473 Fix edge-case with 'which-key-dont-use-unicode' setter 68a5f1f7d18 NS: prevent makeKeyWindow warnings (bug#69525) 59a895ec499 ; * .gitignore: Add lisp/eshell/esh-groups.el. 5c08cd4e7c3 ; * doc/emacs/cmdargs.texi (Initial Options): Fix last ch... 309d0a71864 Add PROBLEMS entry for bug#72303 87389f9ff90 ; Improve documentation of 'line-prefix' and 'wrap-prefix'. 268a2d10fc9 Improve documentation of '--init-directory' command-line ... c27055a938a ; cperl-mode.el: Fix fontification of flip-flop (Bug#72296) fcd4e4c895d ; * admin/MAINTAINERS: Add myself for maintaining some ar... fdc133e97f6 Fix bug in server.el introduced by 0d7d835902df af527051cd3 ; * admin/MAINTAINERS: Remove Nicolas Petton. 7170282a59a lisp/minibuffer.el (completion--sifn-requote): Fix bug#72176 68906f184cb * admin/notes/spelling: Update note. 9eea6be5abf Don't produce invalid XML with multi-line commenting style b97786d9f6e ; * etc/NEWS: Entry for 'gnus-summary-limit-to-age' (bug#... a7996615663 Standardize possessive apostrophe usage in manuals, docs,... 67faaead754 Don't refer to obsolete finder group "wp" # Conflicts: # etc/NEWS
| * Standardize possessive apostrophe usage in manuals, docs, and commentsStefan Kangas2024-07-253-3/+3
| | | | | | | | | | See the note in admin/notes/documentation. Ref: https://lists.gnu.org/r/emacs-devel/2012-02/msg00649.html
* | Prohibit unbinding of built-in variablesPo Lu2024-07-221-1/+10
| | | | | | | | | | | | | | | | * src/data.c (set_internal): Signal error if a BLV with a redirect or a forwarded symbol is being unbound. * test/src/data-tests.el (binding-test-makunbound-built-in): New test.
* | Add a type-check--optim testAndrea Corallo2024-07-111-0/+24
| | | | | | | | | | * test/src/comp-tests.el (comp-tests-type-branch-optim-checker): New function. (comp-tests-type-branch-optim): Add new test.
* | Some clean-up in comp-tests.elAndrea Corallo2024-07-111-30/+0
| | | | | | | | | | | | | | * test/src/comp-tests.el (comp-tests-cond-rw-checked-function) (comp-tests-cond-rw-checker-val) (comp-tests-cond-rw-expected-type) (comp-tests-cond-rw-checker-type): Remove.
* | Merge from savannah/emacs-30Po Lu2024-07-111-0/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | e0b271e279b Take precautions against ill-formed content URIs 9331ab056a4 etags-regen-mode: Handle TAGS buffer being killed ef3f26ec02d ; Tag ERC multiline blanks test as :expensive 945335fec1e Improve 'put-image' documentation c38d5cc3b28 Improve 'set-fontset-font' documentation 7de4dbea08f Adapt Tramp's "run0" method 871585db4ca * test/src/sqlite-tests.el (sqlite-execute-batch): Declar... 5cf8d60e0de Capitalize "Dired" and "Lisp" in docstrings 37475c9af7a Document Eshell entry points # Conflicts: # etc/NEWS
| * * test/src/sqlite-tests.el (sqlite-execute-batch): Declare to wave warning.Andrea Corallo2024-07-101-0/+1
| |
* | * test/src/comp-tests.el (compile-forms): Simplify test.Andrea Corallo2024-07-091-2/+1
| |
* | Support interpreted functions as input for 'native-compile' (bug#71934)Andrea Corallo2024-07-091-0/+6
| | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/comp.el (comp--spill-lap-single-function): New function. (comp--spill-lap-function): Make use of and do not accept '(closure ...' as input. (comp--spill-lap-function): Specialize on interpreted functions as well. (native-compile): Update doc. * test/src/comp-tests.el (compile-interpreted-functions): New test.
* | Merge from savannah/emacs-30Po Lu2024-07-051-0/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 334d5132207 (edebug--called-interactively-skip): Fix bug#71934 6e8b9ccaec2 ; * lisp/ibuffer.el (ibuffer-mode): Doc fix. 3eaf1abbff8 Fix MS-Windows build with native-compilation fc375359edd Tag dbus-test05-register-signal-with-nils as unstable 99230d7080f ; * src/w32fns.c (funhook): Restore mistakenly lost line. 81a7358a33b Merge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/... b085d683962 Fix treesit test (bug#71907) f39cf0beb74 Focus more on MS-Windows than MS-DOS in FAQ d64396b8e42 Autoload some string functions bd482b745aa Merge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/... b5341831353 * etc/NEWS: Fix typos. 850fc68481a ; (grep-read-files): Fix completion table 28532599358 Merge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/... 921d40759e5 Remove a reference to a non-existant variable from a doc-... 5d2a115ab03 ; * src/fns.c (value_cmp): ASCIIfy.
| * Fix treesit test (bug#71907)Yuan Fu2024-07-031-0/+1
| | | | | | | | | | * test/src/treesit-tests.el (treesit-node-check): Re-parse buffer before checking for node outdated-ness.
* | ; Strengthen value< tests slightlyMattias Engdegård2024-07-041-2/+8
| | | | | | | | | | * test/src/fns-tests.el (fns-value<-ordered, fns-value<-unordered): Check equality and/or unordered results using lexicographic constructs.
* | Compare fixnums and floats accurately in value<Mattias Engdegård2024-07-041-0/+10
|/ | | | | | | | | | | | | | | | | Make `value<` compare fixnums and floats by value, as `<` does, instead of coercing the fixnum to a float first which is what C would do. This matters when the fixnum cannot be represented as a float. For example, C would evaluate 72057594037927935 < 72057594037927936.0 to false since the operands are converted to the same floating-point number. * src/fns.c (fixnum_float_cmp): New. (value_cmp): Use it. * test/src/fns-tests.el (fns-value<-ordered, fns-value<-unordered): New test cases.
* ; Fix typos in symbolsStefan Kangas2024-06-292-2/+2
|
* 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.
* 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)
* Add 'sqlite-execute-batch' commandJavier Olaechea2024-06-061-0/+26
| | | | | | | | | | | | | This command is similar to 'sqlite-execute' except that it executes multiple statements in exchange for not accepting any arguments. (Bug#70145) * src/sqlite.c (Fsqlite_execute_batch): New function. * test/src/sqlite-tests.el (sqlite-multiple-statements): Add smoke test for 'sqlite-execute-batch'. * etc/NEWS: Mention new command 'sqlite-execute-batch'. * doc/lispref/text.texi (Database): Document the new command.
* Redirect calls to `subr-native-elisp-p` to `native-comp-function-p`Stefan Monnier2024-05-281-20/+20
| | | | | | | | | | | | | | | | | * test/src/comp-tests.el (comp-tests-bootstrap, lambda-return) (lambda-return2, free-fun, free-fun2, free-fun-silly-name, speed--1) (compile-forms, comp-test-defsubst, primitive-redefine-compile-44221) (48029-1, 61917-1, tco, fw-prop-1, pure): * test/lisp/help-fns-tests.el (help-fns-test-lisp-defun): * lisp/subr.el (subr-primitive-p, primitive-function-p, symbol-file): * lisp/help-fns.el (find-lisp-object-file-name): * lisp/emacs-lisp/disass.el (disassemble-internal): * lisp/emacs-lisp/comp.el (comp--call-optim-form-call): * lisp/emacs-lisp/comp-run.el (comp-warn-primitives): * lisp/emacs-lisp/comp-common.el (comp-function-type-spec): * lisp/emacs-lisp/byte-opt.el (side-effect-free-fns): * lisp/emacs-lisp/bytecomp.el (<trailer>): Rename `subr-native-elisp-p` to `native-comp-function-p`.
* Merge from origin/emacs-29Eli Zaretskii2024-05-251-0/+6
|\ | | | | | | | | | | | | | | | | | | 4f0121f8dbe Avoid assertion violations in displaying under 'outline-m... 1bf65836622 Improve documentation of 'no-special-glyphs' frame parameter 3647645e948 Fix Python font lock of chained assignment statement 3291dea441f Fix example in Calc manual 350ae75f5c1 Avoid crashes on MS-Windows due to invalid UNC file names ccf8dba44a3 ; * lisp/face-remap.el (text-scale-adjust): Doc fix. 5ab144c77cd ; Improve documentation of backing up files
| * Avoid crashes on MS-Windows due to invalid UNC file namesEli Zaretskii2024-05-221-0/+6
| | | | | | | | | | | | | | * src/w32.c (parse_root): Avoid crashes due to invalid (too short) UNC names, such as "\\". (Bug#70914) * test/src/fileio-tests.el (fileio-tests-invalid-UNC): New test.
* | Add multi/unibyte string tests for key-descriptionRobert Pluim2024-05-161-0/+7
| | | | | | | | | | | | | | * test/src/keymap-tests.el (keymap--key-description): Add multi/unibyte tests. This is to check the fix for Bug#59305.
* | Silence some macOS build warningsMattias Engdegård2024-05-121-0/+1
| | | | | | | | | | | | | | | | | | * src/image.c (native_image_type): Declare static. * src/keyboard.c (lispy_function_keys): Declare static on NS. * src/nsmenu.m (context_menu_value): * src/nsterm.m (ns_frame_parm_handlers): Move extern declarations... * src/nsterm.h: ...here. * test/src/emacs-module-resources/mod-test.c: Add extern declaration.
* | `read': give fuller error message for errors following "#".Alan Mackenzie2024-05-061-0/+11
| | | | | | | | | | | | | | | | | | | | | | This solves bug#70702. * src/lread.c (READ_AND_BUFFER, INVALID_SYNTAX_WITH_BUFFER): New macros. (read0): For errors in characters sequences beginning with "#", output the entire character sequence rather than just "#". * test/src/lread-tests.el (lread-test-bug70702): New test.
* | Fix deletion of text holding `inhibit-read-only' propertiesPo Lu2024-04-301-0/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/intervals.h (INTERVAL_VISIBLE_P): Split into ... (INTERVAL_GENERALLY_WRITABLE_P, INTERVAL_EXPRESSLY_WRITABLE_P): ... two new macros. * src/textprop.c (verify_interval_modification): If the buffer is read only, verify not that there is only a single exempting interval spanning the area of a multiple-character operation, but that every intervening interval in such an operation exempts it from write restrictions, either by providing a read-only property that appears in Vinhibit_read_only, or by providing an inhibit-read-only property. * test/src/textprop-tests.el (textprop-interval-immutability): New test.
* | Fix value< string comparison ungoodthinkMattias Engdegård2024-04-291-0/+6
| | | | | | | | | | | | * src/fns.c (string_cmp): Fix bad comparisons for certain strings. This only affected `value<` for aggregates, not `string<`. * test/src/fns-tests.el (fns-value<-ordered): Add test cases.
* | 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.
* | ; 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`.
* | (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.
* | * 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.
* | (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.
* | Fix json-insert unibyte buffer bug (bug#70007)Mattias Engdegård2024-04-021-8/+35
| | | | | | | | | | | | | | | | | | | | | | Previously, a unibyte target buffer could be put in an incorrect state if json-insert was used to insert non-ASCII characters. * src/json.c (Fjson_insert): Simplify. Don't attempt to decode the data being inserted: it is guaranteed to be correct UTF-8 and is correct for both unibyte and multibyte buffers. * test/src/json-tests.el (json-serialize/roundtrip) (json-serialize/roundtrip-scalars): Extend tests.
* | Update JSON parser test and docsMattias Engdegård2024-04-011-5/+2
| | | | | | | | | | | | * test/src/json-tests.el (json-parse-string/object): Duplicated object keys are now retained in alist and plist output. * etc/NEWS: Mention it.