; Improve doc string of 'insert-char'

* src/editfns.c (Finsert_char): Doc fix.  Suggested by Lactose ‎
<lactose@allthingslinux.org> (bug#77889).
This commit is contained in:
Eli Zaretskii 2025-04-18 14:10:19 +03:00
parent 93ad8407ed
commit 01d4eb3dd4

View file

@ -1440,8 +1440,9 @@ DEFUN ("insert-char", Finsert_char, Sinsert_char, 1, 3,
(prefix-numeric-value current-prefix-arg)\ (prefix-numeric-value current-prefix-arg)\
t))", t))",
doc: /* Insert COUNT copies of CHARACTER. doc: /* Insert COUNT copies of CHARACTER.
Interactively, prompt for CHARACTER using `read-char-by-name'. Interactively, prompt for CHARACTER using `read-char-by-name'.
You can specify CHARACTER in one of these ways: You can specify CHARACTER at the prompt in one of these ways:
- As its Unicode character name, e.g. \"LATIN SMALL LETTER A\". - As its Unicode character name, e.g. \"LATIN SMALL LETTER A\".
Completion is available; if you type a substring of the name Completion is available; if you type a substring of the name
@ -1455,14 +1456,18 @@ You can specify CHARACTER in one of these ways:
- As a code point with a radix specified with #, e.g. #o21430 - As a code point with a radix specified with #, e.g. #o21430
(octal), #x2318 (hex), or #10r8984 (decimal). (octal), #x2318 (hex), or #10r8984 (decimal).
If called interactively, COUNT is given by the prefix argument. If When called from Lisp, CHARACTER should be an integer whose value
omitted or nil, it defaults to 1. is valid for a character; see `characterp'. To specify a character by
its Unicode name in calls from Lisp, use `char-from-name'.
When called interactively, COUNT is the prefix argument. If omitted or
nil, it defaults to 1.
Inserting the character(s) relocates point and before-insertion Inserting the character(s) relocates point and before-insertion
markers in the same ways as the function `insert'. markers in the same ways as the function `insert'.
The optional third argument INHERIT, if non-nil, says to inherit text The optional third argument INHERIT, if non-nil, says to inherit text
properties from adjoining text, if those properties are sticky. If properties from adjoining text, if those properties are sticky. When
called interactively, INHERIT is t. */) called interactively, INHERIT is t. */)
(Lisp_Object character, Lisp_Object count, Lisp_Object inherit) (Lisp_Object character, Lisp_Object count, Lisp_Object inherit)
{ {