diff options
| author | Stefan Monnier | 2019-03-21 23:55:28 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2019-03-21 23:55:28 -0400 |
| commit | 76fea1eba1332440eab2e3daecce053daccd3782 (patch) | |
| tree | 944ea8279b8a52cb715fe3493d909bc581776430 /doc/lispref | |
| parent | 57a60db2b88dfa5dea41a3a05b736cd7cd17a953 (diff) | |
| download | emacs-76fea1eba1332440eab2e3daecce053daccd3782.tar.gz emacs-76fea1eba1332440eab2e3daecce053daccd3782.zip | |
Fix misuses of NULL when talking about the NUL character
* lisp/subr.el (inhibit-null-byte-detection): Make it an obsolete alias.
* src/coding.c (setup_coding_system): Use new name.
(detect_coding): Rename null_byte_found => nul_byte_found.
(detect_coding_system): Use new name.
Rename null_byte_found => nul_byte_found.
(Fdefine_coding_system_internal): Use new name.
(syms_of_coding): Rename inhibit-null-byte-detection to
inhibit-nul-byte-detection.
* src/w16select.c (get_clipboard_data): null_char => nul_char.
* src/json.c (check_string_without_embedded_nuls): Rename from
check_string_without_embedded_nulls.
(Fjson_parse_string): Adjust accordingly.
* src/coding.h (enum define_coding_undecided_arg_index)
(enum coding_attr_index): ...null_byte... => ...nul_byte....
* lisp/info.el (info-insert-file-contents, Info-insert-dir):
* lisp/international/mule.el (define-coding-system):
* lisp/vc/vc-git.el (vc-git--call):
* doc/lispref/nonascii.texi (Lisp and Coding Systems): Use the new name.
Diffstat (limited to 'doc/lispref')
| -rw-r--r-- | doc/lispref/files.texi | 2 | ||||
| -rw-r--r-- | doc/lispref/nonascii.texi | 2 | ||||
| -rw-r--r-- | doc/lispref/processes.texi | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/doc/lispref/files.texi b/doc/lispref/files.texi index 7bc1cc454b0..af16b1cf4bc 100644 --- a/doc/lispref/files.texi +++ b/doc/lispref/files.texi | |||
| @@ -550,7 +550,7 @@ the functions in the list @code{after-insert-file-functions}. | |||
| 550 | (@pxref{Coding Systems}) used for decoding the file's contents, | 550 | (@pxref{Coding Systems}) used for decoding the file's contents, |
| 551 | including end-of-line conversion. However, if the file contains null | 551 | including end-of-line conversion. However, if the file contains null |
| 552 | bytes, it is by default visited without any code conversions. | 552 | bytes, it is by default visited without any code conversions. |
| 553 | @xref{Lisp and Coding Systems, inhibit-null-byte-detection}. | 553 | @xref{Lisp and Coding Systems, inhibit-nul-byte-detection}. |
| 554 | 554 | ||
| 555 | If @var{visit} is non-@code{nil}, this function additionally marks the | 555 | If @var{visit} is non-@code{nil}, this function additionally marks the |
| 556 | buffer as unmodified and sets up various fields in the buffer so that it | 556 | buffer as unmodified and sets up various fields in the buffer so that it |
diff --git a/doc/lispref/nonascii.texi b/doc/lispref/nonascii.texi index 11a77bd1479..9c64c3cf2ca 100644 --- a/doc/lispref/nonascii.texi +++ b/doc/lispref/nonascii.texi | |||
| @@ -1378,7 +1378,7 @@ operates on the contents of @var{string} instead of bytes in the buffer. | |||
| 1378 | @end defun | 1378 | @end defun |
| 1379 | 1379 | ||
| 1380 | @cindex null bytes, and decoding text | 1380 | @cindex null bytes, and decoding text |
| 1381 | @defvar inhibit-null-byte-detection | 1381 | @defvar inhibit-nul-byte-detection |
| 1382 | If this variable has a non-@code{nil} value, null bytes are ignored | 1382 | If this variable has a non-@code{nil} value, null bytes are ignored |
| 1383 | when detecting the encoding of a region or a string. This allows the | 1383 | when detecting the encoding of a region or a string. This allows the |
| 1384 | encoding of text that contains null bytes to be correctly detected, | 1384 | encoding of text that contains null bytes to be correctly detected, |
diff --git a/doc/lispref/processes.texi b/doc/lispref/processes.texi index 7b02759b307..6be311b5639 100644 --- a/doc/lispref/processes.texi +++ b/doc/lispref/processes.texi | |||
| @@ -1789,7 +1789,7 @@ system comes from @code{coding-system-for-read}, if that is | |||
| 1789 | non-@code{nil}; or else from the defaulting mechanism (@pxref{Default | 1789 | non-@code{nil}; or else from the defaulting mechanism (@pxref{Default |
| 1790 | Coding Systems}). If the text output by a process contains null | 1790 | Coding Systems}). If the text output by a process contains null |
| 1791 | bytes, Emacs by default uses @code{no-conversion} for it; see | 1791 | bytes, Emacs by default uses @code{no-conversion} for it; see |
| 1792 | @ref{Lisp and Coding Systems, inhibit-null-byte-detection}, for how to | 1792 | @ref{Lisp and Coding Systems, inhibit-nul-byte-detection}, for how to |
| 1793 | control this behavior. | 1793 | control this behavior. |
| 1794 | 1794 | ||
| 1795 | @strong{Warning:} Coding systems such as @code{undecided}, which | 1795 | @strong{Warning:} Coding systems such as @code{undecided}, which |