<feed xmlns='http://www.w3.org/2005/Atom'>
<title>emacs/test/src/coding-tests.el, branch scratch/substitute-command-keys</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>Merge from origin/emacs-27</title>
<updated>2020-10-02T16:38:24+00:00</updated>
<author>
<name>Glenn Morris</name>
</author>
<published>2020-10-02T16:38:24+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=726eb835ddcbc209545f681d7272ebaa13788b33'/>
<id>726eb835ddcbc209545f681d7272ebaa13788b33</id>
<content type='text'>
78eacf31e8 ; Fix many typos in symbols in docs and comments
d5d12707d6 * doc/misc/flymake.texi (Using Flymake): Fix a typo.  (Bug...

# Conflicts:
#	lisp/allout.el
#	lisp/progmodes/ebrowse.el
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
78eacf31e8 ; Fix many typos in symbols in docs and comments
d5d12707d6 * doc/misc/flymake.texi (Using Flymake): Fix a typo.  (Bug...

# Conflicts:
#	lisp/allout.el
#	lisp/progmodes/ebrowse.el
</pre>
</div>
</content>
</entry>
<entry>
<title>; Fix many typos in symbols in docs and comments</title>
<updated>2020-10-02T11:29:45+00:00</updated>
<author>
<name>Stefan Kangas</name>
</author>
<published>2020-09-23T11:35:55+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=78eacf31e8fe182801ad1943fac717b75fcf286b'/>
<id>78eacf31e8fe182801ad1943fac717b75fcf286b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Use lexical-binding in most src tests</title>
<updated>2020-04-24T16:25:13+00:00</updated>
<author>
<name>Stefan Kangas</name>
</author>
<published>2020-04-24T13:28:22+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=c52f8863a536c003980c8fcc24dfb48dfb2353a8'/>
<id>c52f8863a536c003980c8fcc24dfb48dfb2353a8</id>
<content type='text'>
* test/src/charset-tests.el:
* test/src/chartab-tests.el:
* test/src/cmds-tests.el:
* test/src/coding-tests.el (top-level)
(generate-ascii-file, generate-mostly-nonascii-file):
* test/src/doc-tests.el:
* test/src/floatfns-tests.el:
* test/src/font-tests.el:
* test/src/keymap-tests.el:
* test/src/process-tests.el (top-level)
(process-test-sentinel-wait-function-working-p)
(process-test-stderr-buffer, process-test-stderr-filter):
* test/src/textprop-tests.el:
* test/src/thread-tests.el:
* test/src/timefns-tests.el:
* test/src/undo-tests.el:
* test/src/xml-tests.el: Use lexical-binding.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* test/src/charset-tests.el:
* test/src/chartab-tests.el:
* test/src/cmds-tests.el:
* test/src/coding-tests.el (top-level)
(generate-ascii-file, generate-mostly-nonascii-file):
* test/src/doc-tests.el:
* test/src/floatfns-tests.el:
* test/src/font-tests.el:
* test/src/keymap-tests.el:
* test/src/process-tests.el (top-level)
(process-test-sentinel-wait-function-working-p)
(process-test-stderr-buffer, process-test-stderr-filter):
* test/src/textprop-tests.el:
* test/src/thread-tests.el:
* test/src/timefns-tests.el:
* test/src/undo-tests.el:
* test/src/xml-tests.el: Use lexical-binding.
</pre>
</div>
</content>
</entry>
<entry>
<title>Set last-coding-system-used upon ASCII conversion bypass (bug#40407)</title>
<updated>2020-04-09T14:20:15+00:00</updated>
<author>
<name>Mattias Engdegård</name>
</author>
<published>2020-04-09T14:19:14+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=e18c24b35a7cf9bb1b91288b706fa448ed28a7c2'/>
<id>e18c24b35a7cf9bb1b91288b706fa448ed28a7c2</id>
<content type='text'>
Spotted by Kazuhiro Ito.

* src/coding.c (code_convert_string):
Set Vlast_coding_system if appropriate.
* test/src/coding-tests.el (coding-nocopy-ascii): Add test.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Spotted by Kazuhiro Ito.

* src/coding.c (code_convert_string):
Set Vlast_coding_system if appropriate.
* test/src/coding-tests.el (coding-nocopy-ascii): Add test.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix ASCII-only conversion logic (bug#40407)</title>
<updated>2020-04-09T10:50:35+00:00</updated>
<author>
<name>Mattias Engdegård</name>
</author>
<published>2020-04-09T10:04:22+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=d3e2c88041b4844422bda64b1ee51678dc8a2e88'/>
<id>d3e2c88041b4844422bda64b1ee51678dc8a2e88</id>
<content type='text'>
To sidestep conversion altogether when EOL conversion applies, we must
either be encoding a string without NL, or decoding without CR.

* src/coding.c (string_ascii_p): Revert to a pure predicate.
(code_convert_string): Fix logic.  Don't use uninitialised
ascii_p (removed).  Use memchr to detect CR or LF in string when needed.
* test/src/coding-tests.el (coding-nocopy-ascii):
Update tests to include encodings with explicit EOL conversions.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
To sidestep conversion altogether when EOL conversion applies, we must
either be encoding a string without NL, or decoding without CR.

* src/coding.c (string_ascii_p): Revert to a pure predicate.
(code_convert_string): Fix logic.  Don't use uninitialised
ascii_p (removed).  Use memchr to detect CR or LF in string when needed.
* test/src/coding-tests.el (coding-nocopy-ascii):
Update tests to include encodings with explicit EOL conversions.
</pre>
</div>
</content>
</entry>
<entry>
<title>Don't crash with invalid argument in check-coding-systems-region</title>
<updated>2020-04-09T10:06:39+00:00</updated>
<author>
<name>Mattias Engdegård</name>
</author>
<published>2020-04-08T15:13:39+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=786887cf439450ce7d8d6fbe624e8c434e50d469'/>
<id>786887cf439450ce7d8d6fbe624e8c434e50d469</id>
<content type='text'>
* src/coding.c (Fcheck_coding_systems_region): Don't crash if
the third arg contains something that isn't a coding system.
* test/src/coding-tests.el (coding-check-coding-systems-region):
New test.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/coding.c (Fcheck_coding_systems_region): Don't crash if
the third arg contains something that isn't a coding system.
* test/src/coding-tests.el (coding-check-coding-systems-region):
New test.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix decoding ASCII strings with embedded CR characters</title>
<updated>2020-04-09T09:18:30+00:00</updated>
<author>
<name>Eli Zaretskii</name>
</author>
<published>2020-04-09T09:18:30+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=faf996dc6e963a8dd74e9e794ded0467dd78ea18'/>
<id>faf996dc6e963a8dd74e9e794ded0467dd78ea18</id>
<content type='text'>
* src/coding.c (string_ascii_p): Return a negative value if an
all-ASCII string STR includes the CR character, otherwise a
positive value.
(code_convert_string): If the string is ASCII, but includes CR
characters, use the fast path only if EOL doesn't need to be
decoded.  (Bug#40519)

* test/src/coding-tests.el (coding-nocopy-ascii): Add tests for
bug#40519.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/coding.c (string_ascii_p): Return a negative value if an
all-ASCII string STR includes the CR character, otherwise a
positive value.
(code_convert_string): If the string is ASCII, but includes CR
characters, use the fast path only if EOL doesn't need to be
decoded.  (Bug#40519)

* test/src/coding-tests.el (coding-nocopy-ascii): Add tests for
bug#40519.
</pre>
</div>
</content>
</entry>
<entry>
<title>Avoid expensive recoding for ASCII identity cases (bug#40407)</title>
<updated>2020-04-05T13:37:55+00:00</updated>
<author>
<name>Mattias Engdegård</name>
</author>
<published>2020-04-03T14:01:01+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=4ed39549e3f9dbfeb2aea0e2674a7701dbc0e5ea'/>
<id>4ed39549e3f9dbfeb2aea0e2674a7701dbc0e5ea</id>
<content type='text'>
Optimise for the common case of encoding or decoding an ASCII-only
string using an ASCII-compatible coding, for file names in particular.

* src/coding.c (string_ascii_p): New function.
(code_convert_string): Return the input string for ASCII-only inputs
and ASCII-compatible codings.
* test/src/coding-tests.el (coding-nocopy-ascii): New test.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Optimise for the common case of encoding or decoding an ASCII-only
string using an ASCII-compatible coding, for file names in particular.

* src/coding.c (string_ascii_p): New function.
(code_convert_string): Return the input string for ASCII-only inputs
and ASCII-compatible codings.
* test/src/coding-tests.el (coding-nocopy-ascii): New test.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix inverted NOCOPY encode/decode parameter (bug#40407)</title>
<updated>2020-04-05T09:39:52+00:00</updated>
<author>
<name>Mattias Engdegård</name>
</author>
<published>2020-04-05T09:27:36+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=962562cde45071f74a37854a299e88470a4ecd49'/>
<id>962562cde45071f74a37854a299e88470a4ecd49</id>
<content type='text'>
In {encode,decode}-coding-string, the NOCOPY parameter had the
opposite effect to what was intended and documented.  This 18 year old
bug (introduced in 4031e2bf0a) only affected calls with CODING-SYSTEM
being nil.

* src/coding.c (code_convert_string): Correct use of NOCOPY.
* test/src/coding-tests.el (coding-nocopy-trivial): New test.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In {encode,decode}-coding-string, the NOCOPY parameter had the
opposite effect to what was intended and documented.  This 18 year old
bug (introduced in 4031e2bf0a) only affected calls with CODING-SYSTEM
being nil.

* src/coding.c (code_convert_string): Correct use of NOCOPY.
* test/src/coding-tests.el (coding-nocopy-trivial): New test.
</pre>
</div>
</content>
</entry>
<entry>
<title>Update copyright year to 2020</title>
<updated>2020-01-01T00:59:52+00:00</updated>
<author>
<name>Paul Eggert</name>
</author>
<published>2020-01-01T00:19:43+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=365e01cc9f64ce6ca947ccfd8612d60763280a37'/>
<id>365e01cc9f64ce6ca947ccfd8612d60763280a37</id>
<content type='text'>
Run "TZ=UTC0 admin/update-copyright $(git ls-files)".
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Run "TZ=UTC0 admin/update-copyright $(git ls-files)".
</pre>
</div>
</content>
</entry>
</feed>
