emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r111154: * src/editfns.c (Finsert_cha


From: Chong Yidong
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r111154: * src/editfns.c (Finsert_char): Make the error message more informative.
Date: Sat, 08 Dec 2012 19:05:39 +0800
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 111154
fixes bug: http://debbugs.gnu.org/12992
committer: Chong Yidong <address@hidden>
branch nick: trunk
timestamp: Sat 2012-12-08 19:05:39 +0800
message:
  * src/editfns.c (Finsert_char): Make the error message more informative.
modified:
  src/ChangeLog
  src/editfns.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2012-12-08 06:56:26 +0000
+++ b/src/ChangeLog     2012-12-08 11:05:39 +0000
@@ -1,3 +1,8 @@
+2012-12-08  Chong Yidong  <address@hidden>
+
+       * editfns.c (Finsert_char): Make the error message more
+       informative (Bug#12992).
+
 2012-12-08  Paul Eggert  <address@hidden>
 
        Simplify get_lim_data.

=== modified file 'src/editfns.c'
--- a/src/editfns.c     2012-12-03 14:13:06 +0000
+++ b/src/editfns.c     2012-12-08 11:05:39 +0000
@@ -2351,9 +2351,10 @@
 }
 
 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:


reply via email to

[Prev in Thread] Current Thread [Next in Thread]