diff options
author | Chong Yidong <cyd@gnu.org> | 2012-12-08 19:05:39 +0800 |
---|---|---|
committer | Chong Yidong <cyd@gnu.org> | 2012-12-08 19:05:39 +0800 |
commit | 1b6dbfeb19ef1b17341e24b1bdba3b86d2defe61 (patch) | |
tree | 1edc4a0bbb318e4ab5d4087a2a09f8fca1556777 /src/editfns.c | |
parent | 63999a7dbed8d493e2efc3411c2403483d8d71bf (diff) | |
download | emacs-1b6dbfeb19ef1b17341e24b1bdba3b86d2defe61.tar.gz |
* src/editfns.c (Finsert_char): Make the error message more informative.
Fixes: debbugs:12992
Diffstat (limited to 'src/editfns.c')
-rw-r--r-- | src/editfns.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/editfns.c b/src/editfns.c index d60f417e561..ffb9a38909b 100644 --- a/src/editfns.c +++ b/src/editfns.c @@ -2351,9 +2351,10 @@ usage: (insert-before-markers-and-inherit &rest ARGS) */) } DEFUN ("insert-char", Finsert_char, Sinsert_char, 1, 3, - "(list (read-char-by-name \"Insert character (Unicode name or hex): \")\ - (prefix-numeric-value current-prefix-arg)\ - t))", + "(list (or (read-char-by-name \"Insert character (Unicode name or hex): \")\ + (error \"You did not specify a valid character\"))\ + (prefix-numeric-value current-prefix-arg)\ + t))", doc: /* Insert COUNT copies of CHARACTER. Interactively, prompt for CHARACTER. You can specify CHARACTER in one of these ways: |