]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/editfns.c (Finsert_char): Make the error message more informative.
authorChong Yidong <cyd@gnu.org>
Sat, 8 Dec 2012 11:05:39 +0000 (19:05 +0800)
committerChong Yidong <cyd@gnu.org>
Sat, 8 Dec 2012 11:05:39 +0000 (19:05 +0800)
Fixes: debbugs:12992
src/ChangeLog
src/editfns.c

index 218dd425a2dfcdf8dc719674e869bca143648852..8e1e422d15469689bf714b43f344ec13f73d39cb 100644 (file)
@@ -1,3 +1,8 @@
+2012-12-08  Chong Yidong  <cyd@gnu.org>
+
+       * editfns.c (Finsert_char): Make the error message more
+       informative (Bug#12992).
+
 2012-12-08  Paul Eggert  <eggert@cs.ucla.edu>
 
        Simplify get_lim_data.
index d60f417e561e028c2ec33470e39f290cab250eac..ffb9a38909bc12b703873f9431d976f30ea9dceb 100644 (file)
@@ -2351,9 +2351,10 @@ usage: (insert-before-markers-and-inherit &rest ARGS)  */)
 }
 \f
 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: