carbon2-commit: Cosmetic: Use Qunbound, not Qnil as second arg to call to syntax_error() to get cleaner error message

Ben Wing ben at xemacs.org
Sun Feb 7 12:39:35 EST 2010


changeset:   4928:437323273039
user:        Ben Wing <ben at xemacs.org>
date:        Fri Jan 15 06:44:05 2010 -0600
files:       src/ChangeLog src/doprnt.c
description:
Cosmetic: Use Qunbound, not Qnil as second arg to call to syntax_error() to get cleaner error message

-------------------- ChangeLog entries follow: --------------------

src/ChangeLog addition:

2010-01-15  Ben Wing  <ben at xemacs.org>

	* doprnt.c (emacs_doprnt_1):
	Cosmetic: Use Qunbound, not Qnil as second arg to call to
	syntax_error() to get cleaner error message.


diff -r 49de55c09f18 -r 437323273039 src/ChangeLog
--- a/src/ChangeLog	Fri Jan 15 05:42:21 2010 -0600
+++ b/src/ChangeLog	Fri Jan 15 06:44:05 2010 -0600
@@ -1,3 +1,9 @@
+2010-01-15  Ben Wing  <ben at xemacs.org>
+
+	* doprnt.c (emacs_doprnt_1):
+	Cosmetic: Use Qunbound, not Qnil as second arg to call to
+	syntax_error() to get cleaner error message.
+	
 2010-01-15  Ben Wing  <ben at xemacs.org>
 
 	* intl-encap-win32.c:
diff -r 49de55c09f18 -r 437323273039 src/doprnt.c
--- a/src/doprnt.c	Fri Jan 15 05:42:21 2010 -0600
+++ b/src/doprnt.c	Fri Jan 15 06:44:05 2010 -0600
@@ -602,7 +602,7 @@
 		  sprintf (msg,
 			   "format specifier %%%c doesn't match argument type",
 			   ch);
-		  syntax_error (msg, Qnil);
+		  syntax_error (msg, Qunbound);
 		}
 	      else if (strchr (double_converters, ch))
 		{
@@ -725,7 +725,7 @@
 		  CIbyte msg[60];
 		  sprintf (msg, "invalid character value %d to %%c spec",
 			   a);
-		  syntax_error (msg, Qnil);
+		  syntax_error (msg, Qunbound);
 		}
 
 	      charlen = set_itext_ichar (charbuf, a);



More information about the XEmacs-Patches mailing list