aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2025-04-18 14:10:19 +0300
committerEli Zaretskii2025-04-18 14:10:19 +0300
commit01d4eb3dd427feb3439378eab573d685daf47bb7 (patch)
tree8dfcdd63915917403f31f4a1d144fd946df7037b /src
parent93ad8407ed82c27835cf27b15ee2637a2ebba482 (diff)
downloademacs-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.c13
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
1443Interactively, prompt for CHARACTER using `read-char-by-name'. 1444Interactively, prompt for CHARACTER using `read-char-by-name'.
1444You can specify CHARACTER in one of these ways: 1445You 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
1458If called interactively, COUNT is given by the prefix argument. If 1459When called from Lisp, CHARACTER should be an integer whose value
1459omitted or nil, it defaults to 1. 1460is valid for a character; see `characterp'. To specify a character by
1461its Unicode name in calls from Lisp, use `char-from-name'.
1462
1463When called interactively, COUNT is the prefix argument. If omitted or
1464nil, it defaults to 1.
1460 1465
1461Inserting the character(s) relocates point and before-insertion 1466Inserting the character(s) relocates point and before-insertion
1462markers in the same ways as the function `insert'. 1467markers in the same ways as the function `insert'.
1463 1468
1464The optional third argument INHERIT, if non-nil, says to inherit text 1469The optional third argument INHERIT, if non-nil, says to inherit text
1465properties from adjoining text, if those properties are sticky. If 1470properties from adjoining text, if those properties are sticky. When
1466called interactively, INHERIT is t. */) 1471called 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{