aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/international/mule-cmds.el25
2 files changed, 25 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index cdf6dbf4944..da5b9ebbda2 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12011-02-18 Eli Zaretskii <eliz@gnu.org>
2
3 * international/mule-cmds.el (read-char-by-name, ucs-insert):
4 Document completion with asterisk and a substring.
5
12011-02-18 Glenn Morris <rgm@gnu.org> 62011-02-18 Glenn Morris <rgm@gnu.org>
2 7
3 * files.el (find-file-literally): Doc fix. 8 * files.el (find-file-literally): Doc fix.
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el
index fed7e6ec9b1..0ca4a740586 100644
--- a/lisp/international/mule-cmds.el
+++ b/lisp/international/mule-cmds.el
@@ -2934,11 +2934,19 @@ on encoding."
2934(defun read-char-by-name (prompt) 2934(defun read-char-by-name (prompt)
2935 "Read a character by its Unicode name or hex number string. 2935 "Read a character by its Unicode name or hex number string.
2936Display PROMPT and read a string that represents a character by its 2936Display PROMPT and read a string that represents a character by its
2937Unicode property `name' or `old-name'. You can type a few of first 2937Unicode property `name' or `old-name'.
2938letters of the Unicode name and use completion. This function also 2938
2939accepts a hexadecimal number of Unicode code point or a number in 2939This function returns the character as a number.
2940hash notation, e.g. #o21430 for octal, #x2318 for hex, or #10r8984 2940
2941for decimal. Returns a character as a number." 2941You can type a few of the first letters of the Unicode name and
2942use completion. If you type a substring of the Unicode name
2943preceded by an asterisk `*' and use completion, it will show all
2944the characters whose names include that substring, not necessarily
2945at the beginning of the name.
2946
2947This function also accepts a hexadecimal number of Unicode code
2948point or a number in hash notation, e.g. #o21430 for octal,
2949#x2318 for hex, or #10r8984 for decimal."
2942 (let* ((completion-ignore-case t) 2950 (let* ((completion-ignore-case t)
2943 (input (completing-read prompt ucs-completions))) 2951 (input (completing-read prompt ucs-completions)))
2944 (cond 2952 (cond
@@ -2953,6 +2961,13 @@ for decimal. Returns a character as a number."
2953 "Insert COUNT copies of CHARACTER of the given Unicode code point. 2961 "Insert COUNT copies of CHARACTER of the given Unicode code point.
2954Interactively, prompts for a Unicode character name or a hex number 2962Interactively, prompts for a Unicode character name or a hex number
2955using `read-char-by-name'. 2963using `read-char-by-name'.
2964
2965You can type a few of the first letters of the Unicode name and
2966use completion. If you type a substring of the Unicode name
2967preceded by an asterisk `*' and use completion, it will show all
2968the characters whose names include that substring, not necessarily
2969at the beginning of the name.
2970
2956The optional third arg INHERIT (non-nil when called interactively), 2971The optional third arg INHERIT (non-nil when called interactively),
2957says to inherit text properties from adjoining text, if those 2972says to inherit text properties from adjoining text, if those
2958properties are sticky." 2973properties are sticky."