diff options
| author | Kenichi Handa | 2004-03-29 12:05:50 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2004-03-29 12:05:50 +0000 |
| commit | 984d06b317071b26f641ff60582ec408baa98cd0 (patch) | |
| tree | fad265764f63aad0dcab771d4aa297eb56ce1d3e | |
| parent | f817f028ec2e5b8f8754025c9644f2f5c709d93c (diff) | |
| download | emacs-984d06b317071b26f641ff60582ec408baa98cd0.tar.gz emacs-984d06b317071b26f641ff60582ec408baa98cd0.zip | |
(ucs-insert): Fix the error message.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/international/ucs-tables.el | 10 |
2 files changed, 10 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 1f1c20185ad..d71bc76e948 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2004-03-29 Kenichi Handa <handa@m17n.org> | 1 | 2004-03-29 Kenichi Handa <handa@m17n.org> |
| 2 | 2 | ||
| 3 | * international/ucs-tables.el (ucs-insert): Fix the error message. | ||
| 4 | |||
| 5 | 2004-03-29 Kenichi Handa <handa@m17n.org> | ||
| 6 | |||
| 3 | * international/mule-util.el (char-displayable-p): Fix generation | 7 | * international/mule-util.el (char-displayable-p): Fix generation |
| 4 | of XLFD file name. | 8 | of XLFD file name. |
| 5 | 9 | ||
diff --git a/lisp/international/ucs-tables.el b/lisp/international/ucs-tables.el index 476c8dfc191..5574cf3d954 100644 --- a/lisp/international/ucs-tables.el +++ b/lisp/international/ucs-tables.el | |||
| @@ -1247,12 +1247,14 @@ unification on input operations." | |||
| 1247 | "Insert the Emacs character representation of the given Unicode. | 1247 | "Insert the Emacs character representation of the given Unicode. |
| 1248 | Interactively, prompts for a hex string giving the code." | 1248 | Interactively, prompts for a hex string giving the code." |
| 1249 | (interactive "sUnicode (hex): ") | 1249 | (interactive "sUnicode (hex): ") |
| 1250 | (let ((c (decode-char 'ucs (if (integerp arg) | 1250 | (or (integerp arg) |
| 1251 | arg | 1251 | (setq arg (string-to-number arg 16))) |
| 1252 | (string-to-number arg 16))))) | 1252 | (let ((c (decode-char 'ucs arg))) |
| 1253 | (if c | 1253 | (if c |
| 1254 | (insert c) | 1254 | (insert c) |
| 1255 | (error "Character can't be decoded to UCS")))) | 1255 | (if (or (< arg 0) (> arg #x10FFFF)) |
| 1256 | (error "Not a Unicode character code: 0x%X" arg) | ||
| 1257 | (error "Character U+%04X is not yet supported" arg))))) | ||
| 1256 | 1258 | ||
| 1257 | ;;; Dealing with non-8859 character sets. | 1259 | ;;; Dealing with non-8859 character sets. |
| 1258 | 1260 | ||