diff options
| author | Eli Zaretskii | 2025-04-18 14:10:19 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2025-04-18 14:10:19 +0300 |
| commit | 01d4eb3dd427feb3439378eab573d685daf47bb7 (patch) | |
| tree | 8dfcdd63915917403f31f4a1d144fd946df7037b /src | |
| parent | 93ad8407ed82c27835cf27b15ee2637a2ebba482 (diff) | |
| download | emacs-01d4eb3dd427feb3439378eab573d685daf47bb7.tar.gz emacs-01d4eb3dd427feb3439378eab573d685daf47bb7.zip | |
; Improve doc string of 'insert-char'
* src/editfns.c (Finsert_char): Doc fix. Suggested by Lactose
<lactose@allthingslinux.org> (bug#77889).
Diffstat (limited to 'src')
| -rw-r--r-- | src/editfns.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/editfns.c b/src/editfns.c index ecc16a62f76..a3f220671a8 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -1440,8 +1440,9 @@ DEFUN ("insert-char", Finsert_char, Sinsert_char, 1, 3, | |||
| 1440 | (prefix-numeric-value current-prefix-arg)\ | 1440 | (prefix-numeric-value current-prefix-arg)\ |
| 1441 | t))", | 1441 | t))", |
| 1442 | doc: /* Insert COUNT copies of CHARACTER. | 1442 | doc: /* Insert COUNT copies of CHARACTER. |
| 1443 | |||
| 1443 | Interactively, prompt for CHARACTER using `read-char-by-name'. | 1444 | Interactively, prompt for CHARACTER using `read-char-by-name'. |
| 1444 | You can specify CHARACTER in one of these ways: | 1445 | You can specify CHARACTER at the prompt in one of these ways: |
| 1445 | 1446 | ||
| 1446 | - As its Unicode character name, e.g. \"LATIN SMALL LETTER A\". | 1447 | - As its Unicode character name, e.g. \"LATIN SMALL LETTER A\". |
| 1447 | Completion is available; if you type a substring of the name | 1448 | Completion is available; if you type a substring of the name |
| @@ -1455,14 +1456,18 @@ You can specify CHARACTER in one of these ways: | |||
| 1455 | - As a code point with a radix specified with #, e.g. #o21430 | 1456 | - As a code point with a radix specified with #, e.g. #o21430 |
| 1456 | (octal), #x2318 (hex), or #10r8984 (decimal). | 1457 | (octal), #x2318 (hex), or #10r8984 (decimal). |
| 1457 | 1458 | ||
| 1458 | If called interactively, COUNT is given by the prefix argument. If | 1459 | When called from Lisp, CHARACTER should be an integer whose value |
| 1459 | omitted or nil, it defaults to 1. | 1460 | is valid for a character; see `characterp'. To specify a character by |
| 1461 | its Unicode name in calls from Lisp, use `char-from-name'. | ||
| 1462 | |||
| 1463 | When called interactively, COUNT is the prefix argument. If omitted or | ||
| 1464 | nil, it defaults to 1. | ||
| 1460 | 1465 | ||
| 1461 | Inserting the character(s) relocates point and before-insertion | 1466 | Inserting the character(s) relocates point and before-insertion |
| 1462 | markers in the same ways as the function `insert'. | 1467 | markers in the same ways as the function `insert'. |
| 1463 | 1468 | ||
| 1464 | The optional third argument INHERIT, if non-nil, says to inherit text | 1469 | The optional third argument INHERIT, if non-nil, says to inherit text |
| 1465 | properties from adjoining text, if those properties are sticky. If | 1470 | properties from adjoining text, if those properties are sticky. When |
| 1466 | called interactively, INHERIT is t. */) | 1471 | called interactively, INHERIT is t. */) |
| 1467 | (Lisp_Object character, Lisp_Object count, Lisp_Object inherit) | 1472 | (Lisp_Object character, Lisp_Object count, Lisp_Object inherit) |
| 1468 | { | 1473 | { |