aboutsummaryrefslogtreecommitdiffstats
path: root/src/category.c
diff options
context:
space:
mode:
authorStefan Kangas2025-02-01 04:56:52 +0100
committerStefan Kangas2025-02-01 04:56:52 +0100
commitbf97946d7dc460b7d3c3ce03193041b891b51faf (patch)
treec799f87903ca3dcba8b804bd185b519aacc0a636 /src/category.c
parenta4a0957b6b3b1db858524ac6d4dc3d951f65960b (diff)
parentaa07e94439c663f768c32a689d14506d25a7a5bc (diff)
downloademacs-bf97946d7dc460b7d3c3ce03193041b891b51faf.tar.gz
emacs-bf97946d7dc460b7d3c3ce03193041b891b51faf.zip
Merge branch 'scratch/no-purespace' into 'master'
Diffstat (limited to 'src/category.c')
-rw-r--r--src/category.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/category.c b/src/category.c
index 2611d6419e8..297ba94c73d 100644
--- a/src/category.c
+++ b/src/category.c
@@ -51,7 +51,7 @@ hash_get_category_set (Lisp_Object table, Lisp_Object category_set)
51 if (NILP (XCHAR_TABLE (table)->extras[1])) 51 if (NILP (XCHAR_TABLE (table)->extras[1]))
52 set_char_table_extras 52 set_char_table_extras
53 (table, 1, 53 (table, 1,
54 make_hash_table (&hashtest_equal, DEFAULT_HASH_SIZE, Weak_None, false)); 54 make_hash_table (&hashtest_equal, DEFAULT_HASH_SIZE, Weak_None));
55 struct Lisp_Hash_Table *h = XHASH_TABLE (XCHAR_TABLE (table)->extras[1]); 55 struct Lisp_Hash_Table *h = XHASH_TABLE (XCHAR_TABLE (table)->extras[1]);
56 hash_hash_t hash; 56 hash_hash_t hash;
57 ptrdiff_t i = hash_lookup_get_hash (h, category_set, &hash); 57 ptrdiff_t i = hash_lookup_get_hash (h, category_set, &hash);
@@ -118,8 +118,6 @@ the current buffer's category table. */)
118 118
119 if (!NILP (CATEGORY_DOCSTRING (table, XFIXNAT (category)))) 119 if (!NILP (CATEGORY_DOCSTRING (table, XFIXNAT (category))))
120 error ("Category `%c' is already defined", (int) XFIXNAT (category)); 120 error ("Category `%c' is already defined", (int) XFIXNAT (category));
121 if (!NILP (Vpurify_flag))
122 docstring = Fpurecopy (docstring);
123 SET_CATEGORY_DOCSTRING (table, XFIXNAT (category), docstring); 121 SET_CATEGORY_DOCSTRING (table, XFIXNAT (category), docstring);
124 122
125 return Qnil; 123 return Qnil;