summaryrefslogtreecommitdiff
path: root/doc/lispref
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2020-10-05 19:59:00 +0200
committerAndreas Schwab <schwab@linux-m68k.org>2020-10-05 20:19:59 +0200
commita9f147af716aa026ec7778202901c4cb4bd5487d (patch)
tree221b3d26599d09f5af906d15544ebeb8ed788028 /doc/lispref
parent0a5a1adab986de39a147771b8f9aa21656ecc001 (diff)
downloademacs-a9f147af716aa026ec7778202901c4cb4bd5487d.tar.gz
emacs-a9f147af716aa026ec7778202901c4cb4bd5487d.tar.bz2
emacs-a9f147af716aa026ec7778202901c4cb4bd5487d.zip
Use the full name of the null byte/character, not its abbreviation
* lisp/subr.el (inhibit-nul-byte-detection): Make it an obsolete alias. * src/coding.c (setup_coding_system): Use original name. (detect_coding): Rename nul_byte_found => null_byte_found. (detect_coding_system): Use original name. Rename nul_byte_found => null_byte_found. (Fdefine_coding_system_internal): Use original name. (syms_of_coding): Rename inhibit-nul-byte-detection to inhibit-null-byte-detection. * src/w16select.c (get_clipboard_data): Rename nul_char to null_char. * src/json.c (check_string_without_embedded_nulls): Rename from check_string_without_embedded_nuls. (Fjson_parse_string): Adjust accordingly. * src/coding.h (enum define_coding_undecided_arg_index) (enum coding_attr_index): Rename ...nul_byte... to ...null_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 original 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 92cbc2a1c91..3b8b4fb3a9e 100644
--- a/doc/lispref/files.texi
+++ b/doc/lispref/files.texi
@@ -548,7 +548,7 @@ the functions in the list @code{after-insert-file-functions}.
(@pxref{Coding Systems}) used for decoding the file's contents,
including end-of-line conversion. However, if the file contains null
bytes, it is by default visited without any code conversions.
-@xref{Lisp and Coding Systems, inhibit-nul-byte-detection}.
+@xref{Lisp and Coding Systems, inhibit-null-byte-detection}.
If @var{visit} is non-@code{nil}, this function additionally marks the
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 c6c78ec096e..8e9d62429c2 100644
--- a/doc/lispref/nonascii.texi
+++ b/doc/lispref/nonascii.texi
@@ -1379,7 +1379,7 @@ operates on the contents of @var{string} instead of bytes in the buffer.
@end defun
@cindex null bytes, and decoding text
-@defvar inhibit-nul-byte-detection
+@defvar inhibit-null-byte-detection
If this variable has a non-@code{nil} value, null bytes are ignored
when detecting the encoding of a region or a string. This allows the
encoding of text that contains null bytes to be correctly detected,
diff --git a/doc/lispref/processes.texi b/doc/lispref/processes.texi
index 855df4b9260..5fefab99d4c 100644
--- a/doc/lispref/processes.texi
+++ b/doc/lispref/processes.texi
@@ -1839,7 +1839,7 @@ system comes from @code{coding-system-for-read}, if that is
non-@code{nil}; or else from the defaulting mechanism (@pxref{Default
Coding Systems}). If the text output by a process contains null
bytes, Emacs by default uses @code{no-conversion} for it; see
-@ref{Lisp and Coding Systems, inhibit-nul-byte-detection}, for how to
+@ref{Lisp and Coding Systems, inhibit-null-byte-detection}, for how to
control this behavior.
@strong{Warning:} Coding systems such as @code{undecided}, which