aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref
diff options
context:
space:
mode:
authorStefan Monnier2019-03-21 23:55:28 -0400
committerStefan Monnier2019-03-21 23:55:28 -0400
commit76fea1eba1332440eab2e3daecce053daccd3782 (patch)
tree944ea8279b8a52cb715fe3493d909bc581776430 /doc/lispref
parent57a60db2b88dfa5dea41a3a05b736cd7cd17a953 (diff)
downloademacs-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.texi2
-rw-r--r--doc/lispref/nonascii.texi2
-rw-r--r--doc/lispref/processes.texi2
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,
551including end-of-line conversion. However, if the file contains null 551including end-of-line conversion. However, if the file contains null
552bytes, it is by default visited without any code conversions. 552bytes, 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
555If @var{visit} is non-@code{nil}, this function additionally marks the 555If @var{visit} is non-@code{nil}, this function additionally marks the
556buffer as unmodified and sets up various fields in the buffer so that it 556buffer 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
1382If this variable has a non-@code{nil} value, null bytes are ignored 1382If this variable has a non-@code{nil} value, null bytes are ignored
1383when detecting the encoding of a region or a string. This allows the 1383when detecting the encoding of a region or a string. This allows the
1384encoding of text that contains null bytes to be correctly detected, 1384encoding 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
1789non-@code{nil}; or else from the defaulting mechanism (@pxref{Default 1789non-@code{nil}; or else from the defaulting mechanism (@pxref{Default
1790Coding Systems}). If the text output by a process contains null 1790Coding Systems}). If the text output by a process contains null
1791bytes, Emacs by default uses @code{no-conversion} for it; see 1791bytes, 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
1793control this behavior. 1793control this behavior.
1794 1794
1795 @strong{Warning:} Coding systems such as @code{undecided}, which 1795 @strong{Warning:} Coding systems such as @code{undecided}, which