diff options
| author | Robert Pluim | 2020-04-02 17:52:01 +0200 |
|---|---|---|
| committer | Robert Pluim | 2020-04-03 14:45:49 +0200 |
| commit | d08e81ce5a19a0394c2efbdfeb4ebb246d609635 (patch) | |
| tree | 765bef42ad5bf8278eebb654571f87cbfb4b352f /etc | |
| parent | 463f635171683ae3b6907f156305f12fc58ca68e (diff) | |
| download | emacs-d08e81ce5a19a0394c2efbdfeb4ebb246d609635.tar.gz emacs-d08e81ce5a19a0394c2efbdfeb4ebb246d609635.zip | |
Make make-{network,serial}-process handle :coding nil consistently
The handling of :coding nil was different between
make-{network,serial}-process and make-{pipe}process. Now they all
handle :coding nil as if :coding had not been specified.
* process.c (Fmake_serial_process)
(set_network_socket_coding_system): Use plist-get to check if
:coding has been specified instead of plist-member, to ensure that
":coding nil" does not override coding-system-for-{read,write}.
* network-stream-tests.el (check-network-process-coding-system-bind)
(check-network-process-coding-system-no-override)
(check-network-process-coding-system-override): New tests.
* etc/NEWS: Describe change in make-network-process and
make-serial-process :coding behavior.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 10 |
1 files changed, 10 insertions, 0 deletions
| @@ -317,6 +317,16 @@ optional argument specifying whether to follow symbolic links. | |||
| 317 | ** 'parse-time-string' can now parse ISO 8601 format strings, | 317 | ** 'parse-time-string' can now parse ISO 8601 format strings, |
| 318 | such as "2020-01-15T16:12:21-08:00". | 318 | such as "2020-01-15T16:12:21-08:00". |
| 319 | 319 | ||
| 320 | --- | ||
| 321 | ** 'make-network-process', 'make-serial-process' :coding behavior change. | ||
| 322 | Previously, passing ":coding nil" to either of these functions would | ||
| 323 | override any non-nil binding for 'coding-system-for-read' and | ||
| 324 | 'coding-system-for-write'. For consistency with 'make-process' and | ||
| 325 | 'make-pipe-process', passing ":coding nil" is now ignored. No code in | ||
| 326 | Emacs depended on the previous behavior; if you really want the | ||
| 327 | process' coding-system to be nil, use 'set-process-coding-system' | ||
| 328 | after the process has been created, or pass in ":coding '(nil nil)". | ||
| 329 | |||
| 320 | 330 | ||
| 321 | * Changes in Emacs 28.1 on Non-Free Operating Systems | 331 | * Changes in Emacs 28.1 on Non-Free Operating Systems |
| 322 | 332 | ||