Mercurial > hg > xemacs-beta
diff src/editfns.c @ 177:6075d714658b r20-3b15
Import from CVS: tag r20-3b15
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:51:16 +0200 |
parents | 15872534500d |
children | 3d6bfa290dbd |
line wrap: on
line diff
--- a/src/editfns.c Mon Aug 13 09:50:16 2007 +0200 +++ b/src/editfns.c Mon Aug 13 09:51:16 2007 +0200 @@ -194,6 +194,7 @@ DEFUN ("string-to-char", Fstring_to_char, 1, 1, 0, /* Convert arg STRING to a character, the first character of that string. +An empty string will return the constant `nil'. */ (str)) { @@ -203,8 +204,10 @@ p = XSTRING (str); if (string_length (p) != 0) return make_char (string_char (p, 0)); - else /* #### Gag me! */ - return Qzero; + else + /* This used to return Qzero. That is broken, broken, broken. */ + /* It might be kinder to signal an error directly. -slb */ + return Qnil; }