<feed xmlns='http://www.w3.org/2005/Atom'>
<title>emacs/test/src, branch scratch/cedet-object-name</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>Respect narrowed buffers when parsing JSON (bug#77325)</title>
<updated>2025-03-30T11:52:07+00:00</updated>
<author>
<name>Pip Cet</name>
</author>
<published>2025-03-28T02:33:19+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=67e34f0ed8f6d3bbc78187a18f71010c70e10426'/>
<id>67e34f0ed8f6d3bbc78187a18f71010c70e10426</id>
<content type='text'>
* src/json.c (Fjson_insert): Simplify 'memcpy' argument.
(Fjson_parse_buffer): Only read to ZV, not all the way to Z.
* test/src/json-tests.el (with-all-gap-positions-in-temp-buffer):
New macro.
(json-parse-buffer/restricted): New test.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/json.c (Fjson_insert): Simplify 'memcpy' argument.
(Fjson_parse_buffer): Only read to ZV, not all the way to Z.
* test/src/json-tests.el (with-all-gap-positions-in-temp-buffer):
New macro.
(json-parse-buffer/restricted): New test.
</pre>
</div>
</content>
</entry>
<entry>
<title>src/insdel.c (adjust_markers_for_replace): Fix insertion case</title>
<updated>2025-03-29T21:49:49+00:00</updated>
<author>
<name>Stefan Monnier</name>
</author>
<published>2025-03-29T20:40:19+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=57da44fa702782e19cd9d60ea63ec2fd9ca48521'/>
<id>57da44fa702782e19cd9d60ea63ec2fd9ca48521</id>
<content type='text'>
test/src/editfns-tests.el (editfns-tests--insert-via-replace): New test
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
test/src/editfns-tests.el (editfns-tests--insert-via-replace): New test
</pre>
</div>
</content>
</entry>
<entry>
<title>(replace-region-contents): Improve and promote (bug#76313)</title>
<updated>2025-03-29T21:49:05+00:00</updated>
<author>
<name>Stefan Monnier</name>
</author>
<published>2025-03-28T04:46:53+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=7c82cc8b975175aebbad1c43ec1cd98b3232f482'/>
<id>7c82cc8b975175aebbad1c43ec1cd98b3232f482</id>
<content type='text'>
Swap the role of `replace-region-contents` and `replace-buffer-contents`,
so `replace-region-contents` is the main function, implemented in C,
and `replace-buffer-contents` is a mere wrapper (marked as obsolete).
Also remove the need to rely on narrowing and on describing the
new text as a function.
Finally, allow MAX-SECS==0 to require a cheap replacement, and
add an INHERIT argument.

* src/editfns.c: Include `coding.h`.
(Freplace_region_contents): Rename from `Freplace_buffer_contents`.
Change calling convention to that of `replace-region-contents`.
Add more options for the SOURCE argument.  Add INHERIT argument.
Skip the costly algorithm if MAX-SECS is 0.
* src/insdel.c (replace_range): Allow NEW to be a buffer.

* lisp/subr.el (replace-buffer-contents): New implementation.
* lisp/emacs-lisp/subr-x.el (replace-region-contents): Delete.

* doc/lispref/text.texi (Replacing): Document new API for
`replace-region-contents`.  Remove documentation of
`replace-buffer-contents`.

* test/src/editfns-tests.el (replace-buffer-contents-1)
(replace-buffer-contents-2, replace-buffer-contents-bug31837):
Use `replace-region-contents`.
(editfns--replace-region): Delete.
(editfns-tests--replace-region): Use `replace-region-contents`.
Adds tests for new types of SOURCE args.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Swap the role of `replace-region-contents` and `replace-buffer-contents`,
so `replace-region-contents` is the main function, implemented in C,
and `replace-buffer-contents` is a mere wrapper (marked as obsolete).
Also remove the need to rely on narrowing and on describing the
new text as a function.
Finally, allow MAX-SECS==0 to require a cheap replacement, and
add an INHERIT argument.

* src/editfns.c: Include `coding.h`.
(Freplace_region_contents): Rename from `Freplace_buffer_contents`.
Change calling convention to that of `replace-region-contents`.
Add more options for the SOURCE argument.  Add INHERIT argument.
Skip the costly algorithm if MAX-SECS is 0.
* src/insdel.c (replace_range): Allow NEW to be a buffer.

* lisp/subr.el (replace-buffer-contents): New implementation.
* lisp/emacs-lisp/subr-x.el (replace-region-contents): Delete.

* doc/lispref/text.texi (Replacing): Document new API for
`replace-region-contents`.  Remove documentation of
`replace-buffer-contents`.

* test/src/editfns-tests.el (replace-buffer-contents-1)
(replace-buffer-contents-2, replace-buffer-contents-bug31837):
Use `replace-region-contents`.
(editfns--replace-region): Delete.
(editfns-tests--replace-region): Use `replace-region-contents`.
Adds tests for new types of SOURCE args.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add basic and low-level tests for hash tables</title>
<updated>2025-03-23T23:57:47+00:00</updated>
<author>
<name>Stefan Kangas</name>
</author>
<published>2025-03-23T23:56:14+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=5830d1fa6552ad584daa574135e704d1f1e0220a'/>
<id>5830d1fa6552ad584daa574135e704d1f1e0220a</id>
<content type='text'>
* test/src/fns-tests.el (test-hash-table)
(test-hash-table-wrong-keywords, test-remhash, test-clrhash)
(test-hash-table-p, test-hash-table-count, test-maphash)
(test-copy-hash-table): New tests.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* test/src/fns-tests.el (test-hash-table)
(test-hash-table-wrong-keywords, test-remhash, test-clrhash)
(test-hash-table-p, test-hash-table-count, test-maphash)
(test-copy-hash-table): New tests.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix a nativecomp type propagation bug (bug#74771)</title>
<updated>2025-03-23T16:33:27+00:00</updated>
<author>
<name>Andrea Corallo</name>
</author>
<published>2024-12-11T23:06:43+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=d565a6747a2bb3c6699a95e60e5f522f80a1ca0a'/>
<id>d565a6747a2bb3c6699a95e60e5f522f80a1ca0a</id>
<content type='text'>
* lisp/emacs-lisp/comp.el (comp--add-cond-cstrs): Don't emit negated
cstr.
* test/src/comp-tests.el (comp-tests-type-spec-tests): Add a test.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* lisp/emacs-lisp/comp.el (comp--add-cond-cstrs): Don't emit negated
cstr.
* test/src/comp-tests.el (comp-tests-type-spec-tests): Add a test.
</pre>
</div>
</content>
</entry>
<entry>
<title>Correctly unload variable aliases.</title>
<updated>2025-03-16T16:52:40+00:00</updated>
<author>
<name>Jens Schmidt</name>
</author>
<published>2025-03-14T22:07:11+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=7f2e4508cebe76a885b72ca4789ae839d5bd45e1'/>
<id>7f2e4508cebe76a885b72ca4789ae839d5bd45e1</id>
<content type='text'>
* src/eval.c (Finternal_delete_indirect_variable): Add function.
* lisp/loadhist.el (loadhist-unload-element): Use it for variable
aliases.
* test/src/eval-tests.el (eval-tests--internal-delete-indirect-variable):
Test function `internal-delete-indirect-variable'.
* test/lisp/loadhist-tests.el (loadhist-test-unload-feature-alias):
* test/lisp/loadhist-resources/loadhist--alias.el: Test unloading of
features that define variable aliases.  (Bug#76748)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/eval.c (Finternal_delete_indirect_variable): Add function.
* lisp/loadhist.el (loadhist-unload-element): Use it for variable
aliases.
* test/src/eval-tests.el (eval-tests--internal-delete-indirect-variable):
Test function `internal-delete-indirect-variable'.
* test/lisp/loadhist-tests.el (loadhist-test-unload-feature-alias):
* test/lisp/loadhist-resources/loadhist--alias.el: Test unloading of
features that define variable aliases.  (Bug#76748)
</pre>
</div>
</content>
</entry>
<entry>
<title>(Freplace_buffer_contents): Preserve markers more carefully</title>
<updated>2025-03-11T21:16:21+00:00</updated>
<author>
<name>Stefan Monnier</name>
</author>
<published>2025-03-11T21:10:30+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=40d8650d5177bd291747d225c7d2cf2b4ba55856'/>
<id>40d8650d5177bd291747d225c7d2cf2b4ba55856</id>
<content type='text'>
Use `replace_range` rather than `delete+insert`.

* src/insdel.c (replace_range): Allow NEW to specify a chunk
of buffer text.
* src/editfns.c (Freplace_buffer_contents): Use it.
* test/src/editfns-tests.el (replace-buffer-contents-1): Remove
incorrect check which happened to succeed because point was not
preserved carefully enough.  Make the replacement text share a bit
more content to make the test a bit more strict.
(editfns-tests--replace-region): Doesn't fail any more.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use `replace_range` rather than `delete+insert`.

* src/insdel.c (replace_range): Allow NEW to specify a chunk
of buffer text.
* src/editfns.c (Freplace_buffer_contents): Use it.
* test/src/editfns-tests.el (replace-buffer-contents-1): Remove
incorrect check which happened to succeed because point was not
preserved carefully enough.  Make the replacement text share a bit
more content to make the test a bit more strict.
(editfns-tests--replace-region): Doesn't fail any more.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge from origin/emacs-30</title>
<updated>2025-03-01T15:01:52+00:00</updated>
<author>
<name>Eli Zaretskii</name>
</author>
<published>2025-03-01T15:01:52+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=095ba1b674256252c7849d55dca67846b129af95'/>
<id>095ba1b674256252c7849d55dca67846b129af95</id>
<content type='text'>
62b3d3136fa Fix fns-tests-collate-strings failure with musl
840c6824589 ; (completion-preview-complete): Fix bug#76606
fa42626a6a8 ; Fix indentation in cl.texi example
7ff806da496 ; Fix my last commit
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
62b3d3136fa Fix fns-tests-collate-strings failure with musl
840c6824589 ; (completion-preview-complete): Fix bug#76606
fa42626a6a8 ; Fix indentation in cl.texi example
7ff806da496 ; Fix my last commit
</pre>
</div>
</content>
</entry>
<entry>
<title>* test/src/editfns-tests.el (editfns--replace-region): New test</title>
<updated>2025-02-28T22:10:56+00:00</updated>
<author>
<name>Stefan Monnier</name>
</author>
<published>2025-02-28T22:10:56+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=1cfbbcfaf657e767ed5743565b62eeecde3a4ef5'/>
<id>1cfbbcfaf657e767ed5743565b62eeecde3a4ef5</id>
<content type='text'>
This test fails, sadly, because `replace-buffer-contents` is not
careful enough to something like `replace_range`.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This test fails, sadly, because `replace-buffer-contents` is not
careful enough to something like `replace_range`.
</pre>
</div>
</content>
</entry>
<entry>
<title>; Grammar fixes for "native-compiled"</title>
<updated>2025-02-28T19:20:55+00:00</updated>
<author>
<name>Stefan Kangas</name>
</author>
<published>2025-02-28T18:59:12+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=678fdcc16594aaedb319fe145d039aa118174f5d'/>
<id>678fdcc16594aaedb319fe145d039aa118174f5d</id>
<content type='text'>
1. Prefer "native-compiled" to "native compiled".
The adjective "native-compiled" with the hyphen is generally more
consistent with the typical pattern in English, especially when the
compound modifies a noun (e.g., "native-compiled code").

2. Prefer "natively compiled" to "natively-compiled".
The adverb "natively" modifies "compiled", and it is standard not
to hyphenate an adverb + adjective combination when the adverb ends
in -ly (e.g., "code that is natively compiled").

For example, note that we say "high-speed internet" but "highly
performant code".

* Makefile.in (dest):
* configure.ac (HAVE_NATIVE_COMP):
* doc/emacs/building.texi (Lisp Libraries):
* doc/lispref/compile.texi (Native Compilation)
(Native-Compilation Functions, Native-Compilation Variables):
* doc/lispref/functions.texi (What Is a Function, Declare Form):
* doc/lispref/loading.texi (How Programs Do Loading, Library Search):
* etc/NEWS:
* etc/NEWS.28:
* etc/NEWS.29:
* etc/NEWS.30:
* lisp/emacs-lisp/comp-common.el (native-comp-never-optimize-functions)
(comp-function-type-spec):
* lisp/emacs-lisp/comp-cstr.el:
* lisp/subr.el (locate-eln-file):
* src/comp.c (SETJMP_NAME, syms_of_comp):
* src/data.c (Fsubrp, Fnative_comp_function_p, Fsubr_native_lambda_list):
* src/lread.c (Fload):
* src/pdumper.c (dump_do_dump_relocation):
* test/src/comp-tests.el (lambda-return2): Avoid grammatically incorrect
variations on "natively compiled" and "native-compiled".  (Bug#56727)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
1. Prefer "native-compiled" to "native compiled".
The adjective "native-compiled" with the hyphen is generally more
consistent with the typical pattern in English, especially when the
compound modifies a noun (e.g., "native-compiled code").

2. Prefer "natively compiled" to "natively-compiled".
The adverb "natively" modifies "compiled", and it is standard not
to hyphenate an adverb + adjective combination when the adverb ends
in -ly (e.g., "code that is natively compiled").

For example, note that we say "high-speed internet" but "highly
performant code".

* Makefile.in (dest):
* configure.ac (HAVE_NATIVE_COMP):
* doc/emacs/building.texi (Lisp Libraries):
* doc/lispref/compile.texi (Native Compilation)
(Native-Compilation Functions, Native-Compilation Variables):
* doc/lispref/functions.texi (What Is a Function, Declare Form):
* doc/lispref/loading.texi (How Programs Do Loading, Library Search):
* etc/NEWS:
* etc/NEWS.28:
* etc/NEWS.29:
* etc/NEWS.30:
* lisp/emacs-lisp/comp-common.el (native-comp-never-optimize-functions)
(comp-function-type-spec):
* lisp/emacs-lisp/comp-cstr.el:
* lisp/subr.el (locate-eln-file):
* src/comp.c (SETJMP_NAME, syms_of_comp):
* src/data.c (Fsubrp, Fnative_comp_function_p, Fsubr_native_lambda_list):
* src/lread.c (Fload):
* src/pdumper.c (dump_do_dump_relocation):
* test/src/comp-tests.el (lambda-return2): Avoid grammatically incorrect
variations on "natively compiled" and "native-compiled".  (Bug#56727)
</pre>
</div>
</content>
</entry>
</feed>
