<feed xmlns='http://www.w3.org/2005/Atom'>
<title>emacs/test/src, branch scratch/interpreted-function</title>
<subtitle>Emacs is the extensible, customizable, self-documenting real-time display editor. 
</subtitle>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/'/>
<entry>
<title>GC-mark temporary key values created when sorting (bug#69709)</title>
<updated>2024-04-14T16:29:16+00:00</updated>
<author>
<name>Mattias Engdegård</name>
</author>
<published>2024-04-14T16:20:47+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=3d3602055264ca3095b7f28ca7e27a6f2782649a'/>
<id>3d3602055264ca3095b7f28ca7e27a6f2782649a</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>; Fix whitespace in editfns-tests.el</title>
<updated>2024-04-11T05:55:12+00:00</updated>
<author>
<name>Eli Zaretskii</name>
</author>
<published>2024-04-11T05:55:12+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=5d35ef858a9a949f682ef7b5fc6c0eae9f415936'/>
<id>5d35ef858a9a949f682ef7b5fc6c0eae9f415936</id>
<content type='text'>
* test/src/editfns-tests.el
(editfns-tests--before/after-change-functions): Fix whitespace.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* test/src/editfns-tests.el
(editfns-tests--before/after-change-functions): Fix whitespace.
</pre>
</div>
</content>
</entry>
<entry>
<title>(en/decode_coding_object): Fix `after-change-functions`</title>
<updated>2024-04-10T16:15:26+00:00</updated>
<author>
<name>Stefan Monnier</name>
</author>
<published>2024-04-10T16:15:26+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=36cb16556c60bf4e703764eefd4fb6668ccc37cc'/>
<id>36cb16556c60bf4e703764eefd4fb6668ccc37cc</id>
<content type='text'>
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`.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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`.
</pre>
</div>
</content>
</entry>
<entry>
<title>(test-replace-match-modification-hooks): Delete test</title>
<updated>2024-04-09T15:01:36+00:00</updated>
<author>
<name>Stefan Monnier</name>
</author>
<published>2024-04-09T15:01:36+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=e3861aeb484c59c36b2448e17b54a37d779f6486'/>
<id>e3861aeb484c59c36b2448e17b54a37d779f6486</id>
<content type='text'>
* test/src/search-tests.el (test-replace-match-modification-hooks):
Delete, this is testing a functionality we can't really support.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* test/src/search-tests.el (test-replace-match-modification-hooks):
Delete, this is testing a functionality we can't really support.
</pre>
</div>
</content>
</entry>
<entry>
<title>* Fix out of date comp pass names in comp-tests.el</title>
<updated>2024-04-08T08:52:53+00:00</updated>
<author>
<name>Andrea Corallo</name>
</author>
<published>2024-04-08T08:46:50+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=4d486bd378b409c2a96b3e9af36534aa8eb5b3af'/>
<id>4d486bd378b409c2a96b3e9af36534aa8eb5b3af</id>
<content type='text'>
* test/src/comp-tests.el (comp-tests-tco, comp-tests-fw-prop-1)
(comp-tests-pure): Update out of date pass names.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* test/src/comp-tests.el (comp-tests-tco, comp-tests-fw-prop-1)
(comp-tests-pure): Update out of date pass names.
</pre>
</div>
</content>
</entry>
<entry>
<title>Make tree-sitter thing feature public and remove obsolete functions</title>
<updated>2024-04-08T05:20:31+00:00</updated>
<author>
<name>Yuan Fu</name>
</author>
<published>2024-04-07T20:33:31+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=64854869ae0cacddb16926670e2a67c03a3f9618'/>
<id>64854869ae0cacddb16926670e2a67c03a3f9618</id>
<content type='text'>
* 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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* 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.
</pre>
</div>
</content>
</entry>
<entry>
<title>(Freplace_match): Fix bug#65451</title>
<updated>2024-04-07T18:16:38+00:00</updated>
<author>
<name>Stefan Monnier</name>
</author>
<published>2024-04-07T18:16:38+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=63588775fcb64e4fd88a97e0882aae38c9f5fb1c'/>
<id>63588775fcb64e4fd88a97e0882aae38c9f5fb1c</id>
<content type='text'>
* 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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* 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.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix json-insert unibyte buffer bug (bug#70007)</title>
<updated>2024-04-02T17:10:00+00:00</updated>
<author>
<name>Mattias Engdegård</name>
</author>
<published>2024-04-02T16:58:09+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=617debf67392946b4b42fdf364c69da6f094a840'/>
<id>617debf67392946b4b42fdf364c69da6f094a840</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>Update JSON parser test and docs</title>
<updated>2024-04-01T15:07:04+00:00</updated>
<author>
<name>Mattias Engdegård</name>
</author>
<published>2024-04-01T14:58:03+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=dbfe3cae2d9497fb14c83f26425f9421d1ef57cb'/>
<id>dbfe3cae2d9497fb14c83f26425f9421d1ef57cb</id>
<content type='text'>
* test/src/json-tests.el (json-parse-string/object):
Duplicated object keys are now retained in alist and plist output.
* etc/NEWS: Mention it.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* test/src/json-tests.el (json-parse-string/object):
Duplicated object keys are now retained in alist and plist output.
* etc/NEWS: Mention it.
</pre>
</div>
</content>
</entry>
<entry>
<title>Don't signal `json-end-of-file` for short nonempty bad JSON inputs</title>
<updated>2024-04-01T08:41:46+00:00</updated>
<author>
<name>Mattias Engdegård</name>
</author>
<published>2024-03-31T17:19:58+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=3f4486dd76c44c76c58605fb9a1643515133ff3f'/>
<id>3f4486dd76c44c76c58605fb9a1643515133ff3f</id>
<content type='text'>
* src/json.c (json_parse_value): Generate a plain parse error.
* test/src/json-tests.el (json-parse-string/short): Adapt test.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/json.c (json_parse_value): Generate a plain parse error.
* test/src/json-tests.el (json-parse-string/short): Adapt test.
</pre>
</div>
</content>
</entry>
</feed>
