diff options
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/international/mule-cmds.el | 25 |
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 @@ | |||
| 1 | 2011-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 | |||
| 1 | 2011-02-18 Glenn Morris <rgm@gnu.org> | 6 | 2011-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. |
| 2936 | Display PROMPT and read a string that represents a character by its | 2936 | Display PROMPT and read a string that represents a character by its |
| 2937 | Unicode property `name' or `old-name'. You can type a few of first | 2937 | Unicode property `name' or `old-name'. |
| 2938 | letters of the Unicode name and use completion. This function also | 2938 | |
| 2939 | accepts a hexadecimal number of Unicode code point or a number in | 2939 | This function returns the character as a number. |
| 2940 | hash notation, e.g. #o21430 for octal, #x2318 for hex, or #10r8984 | 2940 | |
| 2941 | for decimal. Returns a character as a number." | 2941 | You can type a few of the first letters of the Unicode name and |
| 2942 | use completion. If you type a substring of the Unicode name | ||
| 2943 | preceded by an asterisk `*' and use completion, it will show all | ||
| 2944 | the characters whose names include that substring, not necessarily | ||
| 2945 | at the beginning of the name. | ||
| 2946 | |||
| 2947 | This function also accepts a hexadecimal number of Unicode code | ||
| 2948 | point 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. |
| 2954 | Interactively, prompts for a Unicode character name or a hex number | 2962 | Interactively, prompts for a Unicode character name or a hex number |
| 2955 | using `read-char-by-name'. | 2963 | using `read-char-by-name'. |
| 2964 | |||
| 2965 | You can type a few of the first letters of the Unicode name and | ||
| 2966 | use completion. If you type a substring of the Unicode name | ||
| 2967 | preceded by an asterisk `*' and use completion, it will show all | ||
| 2968 | the characters whose names include that substring, not necessarily | ||
| 2969 | at the beginning of the name. | ||
| 2970 | |||
| 2956 | The optional third arg INHERIT (non-nil when called interactively), | 2971 | The optional third arg INHERIT (non-nil when called interactively), |
| 2957 | says to inherit text properties from adjoining text, if those | 2972 | says to inherit text properties from adjoining text, if those |
| 2958 | properties are sticky." | 2973 | properties are sticky." |