<feed xmlns='http://www.w3.org/2005/Atom'>
<title>emacs/test/src, branch feature/windows-with-utils</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>Handle weird cases like (ceil 0 0.0)</title>
<updated>2019-11-15T02:52:48+00:00</updated>
<author>
<name>Paul Eggert</name>
</author>
<published>2019-11-15T02:51:17+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=8b848def9bc3c4ad786670d0447a6fb396f2ff30'/>
<id>8b848def9bc3c4ad786670d0447a6fb396f2ff30</id>
<content type='text'>
* src/floatfns.c (double_integer_scale): Distinguish Inf from NaN.
(rounding_driver): Handle (ceil 0 0.0) and (ceil 0 1.0e+INF).
* test/src/floatfns-tests.el (special-round): Add tests for
weird cases like this.

Avoid crash with (floor 0 0.0)
* src/floatfns.c (rounding_driver): Signal an arithmetic
error if divisor is 0.0 or -0.0, instead of crashing.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/floatfns.c (double_integer_scale): Distinguish Inf from NaN.
(rounding_driver): Handle (ceil 0 0.0) and (ceil 0 1.0e+INF).
* test/src/floatfns-tests.el (special-round): Add tests for
weird cases like this.

Avoid crash with (floor 0 0.0)
* src/floatfns.c (rounding_driver): Signal an arithmetic
error if divisor is 0.0 or -0.0, instead of crashing.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix byte-counting error in ‘format’</title>
<updated>2019-11-14T22:44:42+00:00</updated>
<author>
<name>Paul Eggert</name>
</author>
<published>2019-11-14T22:42:39+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=c2cd8e6265b78a5f0be3335ea6d8868e80814db0'/>
<id>c2cd8e6265b78a5f0be3335ea6d8868e80814db0</id>
<content type='text'>
Problem reported by Paul Pogonyshev (Bug#38191).
* src/editfns.c (styled_format): When checking for adjacent
%-sequences, use byte position rather than character position.
* test/src/editfns-tests.el (format-properties): Test for fix.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Problem reported by Paul Pogonyshev (Bug#38191).
* src/editfns.c (styled_format): When checking for adjacent
%-sequences, use byte position rather than character position.
* test/src/editfns-tests.el (format-properties): Test for fix.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix double-rounding bug in ceiling etc.</title>
<updated>2019-11-13T21:10:09+00:00</updated>
<author>
<name>Paul Eggert</name>
</author>
<published>2019-11-13T21:07:01+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=bede5984246ba734c93fc28148b5f8e1b14d30c5'/>
<id>bede5984246ba734c93fc28148b5f8e1b14d30c5</id>
<content type='text'>
This is doable now that we have bignums.
* src/floatfns.c (integer_value): Remove; no longer used.
(rescale_for_division): New function.
(rounding_driver): Use it to divide properly (by using bignums)
even when arguments are float, fixing a double-rounding FIXME.
* src/lisp.h (LOG2_FLT_RADIX): Move here ...
* src/timefns.c (frac_to_double): ... from here.
* test/src/floatfns-tests.el (big-round):
Add a test to catch the double-rounding bug.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is doable now that we have bignums.
* src/floatfns.c (integer_value): Remove; no longer used.
(rescale_for_division): New function.
(rounding_driver): Use it to divide properly (by using bignums)
even when arguments are float, fixing a double-rounding FIXME.
* src/lisp.h (LOG2_FLT_RADIX): Move here ...
* src/timefns.c (frac_to_double): ... from here.
* test/src/floatfns-tests.el (big-round):
Add a test to catch the double-rounding bug.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix some quoting glitches in doc strings</title>
<updated>2019-11-11T18:32:53+00:00</updated>
<author>
<name>Paul Eggert</name>
</author>
<published>2019-11-11T18:30:13+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=6b4a97c1c78f39ce890d100acceceb652d14e20d'/>
<id>6b4a97c1c78f39ce890d100acceceb652d14e20d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Disable a portion of one doc-test</title>
<updated>2019-11-10T03:38:05+00:00</updated>
<author>
<name>Glenn Morris</name>
</author>
<published>2019-11-10T03:38:05+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=2f36a0821491f25fb52d4f3c6f4a7aebb923225f'/>
<id>2f36a0821491f25fb52d4f3c6f4a7aebb923225f</id>
<content type='text'>
* test/src/doc-tests.el (doc-test-substitute-command-keys):
Disable component that fails twice in the past 5 weeks
due to changes in the minibuffer map.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* test/src/doc-tests.el (doc-test-substitute-command-keys):
Disable component that fails twice in the past 5 weeks
due to changes in the minibuffer map.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix case-insensitive completion of buffer names</title>
<updated>2019-11-09T19:56:30+00:00</updated>
<author>
<name>Eli Zaretskii</name>
</author>
<published>2019-11-09T19:56:30+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=f2019fc676c2206bbdc53855e3bc4f1086676d3d'/>
<id>f2019fc676c2206bbdc53855e3bc4f1086676d3d</id>
<content type='text'>
* test/src/minibuf-tests.el (test-try-completion-ignore-case):
New test, suggested by Stefan Monnier &lt;monnier@iro.umontreal.ca&gt;.

* src/minibuf.c (Ftry_completion): Don't treat strings that
are identical but for the case as if they were identical for
the purposes of not counting the same string twice.  This
fixes case-insensitive completion when all the candidates are
identical but for the letter-case.  (Bug#11339)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* test/src/minibuf-tests.el (test-try-completion-ignore-case):
New test, suggested by Stefan Monnier &lt;monnier@iro.umontreal.ca&gt;.

* src/minibuf.c (Ftry_completion): Don't treat strings that
are identical but for the case as if they were identical for
the purposes of not counting the same string twice.  This
fixes case-insensitive completion when all the candidates are
identical but for the letter-case.  (Bug#11339)
</pre>
</div>
</content>
</entry>
<entry>
<title>Ensure building and running on non-IPv6 capable hosts works</title>
<updated>2019-11-08T09:04:13+00:00</updated>
<author>
<name>Robert Pluim</name>
</author>
<published>2019-11-07T15:16:39+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=063277c5ecd82551b2bf1409d1583edc7c0fcaad'/>
<id>063277c5ecd82551b2bf1409d1583edc7c0fcaad</id>
<content type='text'>
* src/process.c (Fmake_network_process) [AF_INET6]: Only build ::1
localhost when IPv6 is supported.
(Fnetwork_lookup_address_info) [AF_INET6]: Move check for Qipv6 inside
ifdef, since its definition depends on AF_INET6.  Don't return IPv6
addresses when they're not supported.

* test/src/process-tests.el (lookup-family-specification,
lookup-google): Only do IPv6 lookup if IPv6 is supported.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/process.c (Fmake_network_process) [AF_INET6]: Only build ::1
localhost when IPv6 is supported.
(Fnetwork_lookup_address_info) [AF_INET6]: Move check for Qipv6 inside
ifdef, since its definition depends on AF_INET6.  Don't return IPv6
addresses when they're not supported.

* test/src/process-tests.el (lookup-family-specification,
lookup-google): Only do IPv6 lookup if IPv6 is supported.
</pre>
</div>
</content>
</entry>
<entry>
<title>Don’t signal overflow for (expt 1 bignum)</title>
<updated>2019-11-05T07:39:54+00:00</updated>
<author>
<name>Paul Eggert</name>
</author>
<published>2019-11-05T07:10:12+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=5ab29400a4e9b29928aaf63d1f89a0b059491b29'/>
<id>5ab29400a4e9b29928aaf63d1f89a0b059491b29</id>
<content type='text'>
Similarly for (expt 0 bignum) and (expt -1 bignum).
The result is always a -1, 0 or 1, so do not signal overflow.
* src/data.c (expt_integer): Do not signal an overflow if
-1 &lt;= X &lt;= 1.  Be clearer about when overflow is signaled.
* test/src/floatfns-tests.el (bignum-expt): Test this.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Similarly for (expt 0 bignum) and (expt -1 bignum).
The result is always a -1, 0 or 1, so do not signal overflow.
* src/data.c (expt_integer): Do not signal an overflow if
-1 &lt;= X &lt;= 1.  Be clearer about when overflow is signaled.
* test/src/floatfns-tests.el (bignum-expt): Test this.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix print.c infloop on circular lists</title>
<updated>2019-10-30T21:43:14+00:00</updated>
<author>
<name>Paul Eggert</name>
</author>
<published>2019-10-30T21:40:06+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=f2a72bb8ed29223dd1197492d4270c171db5e443'/>
<id>f2a72bb8ed29223dd1197492d4270c171db5e443</id>
<content type='text'>
Fix infinite loops in print.c when a circular list is passed
to command-error-default-function or to error-message-string.
* src/print.c (print_error_message):
Use FOR_EACH_TAIL to avoid infloop on circular lists.
(print_object): Use FOR_EACH_TAIL_SAFE, as it uses
Brent’s teleporting tortoise-hare algorithm which is
asymptotically better than the classic tortoise-hare
algorithm that the code wsas using.
* test/src/print-tests.el (print-circle-2): When print-circle
is nil, do not insist on a particular cycle-detection heuristic.
(error-message-string-circular): New test.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix infinite loops in print.c when a circular list is passed
to command-error-default-function or to error-message-string.
* src/print.c (print_error_message):
Use FOR_EACH_TAIL to avoid infloop on circular lists.
(print_object): Use FOR_EACH_TAIL_SAFE, as it uses
Brent’s teleporting tortoise-hare algorithm which is
asymptotically better than the classic tortoise-hare
algorithm that the code wsas using.
* test/src/print-tests.el (print-circle-2): When print-circle
is nil, do not insist on a particular cycle-detection heuristic.
(error-message-string-circular): New test.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix fileio.c infloops on circular lists</title>
<updated>2019-10-30T21:43:14+00:00</updated>
<author>
<name>Paul Eggert</name>
</author>
<published>2019-10-30T21:17:40+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=40ae02ff50a8f05660a7f9f234320875b6358c9d'/>
<id>40ae02ff50a8f05660a7f9f234320875b6358c9d</id>
<content type='text'>
Fix infinite loops in fileio.c when a circular list is the
value of after_insert_file_functions,
buffer-auto-save-file-format, buffer-file-format, or
write-region-annotate-functions.
* src/fileio.c (Finsert_file_contents, build_annotations):
Use FOR_EACH_TAIL to avoid infloop on circular lists.
(build_annotations): Use an EMACS_INT, not an int, to count
nesting level.
* test/src/fileio-tests.el:
(fileio-tests--circular-after-insert-file-functions): New test.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix infinite loops in fileio.c when a circular list is the
value of after_insert_file_functions,
buffer-auto-save-file-format, buffer-file-format, or
write-region-annotate-functions.
* src/fileio.c (Finsert_file_contents, build_annotations):
Use FOR_EACH_TAIL to avoid infloop on circular lists.
(build_annotations): Use an EMACS_INT, not an int, to count
nesting level.
* test/src/fileio-tests.el:
(fileio-tests--circular-after-insert-file-functions): New test.
</pre>
</div>
</content>
</entry>
</feed>
