X-Git-Url: https://git.hcoop.net/bpt/emacs.git/blobdiff_plain/bc81e2c4e885787603da3e0314d6ea45a43f7862..6dd5a677dbf794eedaa8325c46d57ac041373361:/src/category.c diff --git a/src/category.c b/src/category.c index a822bb654b..7d0f72d284 100644 --- a/src/category.c +++ b/src/category.c @@ -1,6 +1,6 @@ /* GNU Emacs routines to deal with category tables. -Copyright (C) 1998, 2001-2011 Free Software Foundation, Inc. +Copyright (C) 1998, 2001-2012 Free Software Foundation, Inc. Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 National Institute of Advanced Industrial Science and Technology (AIST) @@ -32,8 +32,8 @@ along with GNU Emacs. If not, see . */ #include #include #include "lisp.h" -#include "buffer.h" #include "character.h" +#include "buffer.h" #include "charset.h" #include "category.h" #include "keymap.h" @@ -50,9 +50,6 @@ static int category_table_version; static Lisp_Object Qcategory_table, Qcategoryp, Qcategorysetp, Qcategory_table_p; -/* Temporary internal variable used in macro CHAR_HAS_CATEGORY. */ -Lisp_Object _temp_category_set; - /* Make CATEGORY_SET includes (if VAL is t) or excludes (if VAL is nil) CATEGORY. */ #define SET_CATEGORY_SET(category_set, category, val) \ @@ -304,7 +301,7 @@ DEFUN ("char-category-set", Fchar_category_set, Schar_category_set, 1, 1, 0, usage: (char-category-set CHAR) */) (Lisp_Object ch) { - CHECK_NUMBER (ch); + CHECK_CHARACTER (ch); return CATEGORY_SET (XFASTINT (ch)); }