diff options
| author | Kenichi Handa | 2003-01-31 06:10:06 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2003-01-31 06:10:06 +0000 |
| commit | f4b670efaf52034db7970dfdb7fc69629b56ae9f (patch) | |
| tree | 7ab172baef78e5a263877068135a25d80fb0f929 /src/category.c | |
| parent | d8d032b87c1b3a3ab366893d04b23b926fa7a52b (diff) | |
| download | emacs-f4b670efaf52034db7970dfdb7fc69629b56ae9f.tar.gz emacs-f4b670efaf52034db7970dfdb7fc69629b56ae9f.zip | |
(copy_category_entry): Fix for the case that RANGE is an integer.
Diffstat (limited to 'src/category.c')
| -rw-r--r-- | src/category.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/category.c b/src/category.c index c31c1961e04..91b015d5868 100644 --- a/src/category.c +++ b/src/category.c | |||
| @@ -195,8 +195,12 @@ static void | |||
| 195 | copy_category_entry (table, range, val) | 195 | copy_category_entry (table, range, val) |
| 196 | Lisp_Object table, range, val; | 196 | Lisp_Object table, range, val; |
| 197 | { | 197 | { |
| 198 | char_table_set_range (table, XINT (XCAR (range)), XINT (XCDR (range)), | 198 | val = Fcopy_sequence (val); |
| 199 | Fcopy_sequence (val)); | 199 | if (CONSP (range)) |
| 200 | char_table_set_range (table, XINT (XCAR (range)), XINT (XCDR (range)), | ||
| 201 | val); | ||
| 202 | else | ||
| 203 | char_table_set (table, XINT (range), val); | ||
| 200 | } | 204 | } |
| 201 | 205 | ||
| 202 | /* Return a copy of category table TABLE. We can't simply use the | 206 | /* Return a copy of category table TABLE. We can't simply use the |